Twitter/X Trends Scraper: Trends, Places, Locations & More! avatar

Twitter/X Trends Scraper: Trends, Places, Locations & More!

Pricing

from $0.16 / 1,000 results

Go to Apify Store
Twitter/X Trends Scraper: Trends, Places, Locations & More!

Twitter/X Trends Scraper: Trends, Places, Locations & More!

This X(Twitter) scraping actor is degined to get all things trends related - trends by types, trends places, locations & more!

Pricing

from $0.16 / 1,000 results

Rating

0.0

(0)

Developer

ScrapeBadger

ScrapeBadger

Maintained by Community

Actor stats

3

Bookmarked

61

Total users

9

Monthly active users

13 hours ago

Last modified

Categories

Share

Scrapebadger Twitter Scraper

ScrapeBadger provides powerful data extraction capabilities to scrape Twitter/X trending topics, offering an incredibly affordable solution for trend analysis. Get current trends by category (Trending, For You, News, Sports, Entertainment), location-specific trends using WOEID, and discover all available trend locations. All this starts at just $0.20 per 1,000 results.

Stay ahead of the conversation with real-time access to what's trending on Twitter/X. Whether you're monitoring brand mentions, tracking breaking news, analyzing market sentiment, or researching social trends, our tool provides structured trend data for your analysis needs.

  • Effortless Operation: Designed for ease of use, ScrapeBadger requires you to select a Mode and configure optional parameters (e.g., category for "Get Trends", WOEID for "Get Place Trends").
  • Comprehensive Trend Data:
    • Get Trends - Fetch current trending topics with tweet counts and context.
    • Get Place Trends - Get location-specific trends using Where On Earth ID (WOEID).
    • Get Available Locations - Discover all locations where Twitter trends are available.
  • Multiple Categories:
    • Trending - General trending topics
    • For You - Personalized trends
    • News - News-related trending topics
    • Sports - Sports-related trends
    • Entertainment - Entertainment trends
  • Flexible and Structured Output: Data is delivered in Apify's standard Dataset, ready for export in CSV, JSON, etc.
  • Enterprise-Grade Reliability: Built on the robust Apify platform for consistent results.
  • Cost-Effective Solution: Just $0.20 per 1,000 results.
  • Brand Monitoring: Track when your brand or competitors trend.
  • News & Media: Monitor breaking news and emerging stories.
  • Market Research: Understand what topics are capturing public attention.
  • Social Listening: Analyze trends related to your industry or products.
  • Content Strategy: Identify trending topics for content creation.
  • Academic Research: Study trend patterns and social phenomena.
ModeDescriptionKey Input ParameterJSON ParameterOptional
Get TrendsGet current trending topics--category, max_results
Get Place TrendsGet trends for a specific locationWOEIDwoeid-
Get Available LocationsGet all locations with trend data--max_results

Request and response examples

Request:

{
"mode": "Get Trends",
"category": "Trending",
"max_results": 20
}

Response (array of trends):

{
"name": "#TrendingTopic",
"query": "%23TrendingTopic",
"tweet_count": 125000,
"url": "https://twitter.com/search?q=%23TrendingTopic",
"domain_context": "Technology"
}

Category Options:

  • Trending - General trending topics (default)
  • For You - Personalized trends
  • News - News-related trends
  • Sports - Sports trends
  • Entertainment - Entertainment trends

Request:

{
"mode": "Get Place Trends",
"woeid": "23424977"
}

Common WOEID Values:

LocationWOEID
Worldwide1
United States23424977
United Kingdom23424975
Canada23424775
Germany23424829
France23424819
Japan23424856
India23424848
Brazil23424768
Australia23424748

Response:

{
"location": {
"name": "United States",
"woeid": 23424977
},
"trends": [
{
"name": "#USATrend",
"query": "%23USATrend",
"tweet_count": 85000
}
],
"as_of": "2025-01-15T12:00:00+00:00"
}

3. Get Available Locations

Request:

{
"mode": "Get Available Locations",
"max_results": 500
}

Response (array of locations):

{
"woeid": 23424977,
"name": "United States",
"country": "United States",
"country_code": "US",
"place_type": "Country"
}

Trend objects include:

  • Core: name, query (URL-encoded search query)
  • Metrics: tweet_count (volume of tweets)
  • Links: url (link to Twitter search)
  • Context: domain_context (topic category)

Location objects include:

  • Core: woeid, name
  • Geographic: country, country_code
  • Type: place_type (Country, City, etc.)

Place Trends response includes:

  • Location: Location metadata
  • Trends: Array of trend objects
  • Timestamp: as_of (when trends were retrieved)

Important Note: To prevent API abuse and ensure fair resource allocation, you will be charged for requests that return an empty results set.

  • Real-Time Data: Get the latest trending topics as they happen.
  • Location Intelligence: Access trends from any supported location worldwide.
  • Multiple Categories: Filter trends by topic type (News, Sports, Entertainment).
  • Efficient and Reliable: Built for speed and stability on the Apify platform.
  • Unbeatable Value: Just $0.20 per 1,000 results.
  • User-Friendly: Easy to configure regardless of technical expertise.
  • Seamless Integration: Output data readily available for analysis.

About ScrapeBadger

This actor is powered by ScrapeBadger - a reliable Twitter/X data extraction service.

  • Official Website: scrapebadger.com
  • Faster Support: Get priority support directly through the ScrapeBadger website
  • SDK & API Access: Want to use ScrapeBadger outside of Apify? The Python SDK and REST API are available for direct integration into your own applications

Ready-to-run examples

Each of these is a live, pre-configured task — open one and press Start, no setup:

Build the trend history nobody publishes

X shows what is trending right now and keeps no archive. Run this on a schedule and you accumulate a historical dataset that cannot be bought or backfilled later.

Breaking news detection

Trends move before headlines do. Polling on a short interval puts you ahead of the newswires on a developing story.

Real-time marketing

Newsjacking only works inside a narrow window. Watching trends per market tells you when to publish and, just as importantly, when the moment has passed.

Regional and cultural comparison

Trends are intensely local. Comparing several WOEIDs shows what travels across markets and what stays domestic — the whole brief for global campaign planning.

Trading and market sentiment

Cashtags and company names appearing in trends signal retail attention shifting, often minutes before the coverage that explains it.

This Actor requests only public X fields — the same content any logged-out visitor can see. It does not access private accounts, direct messages or anything behind a login.

Results can still contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

Frequently asked questions

What is a WOEID?

A Yahoo 'Where On Earth ID' — the location identifier X uses for trends. Run Get Available Locations to list every city and country it reports, with their WOEIDs.

How often should I run this?

Hourly is plenty for trend archives; every few minutes if you are watching for breaking news. Each run is a single cheap request.

Not from X — it publishes only the current list. That is exactly why scheduling this Actor is worth doing: you build the history yourself.

Your feedback and support

Found a bug, missing a field, or need a mode that is not here? Open a ticket on the Issues tab, or email support@scrapebadger.com.