trends_available: Available Twitter trends along with associated WOEID.

View source: R/trends.R

trends_availableR Documentation

Available Twitter trends along with associated WOEID.

Description

Available Twitter trends along with associated WOEID.

Usage

trends_available(token = NULL, parse = TRUE)

Arguments

token

Expert use only. Use this to override authentication for a single API call. In most cases you are better off changing the default for all calls. See auth_as() for details.

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.

Value

Data frame with WOEID column. WOEID is a Yahoo! Where On Earth ID.

References

https://developer.twitter.com/en/docs/twitter-api/v1/trends/locations-with-trending-topics/api-reference/get-trends-available

See Also

Other trends: get_trends()

Examples

if (auth_has_default()) {
## Retrieve available trends
trends <- trends_available()
trends

}


rtweet documentation built on July 21, 2022, 5:10 p.m.