X (Twitter) Trends by Country — Trending Topics & Hashtags
Pricing
from $0.80 / 1,000 trends
X (Twitter) Trends by Country — Trending Topics & Hashtags
Get the trending topics and hashtags of X (Twitter) for any country, hour by hour, without an X account or API key. Input: countries. Output: one row per trend with country, rank, trend text, hashtag form, X search link and the hour it trended.
Pricing
from $0.80 / 1,000 trends
Rating
0.0
(0)
Developer
Istmobot
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Features
Share
See what is trending on X (Twitter) in any country, right now and hour by hour. Give a list of countries and get one row per trend with its rank, the trend text, a hashtag form you can reuse on other networks, and the link to the X search. No X account, no API key, no login.
What is X Trends by Country?
X shows a list of up to 50 trending topics per country. This Actor returns that list for about 60 countries, including the ones most tools skip: Panama, Colombia, Argentina, Chile, Peru, the Dominican Republic, Guatemala and more. It can also return the lists of the previous hours, up to 24, to see which trends rise and which fade.
Use it to:
- Find content ideas from what a country is talking about today.
- Feed other scrapers: use the
hashtagcolumn as hashtags for TikTok, Instagram or YouTube to get the videos of each trend. - Monitor news and brands: schedule a run every hour and get alerted when a name enters the list.
- Compare markets: the same hour in several countries, side by side.
- Time your posts and campaigns around live topics.
What data can I get?
| Field | Meaning |
|---|---|
country, countryCode | Country of the list, e.g. Panama, PA |
rank | Position in the list, 1 = top trend |
trend | The trend as X shows it, e.g. #LaMansionVip or Sistema Penitenciario |
isHashtag | true when the trend is a hashtag |
hashtag | The trend as one word without #, ready to use as a hashtag elsewhere |
xSearchUrl | Link to the trend's posts on X |
hoursAgo | 0 = latest list, 1 = one hour before, and so on |
trendingAt | Date and time of that list (exact, or rounded to the hour, depending on the source) |
source | Site the list was read from |
scrapedAt | Date and time of the run |
How much does it cost?
| Event | Price |
|---|---|
| Actor start | $0.005 per run |
trend | $0.001 per trend, or $1 per 1,000 |
Examples: the top 20 trends of 3 countries cost about $0.065. The full list of one country every hour for a day costs about $1.30. Countries with no trends and failed requests are not charged. You can set a maximum cost per run.
How to use X Trends by Country
- Click Try for free.
- Type the countries, as 2-letter codes or English names.
- Choose how many trends per country and how many hours of history.
- Click Start, then download the dataset as CSV, Excel or JSON.
⬇️ Input
{"countries": ["US", "PA", "Mexico"],"maxTrendsPerCountry": 20,"hours": 1}
| Field | Default | Description |
|---|---|---|
countries | required | 2-letter codes or English names. worldwide gives the global list |
maxTrendsPerCountry | 50 | Trends per country and hour, from the top (1–50) |
hours | 1 | 1 = latest list only; up to 24 for the hours before |
⬆️ Output
{"country": "Panama","countryCode": "PA","rank": 4,"trend": "#LaMansionVip","isHashtag": true,"hashtag": "LaMansionVip","xSearchUrl": "https://x.com/search?q=%23LaMansionVip","hoursAgo": 0,"trendingAt": "2026-11-12T08:08:06.273Z","source": "trends24.in","scrapedAt": "2026-11-12T08:44:10.120Z"}
From a trend to its videos
The hashtag column works as input for video scrapers. Example with TikTok Scraper (cheap), which can also save the MP4 files:
{"hashtags": ["LaMansionVip", "SistemaPenitenciario"],"resultsPerPage": 10,"shouldDownloadVideos": true}
Integrations & API
curl -X POST "https://api.apify.com/v2/acts/istmobot~x-trends-by-country/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"countries":["PA","CO"],"maxTrendsPerCountry":10}'
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("istmobot/x-trends-by-country").call(run_input={"countries": ["PA"], "maxTrendsPerCountry": 10})hashtags = [r["hashtag"] for r in client.dataset(run["defaultDatasetId"]).iterate_items() if "hashtag" in r]
Schedule it hourly and send new trends to Slack, Google Sheets, Make or n8n.
🤖 Use with AI agents (MCP)
https://mcp.apify.com?tools=istmobot/x-trends-by-country. Example prompt: "What are the top 10 trends on X in Panama and Colombia right now, and which ones appear in both?"
❓ FAQ
Do I need an X account or API key? No.
Which countries work? The ones where X publishes trends, about 60. A country with no list returns a free row with errorCode: UNSUPPORTED_COUNTRY.
Does it return the number of posts per trend? No. X no longer publishes that number for most trends.
Does it return the posts or videos of a trend? No, the list of trends only. xSearchUrl opens the posts on X. For videos, use the hashtag column in a video scraper (see above).
How fresh is the data? The latest list is at most about one hour old. trendingAt shows its exact time.
Can I get cities? Not yet. Countries and the worldwide list.
Your feedback
Missing a country or a field? Open an issue on the Issues tab.