Looks up who have retweeted a given tweet.
tweet_retweeted_by(
ids,
n = 100,
expansions = NULL,
fields = NULL,
...,
token = NULL,
parse = TRUE,
verbose = FALSE
)
A data.frame with the user information of who retweeted it:
id, name, and username.
Other information depends on the expansions
and fields
requested.
A tweet id string.
Number of tweets to query.
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()
).
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.
These endpoints only accept a bearer token (can be created via
rtweet_app()
). In most cases you
are better of changing the default for all calls via auth_as()
.
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.
A logical value to provide more information about the paginated queries (if any) and to store the data of each page.
if (FALSE) {
rb <- tweet_retweeted_by("567053242429734913")
}
Run the code above in your browser using DataLab