R: Get tweets data for given statuses (status IDs).

lookup_statuses {rtweet} | R Documentation

## Get tweets data for given statuses (status IDs).

### Description

Returns data on up to 90,000 Twitter statuses. To return data on more than 90,000 statuses, users must iterate through status IDs whilst avoiding rate limits, which reset every 15 minutes.

### Usage

    lookup_statuses(statuses, parse = TRUE, token = NULL)

    lookup_tweets(statuses, parse = TRUE, token = NULL)

### Arguments

`statuses` | User id or screen name of target user.
`parse` | Logical, indicating whether or not to parse return object into data frame(s).
`token` | Every user should have their own Oauth (Twitter API) token. By default `token = NULL` this function looks for the path to a saved Twitter token via environment variables (which is what 'create_token()' sets up by default during initial token creation). For instruction on how to create a Twitter token see the tokens vignette, i.e., 'vignettes("auth", "rtweet")' or see `?tokens`.

### Value

A tibble of tweets data.

### See Also

https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup

Other tweets: `get_favorites()`, `get_mentions()`, `get_my_timeline()`, `get_timeline()`, `lists_statuses()`, `search_tweets()`, `tweets_data()`, `tweets_with_users()`

### Examples

    ## Not run:

    ## create object containing status IDs
    statuses <- c(
      "567053242429734913",
      "266031293945503744",
      "440322224407314432"
    )

    ## lookup tweets data for given statuses
    tw <- lookup_statuses(statuses)
    tw

    ## End(Not run)

[Package rtweet version 0.7.0 Index]