Skip to contents

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, set NA to get all expansions, or provide a vector with the expansions you want (create it with set_expansions()).

fields

Set NULL to not use any field, get all allowed fields with NA, provide a list with the fields you want (create it with set_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 via rtweet_app()).

parse

If TRUE, the default, returns a tidy data frame. Use FALSE 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.

See also

Examples

if (FALSE){
 tweet_get("567053242429734913", parse = FALSE)
 tweet_get(c("567053242429734913", "567053242429734913"), parse = FALSE)
 tweet_get(c("567053242429734913", "567053242429734913"), parse = TRUE)
}