Learn R Programming

twitterreport (version 0.15.11)

tw_api_get_trends_place: Gets the trends for a given place

Description

Uses the output from tw_api_trends_available

Usage

tw_api_get_trends_place(id, twitter_token, exclude = FALSE, ...)

Arguments

id
Id of the place
twitter_token
Token
exclude
Whether to exclude hashtags or not
...
Ignored

Details

From TwitterReturns the top 10 trending topics for a specific WOEID, if trending information is available for it.

The response is an array of ``trend'' objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL.

This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage.

References

Twitter REST API (GET trends/place) https://dev.twitter.com/rest/reference/get/trends/place

See Also

Other API functions: tw_api_get_followers_ids, tw_api_get_followers_list, tw_api_get_friends_ids, tw_api_get_search_tweets, tw_api_get_statuses_sample, tw_api_get_statuses_user_timeline, tw_api_get_users_search, tw_api_get_users_show, tw_api_trends_available, tw_gen_token