Twitter Trends Scraper avatar

Twitter Trends Scraper

Pricing

from $0.80 / 1,000 result items

Go to Apify Store
Twitter Trends Scraper

Twitter Trends Scraper

Twitter trends scraper: X trending topics for worldwide and 466 countries and cities, several per run, now and hour by hour for the last 24 hours, with rank, first-seen time, duration, best rank and previous rank. Monitor mode alerts on new topics entering the top N.

Pricing

from $0.80 / 1,000 result items

Rating

0.0

(0)

Developer

Viktor Dubnytskiy

Viktor Dubnytskiy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Get what is trending on X (Twitter) right now and over the last 24 hours, for worldwide and any of 466 countries and cities, several of them in one run. Each row is one trending topic in one hourly top-50 snapshot with its rank, the time the snapshot was taken, when the topic first entered the list, how long it has stayed there, its best rank and its rank an hour earlier.

Try it: the prefilled example returns 20 rows in about 4 seconds and costs about $0.020. Results cost $1 per 1,000.

Coverage limits: trends come from trends24.in, which keeps 24 snapshots per location (on 05.11.2026 they covered the last 17 to 24 hours, roughly one per hour). X stopped showing tweet counts in January 2026, so tweetVolume is empty unless a source shows a count again.

Why this one

  • The life of each trend. Every row carries firstSeenAt, durationHours, bestRank, bestRankAt, previousRank (rank in the snapshot an hour earlier), isNewEntry and snapshotsInTop, worked out from the location's last ~24 hourly snapshots. The two most used trends actors on the Store do not return these: karamelo's rows are trend, time, timePeriod and volume (no rank), automation-lab's are the current list with rank, tweetVolume, hashtag flag and links. On 05.11.2026 the US row for "Hegseth" read: rank 3, first seen 01:30 UTC, trending 16.3 hours, best rank 2, rank 3 an hour earlier.
  • Alerts on new topics only. Monitor mode returns only topics that entered a location's top N and were nowhere in its top 50 on any run during the last day, with an optional webhook or Telegram message. Reordering inside the list and topics hovering at the edge of the top N do not alert. Neither leader has this: automation-lab suggests scheduling runs and diffing them yourself, karamelo has no scheduling guidance.
  • Every hourly snapshot, not fixed points. hoursBack (1 to 24) returns each hourly top 50 in that window. karamelo returns fixed points (live, 1, 3, 6, 12 and 24 hours, 2 and 3 days ago), automation-lab only the current list. A test run on 05.11.2026 with hoursBack: 24 returned 3,066 rows for the United States, Tokyo and London (20 to 22 distinct hourly snapshots each, one page request per location) in 76 seconds.
  • Fallback. If trends24 refuses a country or worldwide page, the actor reads the current top 50 from getdaytrends.com instead (source: "getdaytrends", no history fields).
  • Locations: worldwide, 62 countries and 404 cities, several per run, by name ("Japan", "New York", "London, United Kingdom") or trends24 slug. automation-lab covers the same 467 locations; karamelo covers 35 countries, one per run.

What it does not do: history beyond ~24 hours (karamelo reaches 3 days back at fixed points), WOEID numbers as input, tweet counts (X hides them).

What you get

One row per topic per snapshot:

locationsnapshotAtranknamefirstSeenAtdurationHoursbestRankpreviousRank
Worldwide2026-11-05T20:21:06Z1Paraguay2026-11-05T16:52:13Z3.511
Worldwide2026-11-05T20:21:06Z2Santiago Peña2026-11-05T16:01:08Z4.322
Worldwide2026-11-05T20:21:06Z3Aldosivi2026-11-05T18:36:18Z1.736
United States2026-11-05T20:27:24Z1Harmeet2026-11-05T19:33:22Z0.911
United States2026-11-05T20:27:24Z2Russell Brand2026-11-05T15:16:05Z5.212
United States2026-11-05T20:27:24Z3Carson Wentz2026-11-05T18:40:17Z1.833

A full row:

