X Trending API

The X Trending API returns the top current trends by WOEID, including hashtags, topics, tweet volumes, and real-time search links.

The X Trending API is an advanced tool designed to provide up-to-date data on the most popular topics and hashtags on Twitter, organized by WOEID (Where On Earth IDentifier), which represents specific geographic locations. This API allows developers, analysts, and businesses to access real-time data on topics that are generating conversation at the local, national, or global level, providing an accurate view of social and media trends.

When consulting the API, you get a structured list of the most talked-about topics, including the name of the trend, the direct search link on Twitter, the encoded query, and the volume of tweets when available. This allows you to identify which conversations dominate the platform at a given moment and how user interests evolve in different regions. In addition, the API returns information on popular hashtags, proper names, events, news, sports teams, personalities, and viral phenomena, making it an ideal source for brand monitoring, social research, and public opinion analysis.

The data provided is highly structured and easy to integrate into dashboards, monitoring applications, or trend analysis tools. Developers can use the endpoints to filter results by region, analyze the frequency of mentions, or compare trends between different countries or cities. It is also useful for media outlets and marketing agencies looking to detect emerging topics before they reach their peak popularity.

The API maintains fast and reliable performance, constantly updating information to reflect dynamic changes in global conversation. Thanks to its accuracy and focus on temporal relevance, the X Trending API is an essential tool for those who need to understand the digital pulse of the moment, anticipate movements on social media, and adapt communication or content strategies based on dominant trends on Twitter.

API Documentation

Endpoints


Get all available countries along with their WOEID.



                                                                            
GET https://www.zylalabs.com/api/10805/x+trending+api/20458/available+countries
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
    "Algeria": 23424740,
    "Argentina": 23424747,
    "Australia": 23424748,
    "Austria": 23424750,
    "Bahrain": 23424753,
    "Belarus": 23424765,
    "Belgium": 23424757,
    "Brazil": 23424768,
    "Canada": 23424775,
    "Chile": 23424782,
    "Colombia": 23424787,
    "Denmark": 23424796,
    "Dominican Republic": 23424800,
    "Ecuador": 23424801,
    "Egypt": 23424802,
    "France": 23424819,
    "Germany": 23424829,
    "Ghana": 23424824,
    "Greece": 23424833,
    "Guatemala": 23424834,
    "India": 23424848,
    "Indonesia": 23424846,
    "Ireland": 23424803,
    "Israel": 23424852,
    "Italy": 23424853,
    "Japan": 23424856,
    "Jordan": 23424860,
    "Kenya": 23424863,
    "Kuwait": 23424870,
    "Latvia": 23424874,
    "Lebanon": 23424873,
    "Malaysia": 23424901,
    "Mexico": 23424900,
    "Netherlands": 23424909,
    "New Zealand": 23424916,
    "Nigeria": 23424908,
    "Norway": 23424910,
    "Oman": 23424898,
    "Pakistan": 23424922,
    "Panama": 23424924,
    "Peru": 23424919,
    "Philippines": 23424934,
    "Poland": 23424923,
    "Portugal": 23424925,
    "Puerto Rico": 23424935,
    "Qatar": 23424930,
    "Russia": 23424936,
    "Saudi Arabia": 23424938,
    "Singapore": 23424948,
    "South Africa": 23424942,
    "South Korea": 23424868,
    "Spain": 23424950,
    "Sweden": 23424954,
    "Switzerland": 23424957,
    "Thailand": 23424960,
    "Turkey": 23424969,
    "Ukraine": 23424976,
    "United Arab Emirates": 23424738,
    "United Kingdom": 23424975,
    "United States": 23424977,
    "Venezuela": 23424982,
    "Vietnam": 23424984,
    "Worldwide": 1
}
                                                                                                                                                                                                                    
                                                                                                    

Available Countries - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/10805/x+trending+api/20458/available+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Get the top Twitter trends by WOEID, including name, hashtag, tweet volume, search link, and coded queries



                                                                            
GET https://www.zylalabs.com/api/10805/x+trending+api/20459/get+trends
                                                                            
                                                                        

Get Trends - Endpoint Features

