Twitter Trends API

Twitter Trends API

The Twitter Trends API provides access to the current trending topics on Twitter for specific countries or cities.

API description

About the API:

The Twitter Trends API is a powerful tool that provides users with access to current trending topics on Twitter, specific to a country or city. This API offers two endpoints: the Get Trend List Endpoint and the Get Trends Endpoint. By using these endpoints, users can retrieve a list of the top trending topics for a specific location, and then dive deeper into the details of each trend.

To use this API, users need to provide the ID of the desired country or city in the Get Trend List Endpoint. This will return a list of all the available trends in that location. Users can then use the ID of a specific trend in the Get Trends Endpoint to retrieve more information about it, such as the tweet volume and the time period in which it was trending.

This data can be extremely useful for businesses and individuals alike. For example, companies can use this data to monitor their brand reputation in real-time, by tracking mentions and sentiment across different locations. Social media managers can also use this data to plan their content strategy and create relevant content around current trends.

In addition, journalists and media outlets can use this API to stay up-to-date on the latest news and events, and to identify emerging trends in different regions. Researchers and academics can also use this data to study social trends and behaviors on Twitter, and to gain insights into the public sentiment on different topics.

Overall, the Twitter Trends API is a valuable resource for anyone looking to track global or local conversations, and to stay on top of the latest trends in real-time.

What your API receives and what your API provides (input/output)?

It will receive a parameter and provide you with a JSON.

What are the most common uses cases of this API?

Social media monitoring: Brands and businesses can use the API to track mentions and sentiment of their brand in real-time across different locations.

Content creation: Social media managers can use the API to identify relevant trends and create content around them.

Crisis management: In the event of a crisis, companies and organizations can use the API to monitor conversations and respond quickly.

Market research: Businesses can use the API to identify emerging trends and consumer behavior.

News Monitoring: Journalists and media outlets can use the API to stay on top of the latest news and events in different regions.

Event planning: Event organizers can use the API to monitor conversations and plan their events accordingly.

Trend analysis: Researchers and academics can use the API to study social trends and behaviors on Twitter.

Location-based advertising: Marketers can use the API to target their advertising campaigns to specific regions and trends.

Product development: Businesses can use the API to identify customer needs and preferences, and develop new products accordingly.

Competitive analysis: Brands can use the API to monitor their competitors and stay ahead of the competition.

Are there any limitations to your plans?

Basic Plan: 1,000 API Calls. 50 requests per hour.

Pro Plan: 5,000 API Calls. 50 requests per hour.

Pro Plus Plan: 10,000 API Calls. 50 requests per hour.

Premium Plan: 50,000 API Calls. 50 requests per hour.

API Documentation

Endpoints


Using the WOEID you will receive the latest trends from that location. 

WOEID List:

Woeid List

Assigned WOEID list

  1. Algeria : 23424740

  2. Argentina : 23424747

  3. Australia : 23424748

  4. Austria : 23424750

  5. Bahrain : 23424753

  6. Belarus : 23424765

  7. Belgium : 23424757

  8. Brazil : 23424768

  9. Canada : 23424775

  10. Chile : 23424782

  11. Colombia : 23424787

  12. Denmark : 23424796

  13. Dominican Republic : 23424800

  14. Ecuador : 23424801

  15. Egypt : 23424802

  16. France : 23424819

  17. Germany : 23424829

  18. Ghana : 23424824

  19. Greece : 23424833

  20. Guatemala : 23424834

  21. India : 23424848

  22. Indonesia : 23424846

  23. Ireland : 23424803

  24. Israel : 23424852

  25. Italy : 23424853

  26. Japan : 23424856

  27. Jordan : 23424860

  28. Kenya : 23424863

  29. Kuwait : 23424870

  30. Latvia : 23424874

  31. Lebanon : 23424873

  32. Malaysia : 23424901

  33. Mexico : 23424900

  34. Netherlands : 23424909

  35. New Zealand : 23424916

  36. Nigeria : 23424908

  37. Norway : 23424910

  38. Oman : 23424898

  39. Pakistan : 23424922

  40. Panama : 23424924

  41. Peru : 23424919

  42. Philippines : 23424934

  43. Poland : 23424923

  44. Portugal : 23424925

  45. Puerto Rico : 23424935

  46. Qatar : 23424930

  47. Russia : 23424936

  48. Saudi Arabia : 23424938

  49. Singapore : 23424948

  50. South Africa : 23424942

  51. South Korea : 23424868

  52. Spain : 23424950

  53. Sweden : 23424954

  54. Switzerland : 23424957

  55. Thailand : 23424960

  56. Turkey : 23424969

  57. Ukraine : 23424976

  58. United Arab Emirates : 23424738

  59. United Kingdom : 23424975

  60. United States : 23424977

  61. Venezuela : 23424982

  62. Vietnam : 23424984

  63. Worldwide : 1



                                                                            
