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


The Get Trend List Endpoint is a key component of the Twitter Trends API that allows users to retrieve a list of the available countries or cities for which trending topics are available. By using this endpoint, users can obtain the ID of a specific location that they want to monitor for trends. This information can then be used to call the Get Trends endpoint to retrieve the specific trends for that location. The Get Trend List Endpoint provides a simple and efficient way for users to obtain the necessary IDs for monitoring trends in different regions, making it an essential part of the Twitter Trends API.



                                                                            
GET https://zylalabs.com/api/1858/twitter+trends+api/1528/get+trend+list
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"success":true,"code":200,"message":"success","data":[{"name":"Worldwide","placeType":{"code":19,"name":"Supername"},"url":"http://where.yahooapis.com/v1/place/1","parentid":0,"country":"","woeid":1,"countryCode":null},{"name":"Winnipeg","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/2972","parentid":23424775,"country":"Canada","woeid":2972,"countryCode":"CA"},{"name":"Ottawa","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/3369","parentid":23424775,"country":"Canada","woeid":3369,"countryCode":"CA"},{"name":"Quebec","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/3444","parentid":23424775,"country":"Canada","woeid":3444,"countryCode":"CA"},{"name":"Montreal","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/3534","parentid":23424775,"country":"Canada","woeid":3534,"countryCode":"CA"},{"name":"Toronto","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/4118","parentid":23424775,"country":"Canada","woeid":4118,"countryCode":"CA"},{"name":"Edmonton","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/8676","parentid":23424775,"country":"Canada","woeid":8676,"countryCode":"CA"},{"name":"Calgary","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/8775","parentid":23424775,"country":"Canada","woeid":8775,"countryCode":"CA"},{"name":"Vancouver","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/9807","parentid":23424775,"country":"Canada","woeid":9807,"countryCode":"CA"},{"name":"Birmingham","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/12723","parentid":23424975,"country":"United Kingdom","woeid":12723,"countryCode":"GB"},{"name":"Blackpool","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/12903","parentid":23424975,"country":"United Kingdom","woeid":12903,"countryCode":"GB"},{"name":"Bournemouth","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/13383","parentid":23424975,"country":"United Kingdom","woeid":13383,"countryCode":"GB"},{"name":"Brighton","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/13911","parentid":23424975,"country":"United Kingdom","woeid":13911,"countryCode":"GB"},{"name":"Bristol","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/13963","parentid":23424975,"country":"United Kingdom","woeid":13963,"countryCode":"GB"},{"name":"Cardiff","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/15127","parentid":23424975,"country":"United Kingdom","woeid":15127,"countryCode":"GB"},{"name":"Coventry","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/17044","parentid":23424975,"country":"United Kingdom","woeid":17044,"countryCode":"GB"},{"name":"Derby","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/18114","parentid":23424975,"country":"United Kingdom","woeid":18114,"countryCode":"GB"},{"name":"Edinburgh","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/19344","parentid":23424975,"country":"United Kingdom","woeid":19344,"countryCode":"GB"},{"name":"Glasgow","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/21125","parentid":23424975,"country":"United Kingdom","woeid":21125,"countryCode":"GB"},{"name":"Hull","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/25211","parentid":23424975,"country":"United Kingdom","woeid":25211,"countryCode":"GB"},{"name":"Leeds","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/26042","parentid":23424975,"country":"United Kingdom","woeid":26042,"countryCode":"GB"},{"name":"Leicester","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/26062","parentid":23424975,"country":"United Kingdom","woeid":26062,"countryCode":"GB"},{"name":"Liverpool","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/26734","parentid":23424975,"country":"United Kingdom","woeid":26734,"countryCode":"GB"},{"name":"Manchester","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/28218","parentid":23424975,"country":"United Kingdom","woeid":28218,"countryCode":"GB"},{"name":"Middlesbrough","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/28869","parentid":23424975,"country":"United Kingdom","woeid":28869,"countryCode":"GB"},{"name":"Newcastle","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/30079","parentid":23424975,"country":"United Kingdom","woeid":30079,"countryCode":"GB"},{"name":"Nottingham","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/30720","parentid":23424975,"country":"United Kingdom","woeid":30720,"countryCode":"GB"},{"name":"Plymouth","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/32185","parentid":23424975,"country":"United Kingdom","woeid":32185,"countryCode":"GB"},{"name":"Portsmouth","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/32452","parentid":23424975,"country":"United Kingdom","woeid":32452,"countryCode":"GB"},{"name":"Preston","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/32566","parentid":23424975,"country":"United Kingdom","woeid":32566,"countryCode":"GB"},{"name":"Sheffield","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/34503","parentid":23424975,"country":"United Kingdom","woeid":34503,"countryCode":"GB"},{"name":"Stoke-on-Trent","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/36240","parentid":23424975,"country":"United Kingdom","woeid":36240,"countryCode":"GB"},{"name":"Swansea","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/36758","parentid":23424975,"country":"United Kingdom","woeid":36758,"countryCode":"GB"},{"name":"London","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/44418","parentid":23424975,"country":"United Kingdom","woeid":44418,"countryCode":"GB"},{"name":"Belfast","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/44544","parentid":23424975,"country":"United Kingdom","woeid":44544,"countryCode":"GB"},{"name":"Santo Domingo","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/76456","parentid":23424800,"country":"Dominican Republic","woeid":76456,"countryCode":"DO"},{"name":"Guatemala City","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/83123","parentid":23424834,"country":"Guatemala","woeid":83123,"countryCode":"GT"},{"name":"Acapulco","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/110978","parentid":23424900,"country":"Mexico","woeid":110978,"countryCode":"MX"},{"name":"Aguascalientes","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/111579","parentid":23424900,"country":"Mexico","woeid":111579,"countryCode":"MX"},{"name":"Chihuahua","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/115958","parentid":23424900,"country":"Mexico","woeid":115958,"countryCode":"MX"},{"name":"Mexico City","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/116545","parentid":23424900,"country":"Mexico","woeid":116545,"countryCode":"MX"},{"name":"Ciudad Juarez","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/116556","parentid":23424900,"country":"Mexico","woeid":116556,"countryCode":"MX"},{"name":"Nezahualcóyotl","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/116564","parentid":23424900,"country":"Mexico","woeid":116564,"countryCode":"MX"},{"name":"Culiacán","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/117994","parentid":23424900,"country":"Mexico","woeid":117994,"countryCode":"MX"},{"name":"Ecatepec de Morelos","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/118466","parentid":23424900,"country":"Mexico","woeid":118466,"countryCode":"MX"},{"name":"Guadalajara","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/124162","parentid":23424900,"country":"Mexico","woeid":124162,"countryCode":"MX"},{"name":"Hermosillo","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/124785","parentid":23424900,"country":"Mexico","woeid":124785,"countryCode":"MX"},{"name":"León","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/131068","parentid":23424900,"country":"Mexico","woeid":131068,"countryCode":"MX"},{"name":"Mérida","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/133327","parentid":23424900,"country":"Mexico","woeid":133327,"countryCode":"MX"},{"name":"Mexicali","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/133475","parentid":23424900,"country":"Mexico","woeid":133475,"countryCode":"MX"},{"name":"Monterrey","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/134047","parentid":23424900,"country":"Mexico","woeid":134047,"countryCode":"MX"},{"name":"Morelia","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/134091","parentid":23424900,"country":"Mexico","woeid":134091,"countryCode":"MX"},{"name":"Naucalpan de Juárez","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/134395","parentid":23424900,"country":"Mexico","woeid":134395,"countryCode":"MX"},{"name":"Puebla","placeType":{"code":7,"name":"Town"},"url":"http://where.yahooapis.com/v1/place/137612","parentid":23424900,"country":"Mexico","woeid":137612,"countryCod...
                                                                                                                                                                                                                    
                                                                                                    

Get Trend List - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1858/twitter+trends+api/1528/get+trend+list' --header 'Authorization: Bearer YOUR_API_KEY' 

    

The Get Trends Endpoint is an essential component of the Twitter Trends API that allows users to retrieve the top trending topics for a specific location. By providing the ID of the city or country obtained through the Get Trend List Endpoint, users can obtain information about the specific trends for that location. The Get Trends Endpoint provides users with real-time information about the conversations and topics that are most relevant to a specific location, making it an essential tool for social media monitoring, content creation, and trend analysis.



                                                                            
GET https://zylalabs.com/api/1858/twitter+trends+api/1529/get+trends
                                                                            
                                                                        

Get Trends - Endpoint Features
Object Description
woeid [Required] This can be found in the Get Trend List Endpoint. For example: 4118
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"success":true,"code":200,"message":"success","data":{"metadata":{"timestamp":1680021302356,"refresh_interval_millis":300000,"woeid":{"name":"Toronto","id":4118},"context_mode":"full"},"modules":[{"trend":{"name":"Nashville","target":{"query":"Nashville"},"rank":1,"meta_description":"1.3M Tweets"}},{"trend":{"name":"Tears of the Kingdom","target":{"query":"\"Tears of the Kingdom\""},"rank":2,"meta_description":"38.3K Tweets"}},{"trend":{"name":"Uniswap","target":{"query":"Uniswap"},"rank":3,"meta_description":"428K Tweets"}},{"trend":{"name":"For You","target":{"query":"\"For You\""},"rank":4,"meta_description":"4.38M Tweets"}},{"trend":{"name":"#TheBachelor","target":{"query":"#TheBachelor"},"rank":5,"meta_description":"42.3K Tweets"}},{"trend":{"name":"Maureen Breau","target":{"query":"\"Maureen Breau\""},"rank":6,"meta_description":"1,031 Tweets"}},{"trend":{"name":"#Budget2023","target":{"query":"#Budget2023"},"rank":7,"meta_description":"2,679 Tweets"}},{"trend":{"name":"TOTK","target":{"query":"TOTK"},"rank":8,"meta_description":"11.1K Tweets"}},{"trend":{"name":"jungkook","target":{"query":"jungkook"},"rank":9,"meta_description":"2.58M Tweets"}},{"trend":{"name":"Lukes","target":{"query":"Lukes"},"rank":10}},{"trend":{"name":"Elon","target":{"query":"Elon"},"rank":11,"meta_description":"217K Tweets"}},{"trend":{"name":"#HeroesInLife","target":{"query":"#HeroesInLife"},"rank":12}},{"trend":{"name":"#tuesdayvibe","target":{"query":"#tuesdayvibe"},"rank":13,"meta_description":"13K Tweets"}},{"trend":{"name":"OLED","target":{"query":"OLED"},"rank":14,"meta_description":"20.5K Tweets"}},{"trend":{"name":"#WWERaw","target":{"query":"#WWERaw"},"rank":15,"meta_description":"76.8K Tweets"}},{"trend":{"name":"Louiseville","target":{"query":"Louiseville"},"rank":16}},{"trend":{"name":"Lamar","target":{"query":"Lamar"},"rank":17,"meta_description":"92.2K Tweets"}},{"trend":{"name":"i rtd","target":{"query":"\"i rtd\""},"rank":18,"meta_description":"157K Tweets"}},{"trend":{"name":"Namibie","target":{"query":"Namibie"},"rank":19,"meta_description":"4,682 Tweets"}},{"trend":{"name":"Dubois","target":{"query":"Dubois"},"rank":20,"meta_description":"14.1K Tweets"}},{"trend":{"name":"Sandy Hook","target":{"query":"\"Sandy Hook\""},"rank":21,"meta_description":"40.7K Tweets"}},{"trend":{"name":"Lopez","target":{"query":"Lopez"},"rank":22,"meta_description":"141K Tweets"}},{"trend":{"name":"Breath of the Wild","target":{"query":"\"Breath of the Wild\""},"rank":23,"meta_description":"7,118 Tweets"}},{"trend":{"name":"Binance","target":{"query":"Binance"},"rank":24,"meta_description":"266K Tweets"}},{"trend":{"name":"Michael Pezzetta","target":{"query":"\"Michael Pezzetta\""},"rank":25}},{"trend":{"name":"Coyotes","target":{"query":"Coyotes"},"rank":26,"meta_description":"3,184 Tweets"}},{"trend":{"name":"Gabi","target":{"query":"Gabi"},"rank":27,"meta_description":"33.3K Tweets"}},{"trend":{"name":"Primeau","target":{"query":"Primeau"},"rank":28}},{"trend":{"name":"Tiger Williams","target":{"query":"\"Tiger Williams\""},"rank":29}},{"trend":{"name":"Chris Chan","target":{"query":"\"Chris Chan\""},"rank":30,"meta_description":"18.5K Tweets"}},{"trend":{"name":"Travis JORDAN","target":{"query":"\"Travis JORDAN\""},"rank":31,"meta_description":"1,847 Tweets"}},{"trend":{"name":"Scotland","target":{"query":"Scotland"},"rank":32,"meta_description":"184K Tweets"}},{"trend":{"name":"Irina","target":{"query":"Irina"},"rank":33,"meta_description":"16.8K Tweets"}},{"trend":{"name":"Toes","target":{"query":"Toes"},"rank":34,"meta_description":"46.2K Tweets"}},{"trend":{"name":"Aunt Crabby","target":{"query":"\"Aunt Crabby\""},"rank":35,"meta_description":"17.7K Tweets"}},{"trend":{"name":"Kaity","target":{"query":"Kaity"},"rank":36,"meta_description":"6,099 Tweets"}},{"trend":{"name":"$BABA","target":{"query":"$BABA"},"rank":37,"meta_description":"4,509 Tweets"}},{"trend":{"name":"maisie","target":{"query":"maisie"},"rank":38,"meta_description":"1,696 Tweets"}},{"trend":{"name":"Tennessee","target":{"query":"Tennessee"},"rank":39,"meta_description":"320K Tweets"}},{"trend":{"name":"Columbine","target":{"query":"Columbine"},"rank":40,"meta_description":"24.2K Tweets"}}],"id":-3335670028717647400}}
                                                                                                                                                                                                                    
                                                                                                    

Get Trends - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1858/twitter+trends+api/1529/get+trends?woeid=4118' --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)

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
12,138ms

Useful links:


Category:


Tags:


Related APIs