list_get {rtweet} | R Documentation |
List information
Description
Looks up information about a list.
Usage
list_get(
ids,
n = 100,
expansions = NULL,
fields = NULL,
...,
token = NULL,
parse = TRUE,
verbose = FALSE
)
Arguments
ids |
A list id. |
n |
Number of users to query. |
expansions |
Set |
fields |
Set |
... |
Other parameters passed to the body of the request. |
token |
These endpoints only accept a bearer token (can be created via
|
parse |
If |
verbose |
A logical value to provide more information about paginated queries. |
Value
A data.frame with the user information of who is included in the list: id, name, and username.
Other information depends on the expansions
and fields
requested.
Accepted values are:
Expansions:
set_expansions(tweet = NULL, user = NULL)
Fields:
set_fields(place = NULL, poll = NULL, media = NULL, tweet = NULL)
.
References
https://developer.twitter.com/en/docs/twitter-api/lists/list-lookup/api-reference/get-lists-id
Examples
if (FALSE) {
lg <- list_get("1306285118877831168")
}