Look up tweets up to 100 at the same time.
Usage
tweet_get(
id,
expansions = NULL,
fields = NULL,
...,
token = NULL,
parse = TRUE,
verbose = FALSE
)
Arguments
- id
At least a tweet id.
- expansions
Set
NULL
to not use any expansion, setNA
to get all expansions, or provide a vector with the expansions you want (create it withset_expansions()
).- fields
Set
NULL
to not use any field, get all allowed fields withNA
, provide a list with the fields you want (create it withset_fields()
).- ...
Other arguments passed to the API.
- token
This endpoint accepts a OAuth2.0 authentication (can be created via
rtweet_oauth2()
) or a bearer token (can be created viartweet_app()
).- parse
If
TRUE
, the default, returns a tidy data frame. UseFALSE
to return the "raw" list corresponding to the JSON returned from the Twitter API.- verbose
A logical value to provide more information about the paginated queries (if any) and to store the data of each page.
References
One tweet: https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets-id
Multiple tweets: https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets