• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.


Twitter REST API Method: trends available

Page history last edited by Raffi Krikorian 13 years, 1 month ago

<< Back to Twitter API Documentation



Returns the locations that Twitter has trending topic information for. The response is an array of "locations" that encode the location's WOEID (a Yahoo! Where On Earth ID) and some other human-readable information such as a canonical name and country the location belongs in.


The WOEID that is returned in the location object is to be used when querying for a specific trend.

method status | report a bug






xml, json


HTTP Method:



Requires Authentication (about authentication):



API rate limited (about rate limiting):




  • lat.  Optional.  If passed in conjunction with long, then the available trend locations will be sorted by distance to the lat and long passed in.  The sort is nearest to furthest.
  • long.  Optional.  See lat.


Response (about return values): 

          XML example (truncated):

<?xml version="1.0" encoding="UTF-8"?>

<locations type="array">



<name>San Francisco</name>

<placeTypeName code="7">Town</placeTypeName>

<country type="Country" code="US">United States</country>






          JSON example (truncated):









"country":"United Kingdom",








Usage examples: 

cURL (about cURL):

curl http://api.twitter.com/1/trends/available.json


          Do you have an example to share in the language of your choice? Please share!


<< Back to Twitter API Documentation

Comments (0)

You don't have permission to comment on this page.