X Scraper API

One REST API for X data. Turn any tweet URL or status id into clean JSON, run keyword and hashtag search, and skip the login wall entirely, with rotating proxies and anti-bot handling built in.

Get a free API key See pricing

Free 1,000 requests. Median response 2.6s. No X developer account.

GET https://api.twitterscraperapi.com/api/v1/xtwitter
curl "https://api.twitterscraperapi.com/api/v1/xtwitter/search?q=nasa&api_key=$API_KEY"
7
data endpoints
2.6s
median response
1,000
free requests
JSON
structured output
image & video/email & lead/profile & account/follower & following/search, hashtag & trends/tweet & post/json output/rotating proxies
capabilities

Scrape X without getting blocked

*

Anti-bot bypass

Rotating residential and datacenter proxies clear X's verification checks, so you get real page data on the first try.
*

Proxy rotation

A fresh IP per request, with geotargeting when you need results from a specific country.
*

JS rendering

We render the page the way a browser does and return the loaded data as flat JSON you do not have to parse.
*

Structured JSON

Every endpoint uses the same field names and types, so your parser keeps working when X changes its markup.
*

Pay for success

Failed requests retry across datacenter, residential, and premium pools, and you are billed only for results.
*

One REST call

No proxies, headless browsers, or CAPTCHA solvers to run. Send one request with your api_key and read the JSON.
endpoints

Choose from multiple X Scraper API endpoints

>

Image & Video

twitter media scraper
>

Email & Lead

twitter email scraper
>

Profile & Account

twitter profile scraper
>

Follower & Following

twitter follower scraper
>

Search, Hashtag & Trends

twitter hashtag scraper
>

Tweet & Post

twitter posts scraper
>

Comment & Reply

twitter comment scraper
use cases

What you can build

>

Brand and mention monitoring

Search a brand name or handle and enrich saved tweet links into text, author, and engagement, so you catch what is being said and how far it spreads.
>

Engagement tracking

Poll individual tweets on a schedule and store favorite and reply counts to build the like and reply history X does not chart for you.
>

Social listening datasets

Collect tweet text, language, and entities as clean JSON to feed sentiment, clustering, or LLM pipelines without parsing HTML first.
>

Embed and archive tweets

Fetch the text, author, avatar, and media for a tweet id to render your own cards or keep a durable record before a post is deleted.
>

Hashtag and campaign research

Query a hashtag to sample the posts X surfaces for a campaign or event and measure reach across the results it returns.
>

Topic and trend sampling

Pull the top or live search tab for a topic to sample the conversation and track how it shifts over time.
pricing

Simple, usage-based pricing

Free
$0forever
1,000 requests
free
  • All endpoints included
  • Structured JSON output
  • Anti-bot + rotating proxies
  • 10 concurrent requests
  • Community support
Start free
Vibe
$19/mo
27,000 requests / mo
$0.70 / 1k
  • Everything in Free
  • Higher concurrency
  • Email support
Choose Vibe
Most popular
Pro
$49/mo
82,000 requests / mo
$0.60 / 1k
  • Everything in Vibe
  • Priority request routing
  • Priority support
Choose Pro
Custom
$100+/mo
200k - 4M+ / mo
from $0.50 / 1k
  • Everything in Pro
  • 500+ concurrent requests
  • SLA + dedicated support
Talk to us

Pay-as-you-go top-ups run $0.90 per 1,000 successful requests. Median response 2.6s. You only pay for requests that succeed.

integrations

Drops into your stack

>

No-code

Zapier, Make, and n8n blocks call the API without writing code.
>

LLM and RAG

Feed clean JSON straight into LangChain or LlamaIndex pipelines.
>

SDKs and REST

Call from Python, Node, Go, or any HTTP client. One api_key, one base URL.

FAQ

What is the X Scraper API?

It is a set of REST endpoints that take an X (Twitter) URL or id and return the data as structured JSON. The tweet endpoint turns any tweet URL or status id into text, author, and engagement, and the search endpoint runs keyword and hashtag queries. We handle the proxies, anti-bot checks, and parsing, so you call one endpoint with your api_key and get clean fields back.

Do I need an X (Twitter) developer account or API key?

No. You authenticate with a single api_key. There is no X developer account to apply for, no OAuth flow, and no paid X API tier, which since 2023 starts around 100 dollars a month. The free tier includes 1,000 requests so you can test first.

Which X data types can I pull?

The tweet endpoint reads a single public tweet by URL or id and returns its text, author, timestamp, language, entities, media, and engagement. The search endpoint runs a keyword, phrase, or hashtag query and returns the tweets X embeds for it. Search is beta because X heavily walls logged-out queries, and there is no standalone profile endpoint because X hard-walls guest profile timelines.

Is scraping X (Twitter) legal?

Scraping publicly visible X pages is generally treated as lawful in the United States, though X's Terms of Service restrict automated access without permission, so review the terms and your use case. Our X scraping legality guide walks through the details.

How fast is the X Scraper API?

Responses return in a median of about 2.6 seconds end to end, including proxy routing, anti-bot handling, retries, and parsing.

What does it cost?

The free tier covers 1,000 requests, Pro pricing runs about $0.60 per 1,000 requests, and pay-as-you-go top-ups are $0.90 per 1,000 successful requests. You are billed for successful results.

Start pulling X data
Free plan, 1,000 requests, no card
Get a free API key See pricing