X (Twitter) Trends Scraper: Trends by Country & Category avatar

X (Twitter) Trends Scraper: Trends by Country & Category

Pricing

from $0.15 / 1,000 trends

Go to Apify Store
X (Twitter) Trends Scraper: Trends by Country & Category

X (Twitter) Trends Scraper: Trends by Country & Category

Get the current trending topics and hashtags on X (Twitter) for 58 countries: rank, trend name, topic category such as Technology, Sports or Politics, and a search link. Pick countries or all of them, filter by category or hashtags. No login. $0.15 per 1,000 trends.

Pricing

from $0.15 / 1,000 trends

Rating

0.0

(0)

Developer

Muhamed Didovic

Muhamed Didovic

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Get what is trending on X (Twitter) right now in 58 countries, without an account or API key. Every row gives the rank, the trend name, its topic category (such as Technology, Sports, NFL, Politics or Entertainment, when X shows one), whether it is a hashtag, and a ready search link. Pick a few countries or all 58, and keep only the categories you care about. $0.15 per 1,000 trends.

{
"countries": ["United States", "UK", "Japan"],
"maxTrendsPerCountry": 50
}
InputRows
A country name, short name or two-letter codeUp to 50 current trends, top first
"All 58 countries" onThe current trends of every country available (about 2,700 rows)
A country without an X trend listSkipped with a note in the log (not charged)

Why Use This Scraper?

  • Topic categories. X labels many trends with a topic (Technology, Sports, Football, Politics, Music). You get it in its own column, ready to filter, for about a third of all trends.
  • 58 countries in one run. All of them take about a minute.
  • Filters that cost nothing. Keep only certain categories, or only hashtags; trends left out are not charged.
  • Clean rows. Country name and ISO code, rank, trend, category, hashtag flag and a search link on every row.
  • No X account. Nothing to log in to and no API keys.

Use Cases

  • Newsrooms and editors: see what each market talks about right now.
  • Brand and PR teams: catch a topic about your industry or company as it starts trending.
  • Marketers: find trending hashtags in a market before you post.
  • Researchers: compare the topics that trend across countries at the same moment.
  • Dashboards and alerts: run it on a schedule and feed the rows to a sheet, a database or a Slack alert.

How It Works

  1. Put countries in countries, or turn on allCountries.
  2. The actor reads each country's current trend list, several countries at a time.
  3. Your filters are applied and each trend is saved as one row, top first.
  4. Download the dataset as JSON, CSV, Excel or HTML, or read it from the API.

One country takes about 5 seconds. For trends over time, schedule the actor (for example every hour); every row carries the time it was taken.

Input Configuration

FieldTypeDefaultWhat it does
countriesarray["United States"]Country names ("United States"), short names ("UK", "UAE") or codes ("DE", "BR").
allCountriesbooleanfalseAll 58 countries instead of the list.
maxTrendsPerCountryinteger50Trends per country, top first (X lists up to 50).
categoriesarray—Keep only trends whose category contains one of these words, e.g. "Sports", "Technology".
onlyHashtagsbooleanfalseKeep only hashtags.
maxItemsinteger10000Cap on rows across all countries. Free-plan runs return up to 100.

Example input

Sports trends in five European countries:

{
"countries": ["UK", "Germany", "France", "Spain", "Italy"],
"categories": ["Sports", "Football", "Soccer"]
}

Output Samples

The values below are made up; the fields are what you get.

{
"type": "trend",
"country": "United States",
"countryCode": "US",
"rank": 4,
"name": "Microsoft",
"isHashtag": false,
"category": "Technology",
"searchUrl": "https://x.com/search?q=Microsoft",
"scrapedAt": "2026-11-13T06:00:00.000Z"
}

Key Output Fields

FieldMeaning
country, countryCodeThe country of the list, with its ISO code.
rankPlace in that country's list, 1 = top.
nameThe trend as X shows it; hashtags keep their #.
categoryThe topic X gives the trend, or null when X shows none.
isHashtagWhether the trend is a hashtag.
searchUrlA link to the X search for the trend.
scrapedAtWhen the list was read.

Supported Countries

United States, China, India, Japan, Russia, Germany, Indonesia, Brazil, France, United Kingdom, Turkey, Italy, Mexico, South Korea, Canada, Spain, Saudi Arabia, Egypt, Australia, Poland, Iran, Pakistan, Vietnam, Nigeria, Bangladesh, Netherlands, Argentina, Philippines, Malaysia, Colombia, United Arab Emirates, Romania, Belgium, Switzerland, Singapore, Sweden, Norway, Austria, Kazakhstan, Algeria, Chile, Czechia, Peru, Iraq, Israel, Ukraine, Denmark, Portugal, Hungary, Greece, Finland, New Zealand, Belarus, Slovakia, Serbia, Lithuania, Luxembourg and Estonia.

FAQ

Do I need an X account or API keys? No. Pick countries and run it.

Why do some countries return fewer than 50 trends? Smaller markets have shorter lists (Luxembourg showed 5, Estonia 22 in our tests).

Why is the category empty for some trends? X labels only part of its trends with a topic. About a third of all trends had one in our tests; the share is higher in large markets.

Are worldwide or city trends included? No, this actor returns country lists only.

Can I get trends from earlier today? Schedule the actor to run every hour (or as often as you like) and keep the datasets; each row carries the time it was read.

Pricing

  • $0.15 per 1,000 trends saved ($0.00015 a trend). One country is about 50 trends, so about $0.0075.
  • No start fee beyond Apify's own $0.00005 a run.
  • Trends left out by your filters and unknown countries are free.
  • Free-plan accounts get up to 100 trends a run to try it.

Support

A country that should work and does not, or a field you need? Open an issue on the Issues tab. We read every issue.

Explore More Scrapers

🤖 For AI Agents & LLM Apps

Call it with {"countries": ["<country>"]} and read the default dataset. Each row is one trend with stable keys; countryCode + name identify a trend in a list. Use categories to keep only the topics you need.

⚠️ Disclaimer

This actor collects the trend lists X shows publicly. It does not log in. You are responsible for following X's Terms of Service and the laws that apply to you. This actor is not affiliated with or endorsed by X Corp.

SEO Keywords

twitter trends scraper, x trends scraper, twitter trending topics, x trending topics by country, twitter trending hashtags, trending hashtags scraper, twitter trends api, x trends api, twitter trends by country, trending topics categories, twitter trend tracker, x trending now