Object Description
woeid [Required] Enter a WOEID
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [
    {
        "trends": [
            {
                "name": "\u30ec\u30a4\u30a8\u30b9",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%AC%E3%82%A4%E3%82%A8%E3%82%B9",
                "promoted_content": null,
                "query": "%E3%83%AC%E3%82%A4%E3%82%A8%E3%82%B9",
                "tweet_volume": 11357
            },
            {
                "name": "#LoveYourW2025",
                "url": "http:\/\/twitter.com\/search?q=%23LoveYourW2025",
                "promoted_content": null,
                "query": "%23LoveYourW2025",
                "tweet_volume": 162892
            },
            {
                "name": "\u30a2\u30ba\u30e9\u30a4\u30fc\u30eb",
                "url": "http:\/\/twitter.com\/search?q=%E3%82%A2%E3%82%BA%E3%83%A9%E3%82%A4%E3%83%BC%E3%83%AB",
                "promoted_content": null,
                "query": "%E3%82%A2%E3%82%BA%E3%83%A9%E3%82%A4%E3%83%BC%E3%83%AB",
                "tweet_volume": 41159
            },
            {
                "name": "#\u962a\u795e\u30bf\u30a4\u30ac\u30fc\u30b9",
                "url": "http:\/\/twitter.com\/search?q=%23%E9%98%AA%E7%A5%9E%E3%82%BF%E3%82%A4%E3%82%AC%E3%83%BC%E3%82%B9",
                "promoted_content": null,
                "query": "%23%E9%98%AA%E7%A5%9E%E3%82%BF%E3%82%A4%E3%82%AC%E3%83%BC%E3%82%B9",
                "tweet_volume": 30170
            },
            {
                "name": "#sbhawks",
                "url": "http:\/\/twitter.com\/search?q=%23sbhawks",
                "promoted_content": null,
                "query": "%23sbhawks",
                "tweet_volume": 31944
            },
            {
                "name": "#lovefighters",
                "url": "http:\/\/twitter.com\/search?q=%23lovefighters",
                "promoted_content": null,
                "query": "%23lovefighters",
                "tweet_volume": 32650
            },
            {
                "name": "#ananAWARD2025",
                "url": "http:\/\/twitter.com\/search?q=%23ananAWARD2025",
                "promoted_content": null,
                "query": "%23ananAWARD2025",
                "tweet_volume": 38444
            },
            {
                "name": "\u30d5\u30a9\u30fc\u30c9",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%95%E3%82%A9%E3%83%BC%E3%83%89",
                "promoted_content": null,
                "query": "%E3%83%95%E3%82%A9%E3%83%BC%E3%83%89",
                "tweet_volume": null
            },
            {
                "name": "\u77f3\u4e95\u5927\u667a",
                "url": "http:\/\/twitter.com\/search?q=%E7%9F%B3%E4%BA%95%E5%A4%A7%E6%99%BA",
                "promoted_content": null,
                "query": "%E7%9F%B3%E4%BA%95%E5%A4%A7%E6%99%BA",
                "tweet_volume": null
            },
            {
                "name": "\u30dd\u30b1\u30e2\u30f3",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3",
                "promoted_content": null,
                "query": "%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3",
                "tweet_volume": 100745
            },
            {
                "name": "Raila",
                "url": "http:\/\/twitter.com\/search?q=Raila",
                "promoted_content": null,
                "query": "Raila",
                "tweet_volume": 249788
            },
            {
                "name": "AVOCEAN DRIVER GRAB WITH JS",
                "url": "http:\/\/twitter.com\/search?q=%22AVOCEAN+DRIVER+GRAB+WITH+JS%22",
                "promoted_content": null,
                "query": "%22AVOCEAN+DRIVER+GRAB+WITH+JS%22",
                "tweet_volume": 35994
            },
            {
                "name": "\u30b0\u30e9\u30f3\u30c9\u30a2\u30b5\u30b7\u30f3",
                "url": "http:\/\/twitter.com\/search?q=%E3%82%B0%E3%83%A9%E3%83%B3%E3%83%89%E3%82%A2%E3%82%B5%E3%82%B7%E3%83%B3",
                "promoted_content": null,
                "query": "%E3%82%B0%E3%83%A9%E3%83%B3%E3%83%89%E3%82%A2%E3%82%B5%E3%82%B7%E3%83%B3",
                "tweet_volume": null
            },
            {
                "name": "4 PODUM X ZEENUNEW",
                "url": "http:\/\/twitter.com\/search?q=%224+PODUM+X+ZEENUNEW%22",
                "promoted_content": null,
                "query": "%224+PODUM+X+ZEENUNEW%22",
                "tweet_volume": 88683
            },
            {
                "name": "\u30e2\u30a4\u30cd\u30ed",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%A2%E3%82%A4%E3%83%8D%E3%83%AD",
                "promoted_content": null,
                "query": "%E3%83%A2%E3%82%A4%E3%83%8D%E3%83%AD",
                "tweet_volume": null
            },
            {
                "name": "\u653f\u7b56\u5354\u8b70",
                "url": "http:\/\/twitter.com\/search?q=%E6%94%BF%E7%AD%96%E5%8D%94%E8%AD%B0",
                "promoted_content": null,
                "query": "%E6%94%BF%E7%AD%96%E5%8D%94%E8%AD%B0",
                "tweet_volume": 14011
            },
            {
                "name": "GEMINI IS SAMUT TDD EP6",
                "url": "http:\/\/twitter.com\/search?q=%22GEMINI+IS+SAMUT+TDD+EP6%22",
                "promoted_content": null,
                "query": "%22GEMINI+IS+SAMUT+TDD+EP6%22",
                "tweet_volume": null
            },
            {
                "name": "\u9023\u7acb\u8996\u91ce",
                "url": "http:\/\/twitter.com\/search?q=%E9%80%A3%E7%AB%8B%E8%A6%96%E9%87%8E",
                "promoted_content": null,
                "query": "%E9%80%A3%E7%AB%8B%E8%A6%96%E9%87%8E",
                "tweet_volume": null
            },
            {
                "name": "\u8fd1\u672c\u306e\u4e09\u76d7",
                "url": "http:\/\/twitter.com\/search?q=%E8%BF%91%E6%9C%AC%E3%81%AE%E4%B8%89%E7%9B%97",
                "promoted_content": null,
                "query": "%E8%BF%91%E6%9C%AC%E3%81%AE%E4%B8%89%E7%9B%97",
                "tweet_volume": null
            },
            {
                "name": "65TH GRAFF SG X GULF",
                "url": "http:\/\/twitter.com\/search?q=%2265TH+GRAFF+SG+X+GULF%22",
                "promoted_content": null,
                "query": "%2265TH+GRAFF+SG+X+GULF%22",
                "tweet_volume": 31610
            },
            {
                "name": "\u30f4\u30a1\u30a4\u30d1\u30fc",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%B4%E3%82%A1%E3%82%A4%E3%83%91%E3%83%BC",
                "promoted_content": null,
                "query": "%E3%83%B4%E3%82%A1%E3%82%A4%E3%83%91%E3%83%BC",
                "tweet_volume": 17115
            },
            {
                "name": "\u81ea\u6c11\u3068\u7dad\u65b0",
                "url": "http:\/\/twitter.com\/search?q=%E8%87%AA%E6%B0%91%E3%81%A8%E7%B6%AD%E6%96%B0",
                "promoted_content": null,
                "query": "%E8%87%AA%E6%B0%91%E3%81%A8%E7%B6%AD%E6%96%B0",
                "tweet_volume": 18773
            },
            {
                "name": "\u5c71\u306e\u7fc1\u30ea\u30ea\u30a3",
                "url": "http:\/\/twitter.com\/search?q=%E5%B1%B1%E3%81%AE%E7%BF%81%E3%83%AA%E3%83%AA%E3%82%A3",
                "promoted_content": null,
                "query": "%E5%B1%B1%E3%81%AE%E7%BF%81%E3%83%AA%E3%83%AA%E3%82%A3",
                "tweet_volume": null
            },
            {
                "name": "\u30d8\u30eb\u30ca\u30f3\u30c7\u30b9",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%98%E3%83%AB%E3%83%8A%E3%83%B3%E3%83%87%E3%82%B9",
                "promoted_content": null,
                "query": "%E3%83%98%E3%83%AB%E3%83%8A%E3%83%B3%E3%83%87%E3%82%B9",
                "tweet_volume": null
            },
            {
                "name": "Patriot Pendidikan",
                "url": "http:\/\/twitter.com\/search?q=%22Patriot+Pendidikan%22",
                "promoted_content": null,
                "query": "%22Patriot+Pendidikan%22",
                "tweet_volume": null
            },
            {
                "name": "\u52c7\u3061\u3083\u3093",
                "url": "http:\/\/twitter.com\/search?q=%E5%8B%87%E3%81%A1%E3%82%83%E3%82%93",
                "promoted_content": null,
                "query": "%E5%8B%87%E3%81%A1%E3%82%83%E3%82%93",
                "tweet_volume": null
            },
            {
                "name": "BEAUTY THE PEI EN WAY",
                "url": "http:\/\/twitter.com\/search?q=%22BEAUTY+THE+PEI+EN+WAY%22",
                "promoted_content": null,
                "query": "%22BEAUTY+THE+PEI+EN+WAY%22",
                "tweet_volume": 21698
            },
            {
                "name": "\u30d9\u30b9\u30c8\u30b0\u30ea\u30fc\u30f3",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%99%E3%82%B9%E3%83%88%E3%82%B0%E3%83%AA%E3%83%BC%E3%83%B3",
                "promoted_content": null,
                "query": "%E3%83%99%E3%82%B9%E3%83%88%E3%82%B0%E3%83%AA%E3%83%BC%E3%83%B3",
                "tweet_volume": null
            },
            {
                "name": "\u092a\u0902\u0915\u091c \u0927\u0940\u0930",
                "url": "http:\/\/twitter.com\/search?q=%22%E0%A4%AA%E0%A4%82%E0%A4%95%E0%A4%9C+%E0%A4%A7%E0%A5%80%E0%A4%B0%22",
                "promoted_content": null,
                "query": "%22%E0%A4%AA%E0%A4%82%E0%A4%95%E0%A4%9C+%E0%A4%A7%E0%A5%80%E0%A4%B0%22",
                "tweet_volume": null
            },
            {
                "name": "\u30cf\u30c9\u30bd\u30f3",
                "url": "http:\/\/twitter.com\/search?q=%E3%83%8F%E3%83%89%E3%82%BD%E3%83%B3",
                "promoted_content": null,
                "query": "%E3%83%8F%E3%83%89%E3%82%BD%E3%83%B3",
                "tweet_volume": null
            },
            {
                "name": "LEE KNOW FOR HARPERS BAZAAR",
                "url": "http:\/\/twitter.com\/search?q=%22LEE+KNOW+FOR+HARPERS+BAZAAR%22",
                "promoted_content": null,
                "query": "%22LEE+KNOW+FOR+HARPERS+BAZAAR...
                                                                                                                                                                                                                    
                                                                                                    

Get Trends - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/10805/x+trending+api/20459/get+trends?woeid=1' --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 X Trending 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

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

X Trending API FAQs

The "GET Available Countries" endpoint returns a list of countries along with their corresponding WOEIDs. The "GET Get Trends" endpoint provides the top Twitter trends for a specified WOEID, including trend names, hashtags, tweet volumes, search links, and encoded queries.

For "GET Available Countries," the key fields are country names and their WOEIDs. For "GET Get Trends," key fields include trend name, tweet volume, search link, and encoded query, which help identify and analyze trending topics.

The response data is structured in JSON format. For "GET Available Countries," it returns a key-value pair of country names and WOEIDs. For "GET Get Trends," it returns an array of trends, each containing multiple fields like name, volume, and links, making it easy to parse and utilize.

The "GET Available Countries" endpoint provides a comprehensive list of countries and their WOEIDs. The "GET Get Trends" endpoint offers detailed information on trending topics, including hashtags, tweet volumes, and direct search links, allowing for in-depth trend analysis.

Users can customize their requests by specifying the WOEID in the "GET Get Trends" endpoint to retrieve trends for a specific location. This allows for targeted analysis of trends relevant to particular regions or countries.

Typical use cases include brand monitoring, social research, public opinion analysis, and media reporting. Businesses and analysts can leverage the data to identify emerging trends, gauge public sentiment, and adapt marketing strategies based on real-time conversations.

Data accuracy is maintained through continuous updates from Twitter's trending topics, ensuring that the information reflects the most current conversations. The API's design focuses on temporal relevance, providing reliable insights into social media trends.

Users can expect trends to vary by region, with some topics gaining traction locally while others are globally relevant. The tweet volume may also fluctuate, indicating the intensity of discussions around specific trends, which can be analyzed over time for deeper insights.

General FAQs

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]


Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the 'X-Zyla-RateLimit-Limit' response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs


You might also like