# X Trends API (https://www.socialcrawl.dev/platforms/twitter/trends) > Returns X's trending topics for a country, worldwide, or any place X keeps a list for, in X's own order. Each item has `rank`, `name`, `query` (the search X opens for the trend: the word or hashtag itself, a phrase in quotes) and `url` (that search on x.com). X publishes no post count for a trend here, so there is no volume. Send `country` as a code such as US or GB, or a name such as United States; leave it out, or send WW, for worldwide. Send `woeid` instead for a city or another place, for example 44418 for London. A country we do not list is a free 400 naming the codes we take, and a WOEID X keeps no list for is a refunded 404. `limit` sets how many trends come back, 30 by default and 50 at most. 1 credit. X refreshes a list about every 5 minutes, and a repeat within that time is served from cache at 0 credits. TL;DR: `GET /v1/twitter/trends` costs 1 credit per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `country` | no | A country code (US, GB, JP, BR, IN and others; WW for worldwide) or the country's name. Default worldwide. | | `woeid` | no | A Where On Earth ID for a city or another place, instead of country. For example 44418 is London. | | `limit` | no | How many trends to return, 1 to 50. Default 30. | ## Code example ```bash curl "https://www.socialcrawl.dev/v1/twitter/trends" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### How do I get what is trending on X for a country? Send a GET request to /v1/twitter/trends with country set to a code such as US or GB, or a country name. You get X's trends in its own order, each with rank, name, the search query X opens for it and that search's link. ### Can I get worldwide or city trends? Yes. Leave country out, or send WW, for the worldwide list. For a city or another place, send its woeid instead of country, for example 44418 for London. ### How much does the X Trends API cost? A call costs 1 credit on the standard tier. X refreshes a list about every five minutes, and a repeat within that time is served from cache at no charge. ### Does it return how many posts each trend has? No. X publishes no post count for a trend on this list, so there is no volume. To read the posts behind a trend, pass its query to /v1/twitter/search/tweets. ### What happens if I send a country you do not list? It is a free 400 that names the country codes we take. A woeid X keeps no trends list for is a 404, refunded, so you never get another place's list by mistake. See the full X API: https://www.socialcrawl.dev/platforms/twitter ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - What is trending on X in my country right now? - How do I get X (Twitter) trends by country through an API? - What does the SocialCrawl X Trends API return?