X Twitter Trends by Location Scraper avatar

X Twitter Trends by Location Scraper

Pricing

from $3.00 / 1,000 trend scrapeds

Go to Apify Store
X Twitter Trends by Location Scraper

X Twitter Trends by Location Scraper

Scrape live X/Twitter trending topics for any city, country or worldwide, covering 100+ cities and 46 countries. No API key needed; works with Apify MCP and the API.

Pricing

from $3.00 / 1,000 trend scrapeds

Rating

0.0

(0)

Developer

Khadin Akbar

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

23 days ago

Last modified

Share

X Trends by Location Scraper returns trending topics on X (Twitter) for the cities, countries or worldwide lists you name, as one row per trend: location, location type, country, position, trend name, hashtag and cashtag flags, snapshot time and a ready X search link. Type places in plain words such as London, Tokyo or United States. Trend lists come from public trend tracking by GetDayTrends. Local marketers, newsrooms, researchers and AI agents use it to see what a specific city or country is talking about, with no X account.

Why local teams use it

  • City-level trends. Ask for London, New York or Mumbai, not only whole countries.
  • Plain place names. Type locations as you would say them; country and country code are filled in.
  • Ranked lists. position from 1 down for every place.
  • Hashtags and cashtags flagged. Filter by isHashtag or isCashtag.
  • Pay per trend. One charge per trend row.

How to use it

Trends in three cities:

{
"locations": ["London", "Tokyo", "New York"],
"maxTrendsPerLocation": 10
}

Worldwide and two countries, top 20:

{
"locations": ["Worldwide", "United States", "United Kingdom"],
"maxTrendsPerLocation": 20
}
InputWhat it controls
locationsCity names, country names or Worldwide
maxTrendsPerLocationTrends per place (default 10)
dedupeTrendsSave a trend once when it appears in several places (default on)

Want the 8-hour rank history for country trends? Continue with X Twitter Trends Scraper linked below.

Output: trend data you receive

A real London row:

{
"locationName": "London",
"locationType": "city",
"locationCountry": "United Kingdom",
"locationCountryCode": "GB",
"position": 1,
"trendName": "#CelebrityTraitors",
"trendType": "hashtag",
"isHashtag": true,
"isCashtag": false,
"xSearchUrl": "https://x.com/search?q=%23CelebrityTraitors&src=trend_click",
"sourceUrl": "https://getdaytrends.com/united-kingdom/",
"dataSource": "getdaytrends",
"snapshotAt": "2026-10-02T08:07:22.162Z"
}
FieldWhat it contains
locationName, locationType, locationCountry, locationCountryCodeThe place: city, country or worldwide
position, snapshotAtRank and when the list was taken
trendName, trendType, isHashtag, isCashtagThe trend and its type
tweetVolumeVolume when the tracker publishes it
xSearchUrl, sourceUrl, dataSourceLinks to the conversation and the tracker

OUTPUT in the default key-value store reports the run outcome and trends saved.

A retail brand runs social campaigns in five cities. Every morning a task pulls the top 10 for each city, and the social team picks trends that fit the brand voice for that market. Then they check the same topics' 8-hour momentum at country level with X Twitter Trends Scraper.

Pricing

This Actor uses Pay per event plus Apify platform usage. You pay one event per trend row, plus a start event and the platform usage of the run. The live Pricing tab on this page shows the current price.

  • 5 cities × 10 trends = 50 trend events + platform usage.
  • maxTrendsPerLocation caps each place, so it doubles as a cost ceiling.

Trend research with AI agents (MCP)

Connect this Actor to an AI agent through Apify MCP and ask in plain language:

What's trending on X in Toronto and Vancouver right now?

Agent checklist:

  1. Put place names in locations.
  2. Keep maxTrendsPerLocation small for quick answers.
  3. Read rows with get-dataset-items; group by locationName.
  4. Share xSearchUrl for each trend.

API example

curl -X POST "https://api.apify.com/v2/acts/khadinakbar~x-trends-by-location-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"locations": ["Los Angeles", "Chicago"], "maxTrendsPerLocation": 10}'
Your next stepUseWhy
When you want rank history by countryX Twitter Trends ScraperCountry trends with 8-hour history
When you then read the postsX Tweet ScraperTweets by keyword or hashtag
When you check search interestGoogle Trends ScraperInterest over time and related queries

Best results

Starting situationHelpful actionExpected outcome
Local marketingList the cities you operate inTrends per city side by side
A daily briefSchedule a morning taskA fresh snapshot every day
One trend list per placeTurn off dedupeTrendsShared trends kept in every place
Quick checksLower maxTrendsPerLocationJust the top trends

Builder's note

I found that people think in cities, not location IDs, so the Actor takes plain place names and fills in the country for you. I learned that the same trend often tops several cities, so duplicates are saved once by default.

FAQ

Do I need an X account or API key?

No. The Actor reads public trend tracking and needs no login.

Which places are available?

Worldwide, many countries and major cities tracked by GetDayTrends, such as London, New York, Tokyo, Mumbai and Toronto.

From GetDayTrends, which tracks X trends for countries and cities.

Volume is published for some trends and not others.

Responsible use

This Actor collects public trend lists. Use them for research and monitoring and follow the source's terms. Read Apify's guide on whether web scraping is legal for more context. X and Twitter are trademarks of X Corp. This independent Actor is not affiliated with, associated with, or endorsed by X Corp or GetDayTrends. For questions or bugs, open a ticket in the Issues tab.