POST https://zylalabs.com/api/1858/twitter+trends+api/2894/get+trending
                                                                            
                                                                        

Get Trending - Endpoint Features
Object Description
woeid [Required] Location WOEID.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"trends":{"0":{"name":"#IDontWantToOverreactBUT","query":"%23IDontWantToOverreactBUT","url":"search?q=%23IDontWantToOverreactBUT","volume":3324,"volumeShort":"3,324","domainContext":"Sports","groupedTrends":[]},"1":{"name":"#MondayMotivation","query":"%23MondayMotivation","url":"search?q=%23MondayMotivation","volume":47200,"volumeShort":"46.6K","domainContext":"Only on Twitter","groupedTrends":[]},"2":{"name":"#PAKvsAFG","query":"%23PAKvsAFG","url":"search?q=%23PAKvsAFG","volume":1000,"volumeShort":"1k","domainContext":"Cricket","groupedTrends":[{"name":"#Afghanistan","query":"%23Afghanistan","url":"search?q=%23Afghanistan"},{"name":"#CWC2023","query":"%23CWC2023","url":"search?q=%23CWC2023"}]},"3":{"name":"#\ud070_\ud56d\ud574\uac00_\ud3bc\uccd0\uc9c8_\uc5d0\uc774\ud2f0\uc9885\uc8fc\ub144","query":"%23%ED%81%B0_%ED%95%AD%ED%95%B4%EA%B0%80_%ED%8E%BC%EC%B3%90%EC%A7%88_%EC%97%90%EC%9D%B4%ED%8B%B0%EC%A6%885%EC%A3%BC%EB%85%84","url":"search?q=%23%ED%81%B0_%ED%95%AD%ED%95%B4%EA%B0%80_%ED%8E%BC%EC%B3%90%EC%A7%88_%EC%97%90%EC%9D%B4%ED%8B%B0%EC%A6%885%EC%A3%BC%EB%85%84","volume":1000,"volumeShort":"1k","domainContext":"K-pop","groupedTrends":[{"name":"#5YearsSailingwithATEEZ","query":"%235YearsSailingwithATEEZ","url":"search?q=%235YearsSailingwithATEEZ"}]},"4":{"name":"Scorpio","query":"Scorpio","url":"search?q=Scorpio","volume":39400,"volumeShort":"39.2K","domainContext":"Arts & culture","groupedTrends":[]},"5":{"name":"#MondayMood","query":"%23MondayMood","url":"search?q=%23MondayMood","volume":6261,"volumeShort":"6,261","domainContext":"Only on Twitter","groupedTrends":[]},"6":{"name":"DJ Envy","query":"DJ+Envy","url":"search?q=%22DJ+Envy%22","volume":21799,"volumeShort":"21.4K","domainContext":"","groupedTrends":[]},"7":{"name":"Nike","query":"Nike","url":"search?q=Nike","volume":29799,"volumeShort":"28.9K","domainContext":"Fashion","groupedTrends":[]},"8":{"name":"Bobi","query":"Bobi","url":"search?q=Bobi","volume":18600,"volumeShort":"17.8K","domainContext":"","groupedTrends":[]},"9":{"name":"Skims","query":"Skims","url":"search?q=Skims","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[{"name":"Nick Bosa","query":"Nick+Bosa","url":"search?q=Nick+Bosa"}]},"10":{"name":"Victory Monday","query":"Victory+Monday","url":"search?q=%22Victory+Monday%22","volume":7034,"volumeShort":"7,034","domainContext":"NFL","groupedTrends":[]},"11":{"name":"Alaska Airlines","query":"Alaska+Airlines","url":"search?q=%22Alaska+Airlines%22","volume":2788,"volumeShort":"2,788","domainContext":"Business and finance","groupedTrends":[]},"12":{"name":"Ackman","query":"Ackman","url":"search?q=Ackman","volume":2199,"volumeShort":"2,199","domainContext":"Business and finance","groupedTrends":[]},"13":{"name":"Jay Z","query":"Jay+Z","url":"search?q=%22Jay+Z%22","volume":1000,"volumeShort":"1k","domainContext":"Rap","groupedTrends":[]},"14":{"name":"SEVENTEEN","query":"SEVENTEEN","url":"search?q=SEVENTEEN","volume":1000,"volumeShort":"1k","domainContext":"K-pop","groupedTrends":[{"name":"God of Music","query":"God+of+Music","url":"search?q=God+of+Music"},{"name":"woozi","query":"woozi","url":"search?q=woozi"}]},"15":{"name":"I-55","query":"I-55","url":"search?q=I-55","volume":14000,"volumeShort":"14K","domainContext":"","groupedTrends":[]},"16":{"name":"Happy 5","query":"Happy+5","url":"search?q=%22Happy+5%22","volume":41400,"volumeShort":"41.2K","domainContext":"Music","groupedTrends":[]},"17":{"name":"Melania","query":"Melania","url":"search?q=Melania","volume":1000,"volumeShort":"1k","domainContext":"Politics","groupedTrends":[{"name":"Tom Emmer","query":"Tom+Emmer","url":"search?q=Tom+Emmer"},{"name":"Pratt","query":"Pratt","url":"search?q=Pratt"}]},"18":{"name":"Rachel McAdams","query":"Rachel+McAdams","url":"search?q=%22Rachel+McAdams%22","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"19":{"name":"Christendom","query":"Christendom","url":"search?q=Christendom","volume":1560,"volumeShort":"1,560","domainContext":"","groupedTrends":[]},"20":{"name":"Missing Link","query":"Missing+Link","url":"search?q=%22Missing+Link%22","volume":5651,"volumeShort":"5,651","domainContext":"","groupedTrends":[]},"21":{"name":"Time In A Bottle","query":"Time+In+A+Bottle","url":"search?q=%22Time+In+A+Bottle%22","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"22":{"name":"Hess","query":"Hess","url":"search?q=Hess","volume":1000,"volumeShort":"1k","domainContext":"Business and finance","groupedTrends":[{"name":"Chevron","query":"Chevron","url":"search?q=Chevron"}]},"23":{"name":"Tech Hub","query":"Tech+Hub","url":"search?q=%22Tech+Hub%22","volume":1181,"volumeShort":"1,181","domainContext":"Politics","groupedTrends":[]},"24":{"name":"Killer Queen","query":"Killer+Queen","url":"search?q=%22Killer+Queen%22","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"25":{"name":"Merrimack","query":"Merrimack","url":"search?q=Merrimack","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"26":{"name":"MAAC","query":"MAAC","url":"search?q=MAAC","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"27":{"name":"Aaron Nesmith","query":"Aaron+Nesmith","url":"search?q=%22Aaron+Nesmith%22","volume":1000,"volumeShort":"1k","domainContext":"NBA","groupedTrends":[]},"28":{"name":"Soul Tapes","query":"Soul+Tapes","url":"search?q=%22Soul+Tapes%22","volume":1000,"volumeShort":"1k","domainContext":"","groupedTrends":[]},"29":{"name":"Stellantis","query":"Stellantis","url":"search?q=Stellantis","volume":3009,"volumeShort":"3,009","domainContext":"","groupedTrends":[]},"30":{"name":"Bella Noche","query":"Bella+Noche","url":"search?q=%22Bella+Noche%22","volume":12600,"volumeShort":"12.3K","domainContext":"","groupedTrends":[]},"31":{"name":"Kayn","query":"Kayn","url":"search?q=Kayn","volume":15200,"volumeShort":"15.1K","domainContext":"Video games","groupedTrends":[]},"32":{"name":"Babar","query":"Babar","url":"search?q=Babar","volume":82400,"volumeShort":"82.2K","domainContext":"Cricket","groupedTrends":[]},"33":{"name":"Black Monday","query":"Black+Monday","url":"search?q=%22Black+Monday%22","volume":3502,"volumeShort":"3,502","domainContext":"Business and finance","groupedTrends":[]},"34":{"name":"Dreamville","query":"Dreamville","url":"search?q=Dreamville","volume":1000,"volumeShort":"1k","domainContext":"Music","groupedTrends":[]},"35":{"name":"Game Week","query":"Game+Week","url":"search?q=%22Game+Week%22","volume":52800,"volumeShort":"51.9K","domainContext":"","groupedTrends":[]},"36":{"name":"Early Voting","query":"Early+Voting","url":"search?q=%22Early+Voting%22","volume":5853,"volumeShort":"5,853","domainContext":"","groupedTrends":[]},"37":{"name":"Approve","query":"Approve","url":"search?q=Approve","volume":15200,"volumeShort":"15.1K","domainContext":"","groupedTrends":[]},"38":{"name":"Beirut","query":"Beirut","url":"search?q=Beirut","volume":37000,"volumeShort":"36.5K","domainContext":"Politics","groupedTrends":[]},"39":{"name":"Cigarette","query":"Cigarette","url":"search?q=Cigarette","volume":8478,"volumeShort":"8,478","domainContext":"","groupedTrends":[]},"40":{"name":"The Day the Delusions Died","query":"The+Day+the+Delusions+Died","url":"search?q=%22The+Day+the+Delusions+Died%22","volume":9295,"volumeShort":"9,295","domainContext":"","groupedTrends":[]},"41":{"name":"Pierce The Veil","query":"Pierce+The+Veil","url":"search?q=%22Pierce+The+Veil%22","volume":1276,"volumeShort":"1,276","domainContext":"Music","groupedTrends":[]},"42":{"name":"Nightwing","query":"Nightwing","url":"search?q=Nightwing","volume":1925,"volumeShort":"1,925","domainContext":"Entertainment","groupedTrends":[]},"43":{"name":"Squid Game","query":"Squid+Game","url":"search?q=%22Squid+Game%22","volume":2344,"volumeShort":"2,344","domainContext":"Movies & TV","groupedTrends":[]},"44":{"name":"Another Monday","query":"Another+Monday","url":"search?q=%22Another+Monday%22","volume":8317,"volumeShort":"8,317","domainContext":"","groupedTrends":[]},"45":{"name":"New Week","query":"New+Week","url":"search?q=%22New+Week%22","volume":145000,"volumeShort":"145K","domainContext":"","groupedTrends":[]},"46":{"name":"City Edition","query":"City+Edition","url":"search?q=%22City+Edition%22","volume":3271,"volumeShort":"3,271","domainContext":"","groupedTrends":[]},"47":{"name":"Velcro","query":"Velcro","url":"search?q=Velcro","volume":2170,"volumeShort":"2,170","domainContext":"","groupedTrends":[]},"48":{"name":"Quickley","query":"Quickley","url":"search?q=Quickley","volume":1000,"volumeShort":"1k","domainContext":"NBA","groupedTrends":[]},"49":{"name":"Clover","query":"Clover","url":"search?q=Clover","volume":17600,"volumeShort":"17.3K","domainContext":"","groupedTrends":[]}},"location":{"name":"United States","woeid":23424977},"created":{"created_at":1698080403,"created_at_v1":"2023-10-23T17:00:03Z"}}
                                                                                                                                                                                                                    
                                                                                                    

Get Trending - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/1858/twitter+trends+api/2894/get+trending?woeid=23424977' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Twitter Trends API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
902ms

Category:


Related APIs