user_search | R Documentation |
Looks up users.
user_search(
ids,
expansions = NULL,
fields = NULL,
...,
token = NULL,
parse = TRUE,
verbose = FALSE
)
ids |
A user id string or up to 100. |
expansions |
Set |
fields |
Set |
... |
Other arguments passed to the API. |
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. |
A data.frame with the id, name and username of the accounts.
Other information depends on the expansions
and fields
requested.
Accepted values are:
Expansions: set_expansions(tweet = NULL, list = NULL)
.
Fields: set_fields(media = NULL, poll = NULL, place = NULL)
.
https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-id https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users
user_by_username()
if (FALSE) {
us <- user_search(c("1599030512919650304", "2244994945"), verbose = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.