Skip to main content
AI Studio  add-on for Spider.
Social
x.com Verified

Twitter/X Scraper API

Extract tweets, user profiles, engagement metrics, and trending topics from X (formerly Twitter). Full stealth browsing with residential proxies to handle X's aggressive bot detection.

X (formerly Twitter) has some of the most aggressive anti-scraping defenses on the web. Spider uses browser fingerprint rotation, residential proxies, and real browser rendering to reliably extract tweets, profiles, and engagement data at scale.

Get started Docs
target
x.com
anti-bot bypass
Stealth mode
data freshness
Real-time
POST /fetch/x.com/
return_format
curl -X POST https://api.spider.cloud/fetch/x.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
200 OK · cache hit · response shape
{
  "url": "https://x.com/",
  "status": 200,
  "data": {
    "tweet_text": "string",
    "author": "string",
    "likes": "string",
    "retweets": "string",
    "replies": "string",
    "timestamp": "string",
    "media": "string",
    "hashtags": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from x.com with a single POST. Call it with no selectors and the model names the fields, or pass your own CSS to skip the AI.

twitter-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://x.com/OpenAI");

// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();

console.log(data);
await spider.close();
ready to run · spider-browser · no selectors
How it works

Start extracting x.com data in three steps.

Get an API key

Sign up free and a balance is credited to your account.

Configure the call

Set the target URL, output format, and rendering mode.

Get structured data

Clean JSON back in seconds, ready for your pipeline.

Use cases

What teams build with x.com data.

Social Listening

Monitor brand mentions, competitor activity, and industry conversations across public tweets and threads.

Trend Analysis

Track trending topics, hashtags, and viral content to spot emerging narratives before they peak.

Influencer Research

Analyze engagement rates, follower counts, and posting patterns to identify high-value accounts for partnerships.

News Monitoring

Capture breaking news and real-time updates from journalist accounts, news outlets, and official sources.

Extraction

Fields you can pull.

Tweet textAuthorLikesRetweetsRepliesTimestampMediaHashtags
Stealth

Anti-bot bypass

Residential proxy rotation and fingerprint randomization to reliably access X pages despite aggressive bot detection.

Rendering

Full React SPA

Complete JavaScript execution renders X's React interface, including lazy-loaded tweets and infinite scroll.

Data

Rich tweet data

Extract text, engagement metrics, media, threads, and profile data in clean structured JSON.

Why Spider

Why teams pick Spider for x.com.

Pricing
$0 to start

Free balance on sign-up. No credit card required to test.

Scale
Pay per page

About $0.03 per 1,000 pages on a typical workload. No monthly minimum.

Balance
Never expires

Top up once, use it whenever. Unused balance carries over forever.

Common questions

Scraping x.com.

Can I scrape X/Twitter without API access?

Yes. Spider renders X pages in a real browser and extracts data from the DOM. No Twitter/X API keys or paid API tier required.

How does Spider handle X's anti-bot detection?

Spider uses residential proxy rotation, browser fingerprint randomization, and stealth browsing with real Chrome instances to avoid detection.

What data can I extract from X?

Tweet text, author info, likes, retweets, replies, timestamps, media attachments, hashtags, and full user profiles.

Can I scrape X search results?

Yes. Spider can render X search results pages and extract tweets matching any query, hashtag, or advanced search filter.

Does scraping X violate their terms?

Spider accesses only publicly visible content. The legality of scraping public social media data is supported by court precedent (hiQ v. LinkedIn).

Related

More Social scrapers.

Start

Start scraping x.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.