Twitter (x.com) Trends avatar
Twitter (x.com) Trends

Pricing

$6.00 / 1,000 results

Go to Apify Store
Twitter (x.com) Trends

Twitter (x.com) Trends

Developed by

Maged

Maged

Maintained by Community

HISTORICAL AND CURRENT DATA, scrapes trending Twitter topics, providing access to historical and current trending data for different countries and time periods.

0.0 (0)

Pricing

$6.00 / 1,000 results

0

1

1

Last modified

15 hours ago

Twitter Trends Actor

This Apify Actor scrapes trending Twitter topics, providing access to historical and current trending data for different countries and time periods.

Description

The Twitter Trends Actor allows you to extract trending topics data from Twitter for any supported country and date. You can get trends for specific hours or entire days, and limit the number of results returned. The actor supports both single queries and batch processing for multiple requests.

Key Features:

  • Scrape trends for 60+ countries or worldwide
  • Historical data from May 15, 2024 onwards
  • Hourly or daily trend data
  • Configurable result limits (10-50 trends)
  • Batch processing support
  • Residential proxy usage for reliable scraping

Input Schema

The actor accepts the following input parameters:

ParameterTypeRequiredDescription
countrystringNoCountry code (e.g., 'united-states'). Leave empty for worldwide trends
datestringNoDate in YYYY-MM-DD format or 'today'. Defaults to today
hourintegerNoSpecific hour (0-23 UTC) for hourly trends
limitintegerNoMaximum trends to return (10-50). Defaults to 50
queriesarrayNoArray of query objects for batch processing

Supported Countries

{
"worldwide": "Worldwide",
"algeria": "Algeria",
"argentina": "Argentina",
"australia": "Australia",
"austria": "Austria",
"bahrain": "Bahrain",
"belarus": "Belarus",
"belgium": "Belgium",
"brazil": "Brazil",
"canada": "Canada",
"chile": "Chile",
"colombia": "Colombia",
"denmark": "Denmark",
"dominican-republic": "Dominican Republic",
"ecuador": "Ecuador",
"egypt": "Egypt",
"france": "France",
"germany": "Germany",
"ghana": "Ghana",
"greece": "Greece",
"guatemala": "Guatemala",
"india": "India",
"indonesia": "Indonesia",
"ireland": "Ireland",
"israel": "Israel",
"italy": "Italy",
"japan": "Japan",
"jordan": "Jordan",
"kenya": "Kenya",
"korea": "Korea",
"kuwait": "Kuwait",
"latvia": "Latvia",
"lebanon": "Lebanon",
"malaysia": "Malaysia",
"mexico": "Mexico",
"netherlands": "Netherlands",
"new-zealand": "New Zealand",
"nigeria": "Nigeria",
"norway": "Norway",
"oman": "Oman",
"pakistan": "Pakistan",
"panama": "Panama",
"peru": "Peru",
"philippines": "Philippines",
"poland": "Poland",
"portugal": "Portugal",
"puerto-rico": "Puerto Rico",
"qatar": "Qatar",
"russia": "Russia",
"saudi-arabia": "Saudi Arabia",
"singapore": "Singapore",
"south-africa": "South Africa",
"spain": "Spain",
"sweden": "Sweden",
"switzerland": "Switzerland",
"thailand": "Thailand",
"turkey": "Turkey",
"ukraine": "Ukraine",
"united-arab-emirates": "United Arab Emirates",
"united-kingdom": "United Kingdom",
"united-states": "United States",
"venezuela": "Venezuela",
"vietnam": "Vietnam"
}

Input Example

Single Query

{
"country": "united-states",
"date": "2024-12-01",
"hour": 14,
"limit": 25
}

Batch Processing (priority over single query if provided )

{
"queries": [
{
"country": "united-states",
"date": "today",
"limit": 10
},
{
"country": "united-kingdom",
"date": "2024-11-30",
"hour": 12,
"limit": 20
},
{
"date": "today",
"limit": 15
}
]
}

Output Schema

The actor outputs a flat array where each item represents a single trending topic with the following structure:

FieldTypeDescription
positioninteger/nullRanking position (1-50, null on error)
trendstring/nullThe trending topic or hashtag
tweetsstring/nullNumber of tweets (formatted, e.g., "125K")
countrystringCountry for trends
datestringDate for trends
hourinteger/nullHour for trends (null for daily)
limitintegerMaximum trends requested
scraped_atstringISO timestamp when scraped
successbooleanWhether scraping was successful
querystringQuery parameters used
errorstringError message (only when success=false)

Output Example

[
{
"position": 1,
"trend": "#MondayMotivation",
"tweets": "125K",
"country": "united-states",
"date": "2024-12-01",
"hour": 14,
"limit": 25,
"scraped_at": "2024-12-01T14:30:00Z",
"success": true,
"query": "country=united-states&date=2024-12-01&hour=14&limit=25"
},
{
"position": 2,
"trend": "Taylor Swift",
"tweets": "89K",
"country": "united-states",
"date": "2024-12-01",
"hour": 14,
"limit": 25,
"scraped_at": "2024-12-01T14:30:00Z",
"success": true,
"query": "country=united-states&date=2024-12-01&hour=14&limit=25"
},
{
"position": null,
"trend": null,
"tweets": null,
"country": "invalid-country",
"date": "2024-12-01",
"hour": null,
"limit": 20,
"scraped_at": "2024-12-01T14:30:05Z",
"success": false,
"error": "Invalid country: invalid-country. Allowed: argentina, australia, ...",
"query": "country=invalid-country&date=2024-12-01&limit=20"
}
]