Skip to main content
X trends

Twitter Trends Scraper API

Get what's trending on X in a country or city as JSON: the 50 trends X lists, in its order, with the number of posts where X gives it.

Pay as you go from $1.99 · No credit card required

Available X scrapers

Send an X link or a search and get the data back as JSON. Each scraper lists what it returns and what it costs.

X Search

Recent public posts for a keyword, phrase, #hashtag or account, newest first, with views, likes, reposts, quotes and bookmarks.

20 posts per creditStart free

X Profiles

Name, bio, followers, following, post count, verification, category, website, and the account's recent posts.

1 credit per profileStart free

X Posts

An account's latest or most popular posts, or one post with its media, video files, thread and top replies.

20 posts per creditStart free

X Trends

The 50 trends X lists for a country or city, in X's order, with post counts where X gives them.

1 credit per placeStart free
20

Posts per credit, from a search or a profile

Views

Bookmarks and quotes on every post

50

Trends for a country or city

$0

For links that fail

Pricing

Twitter Trends Scraper API pricing

1 credit per place. Run it on a monitor to see what's trending through the day.

Calculate your cost

1,000places
  • Pay only for what comes back
  • No subscription needed
  • Credits last 12 months

1,000 places = 1,000 credits

$9.99

Standard pack, one time, about $9.99 per 1,000 places.

One-time packs. No subscription, and the credits last 12 months.

Mini

Try a real job before you commit.

$1.99one time

200 credits

About 200 pages, or 2,000 search results

Per 1,000 credits
$9.95
Credits last
12 months
Renews
Never

Small

For a one-off list or a small project.

$4.99one time

500 credits

About 500 pages, or 5,000 search results

Per 1,000 credits
$9.98
Credits last
12 months
Renews
Never

Standard

Recommended

Covers most first projects.

$9.99one time

1,200 credits

About 1,200 pages, or 12,000 search results

Per 1,000 credits
$8.33
Credits last
12 months
Renews
Never

Large

For a big pull you run once in a while.

$34.99one time

5,000 credits

About 5,000 pages, or 50,000 search results

Per 1,000 credits
$7.00
Credits last
12 months
Renews
Never

Proxy bandwidth for Stealth Mode comes in packs too: 1 GB $7 · 5 GB $28 · 10 GB $52.

Need something bigger?

For millions of credits a month, we'll set you up with higher concurrency and rate limits, private proxy pools, volume pricing and custom features.

How it works

From place to trends in 3 steps

01

Pick the places

A country, a city or Worldwide.

02

Run it

Once, or on a schedule with a monitor.

03

Get every trend

One row per trend, with its rank and post count.

API call

Terminal
1curl -X POST https://api.spidra.io/api/scrape \
2 -H "Authorization: Bearer $SPIDRA_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "urls": [{ "url": "https://x.com/explore/tabs/trending?place=United%20States" }],
6 "output": "json"
7 }'

Response

result.content
1{
2 "place": "United States",
3 "woeid": 23424977,
4 "countryCode": "US",
5 "asOf": "2026-12-04T21:12:21Z",
6 "trendCount": 50,
7 "trends": [
8 {
9 "position": 1,
10 "name": "John Bolton",
11 "postCount": 33018,
12 "url": "https://x.com/search?q=%22John%20Bolton%22"
13 },
14 {
15 "position": 2,
16 "name": "Happy Hanukkah",
17 "postCount": 16867,
18 "url": "https://x.com/search?q=%22Happy%20Hanukkah%22"
19 },
20 {
21 "position": 3,
22 "name": "Josh Hart",
23 "postCount": null,
24 "url": "https://x.com/search?q=%22Josh%20Hart%22"
25 },
26 "… 27 more"
27 ]
28}
For AI agents

Plug X into your agent

Connect the Spidra MCP server and your agent searches X and reads posts, profiles and trends on its own. Works in Claude, Cursor, VS Code and any MCP client.

  1. 1Hosted, nothing to install
  2. 2Ask in plain words
  3. 3JSON straight back to your agent
  4. 4Same credits as the API

Tell your agent

Prompt
Use Spidra to find this week's posts on X about our product launch and list the ones with the most views.

Connect it once

Terminal
claude mcp add --transport http spidra https://mcp.spidra.io/mcp

Or run it on your machine

Terminal
npx -y spidra-mcp
Use cases

X data, put to work

From brands and agencies to analysts, journalists and AI teams.

Brand mentions

01
SearchViews

Find this week's posts that mention your product or your competitors, with how many people saw each one.

Campaign tracking

02
HashtagsBookmarks

Follow a campaign hashtag and report views, likes, reposts and bookmarks without screenshots.

Trend research

03
TrendsSearch

See what's trending in a country or city, then read the posts behind a trend.

Influencer vetting

04
ProfilesPosts

Check an account's followers and what its recent posts really get before you reach out.

Competitor tracking

05
PostsMonitors

Read the accounts you watch every hour and get every new post with its counts as it comes.

Products built on X data

06
APIMCP

Power listening, analytics and research tools with one API instead of scrapers you maintain.

FAQ

Questions, answered

X

20 posts from a search or a profile cost 1 credit. A profile, a single post with its replies, or a place's trends is 1 credit each. Packs start at $1.99 for 200 credits with no subscription, and new accounts get 300 free credits.

Track X trends today.

300 free credits, no card. Pay as you go from $1.99 when you need more.

Spidra is not affiliated with, endorsed by, or sponsored by X Corp. X and Twitter are trademarks of X Corp. Check X's terms and the laws that apply to you before you collect data.