{
"id": "united-states|1793910444|2",
"url": "https://trends24.in/united-states/",
"location": "United States",
"locationSlug": "united-states",
"locationType": "country",
"country": "United States",
"snapshotAt": "2026-11-05T20:27:24Z",
"rank": 2,
"name": "Russell Brand",
"isHashtag": false,
"tweetVolume": null,
"searchUrl": "https://x.com/search?q=Russell%20Brand",
"previousRank": 2,
"isNewEntry": false,
"firstSeenAt": "2026-11-05T15:16:05Z",
"lastSeenAt": "2026-11-05T20:27:24Z",
"durationHours": 5.2,
"snapshotsInTop": 7,
"bestRank": 1,
"bestRankAt": "2026-11-05T15:16:05Z",
"startedBeforeWindow": false,
"windowStart": "2026-11-05T04:04:07Z",
"source": "trends24"
}

Fields: location, locationSlug, locationType (worldwide, country, city), country, snapshotAt (UTC), rank (1-50), name, isHashtag, tweetVolume, searchUrl (X search for the topic), previousRank, isNewEntry, firstSeenAt, lastSeenAt, durationHours, snapshotsInTop, bestRank, bestRankAt, startedBeforeWindow (already listed in the oldest snapshot, so it may have started earlier), windowStart, source, url, scrapedAt.

Topics are the public trend labels X shows. No tweets, authors or user profiles are collected.

Input

FieldMeaningDefault
locationsLocation names, City, Country, trends24 slugs (united-states/new-york) or trends24 links. worldwide for global trendsworldwide, United States
hoursBack0 = the latest snapshot only; 1 to 24 = every snapshot of that many past hours0
topNRanks per snapshot, 1 to 5050
useFallbackRead getdaytrends.com when trends24 refuses a country or worldwidetrue
maxItemsStop after this many rows in total200
modescrape, or monitor for new topics onlyscrape

A city name that exists in two countries (Birmingham) needs the country: Birmingham, United Kingdom. Unknown or ambiguous locations are skipped with a warning in the log.

Monitor mode

Set mode to monitor and schedule the task, for example every hour. The first run records each location's current top 50 (no rows, no result charges). Every later run returns only topics that are in that location's top N now and were not anywhere in its top 50 on any run during the last day. So a topic climbing from #11 into the top 10 is not new, a topic that drops out and comes back within a day is not reported twice, and a weekly topic such as "Good Thursday" is reported again the next week. Rank moves inside the list are not reported. Each run reads the latest snapshot (or the getdaytrends fallback) and compares the whole top 50. hoursBack is ignored in this mode. Each monitor run costs one monitor-check event ($0.005) plus $0.001 per new topic.

If a monitor run crashes, the next run of the same task waits until the crashed run's timeout before it reads again (it ends as overlapping_run without charges). Give the task a new monitorStateId to start over at once.

Pricing

EventPrice
result$0.001 per row ($1 per 1,000)
monitor-check$0.005 per monitor run
change$0.001 per new topic in monitor mode

Apify platform usage is billed to you separately; the actor runs without a proxy on 512 MB, so it is small. A run that finds nothing pushes nothing and costs no result events.

Limits

  • History depth is what trends24 keeps: 24 snapshot cards per location, 17 to 24 hours on 05.11.2026. Cards posted seconds apart are merged into one snapshot, so a full page gives 20 to 24 distinct hours. firstSeenAt and durationHours are measured inside that window; startedBeforeWindow: true marks topics that were already trending at its start.
  • Snapshot times are trends24's own, about an hour apart but not on the hour.
  • tweetVolume is empty while X hides counts.
  • The getdaytrends fallback covers worldwide and countries, not cities, and has no history fields.

FAQ

Can I use WOEID numbers? Not yet. Use the location name or the trends24 slug; the 467 locations are the same set X publishes trends for.

How do I get trends every hour? Schedule a task hourly with hoursBack: 0, or once a day with hoursBack: 24.

Changelog

  • 0.1: first release. Several locations per run, hourly snapshots of the last 24 hours, first-seen time, duration, best and previous rank, getdaytrends fallback, monitor mode for new topics.

If this actor saved you time, a short review on its Store page helps other people find it. Found a bug or need a field? Open a ticket on the Issues tab.