X (Twitter) Scraper API
X profiles, posts, communities and video transcripts as JSON, for developers who want them without an X developer account. Calls that fail cost nothing.
100 free credits. No card needed.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_aa10816824f8fd23e2b1f991",
"data": {
"object": "profile",
"platform": "twitter",
"id": "11348282",
"handle": "NASA",
"name": "NASA",
"headline": null,
"url": "https://x.com/NASA",
"kind": "organization",
"bio": "Making the seemingly impossible, possible. ✨",
"avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"verified": true,
"is_private": false,
"status": "public"
...
},
"cursor": null,
"has_more": null
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_2f3acfff478c2a97370e067a",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "twitter",
"id": "2115900247230537920",
"url": "https://x.com/NASA/status/2115900247230537920",
"type": "tweet",
"author": { ... },
"title": null,
"text": "Your name could fly on Saturn’s largest moon.\n\nNASA’s Dragonfly mission will lau...",
"published_at": "2026-10-29T20:15:05Z",
"duration_seconds": null,
"language": "en",
"hashtags": null,
"mentions": null,
"stats": { ... }
...
},
{
"object": "post",
"platform": "twitter",
"id": "2115753332958433574",
"url": "https://x.com/NASA/status/2115753332958433574",
"type": "tweet",
"author": { ... },
"title": null,
"text": "LIVE: NASA's Anil Menon and @csa_asc's Joshua Kutryk are setting up a new solar...",
"published_at": "2026-10-29T10:31:18Z",
"duration_seconds": null,
"language": "en",
"hashtags": null,
"mentions": [ ... ],
"stats": { ... }
...
}
],
"cursor": null,
"has_more": false,
"parent": {
"object": "profile",
"platform": "twitter",
"id": "11348282",
"handle": "NASA",
"name": "NASA",
"headline": null,
"url": "https://x.com/NASA",
"kind": "organization",
"bio": "Making the seemingly impossible, possible. ✨",
"avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"verified": true,
"is_private": false,
"status": "public"
...
}
},
"cursor": null,
"has_more": false
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_41c6a270e7acc13d323bdbae",
"data": {
"object": "transcript",
"platform": "twitter",
"video_id": "2111731581702598777",
"url": "https://x.com/yashsrivasta7a/status/2111731581702598777",
"language": "en",
"source": "ai",
"duration_seconds": 45,
"text": "Example transcript text. This is illustrative, not the video's real speech.",
"segments": [
{
"start": 0,
"end": 45,
"text": "Example transcript text. This is illustrative, not the video's real speech."
}
],
"available_languages": null,
"extra": null
},
"cursor": null,
"has_more": null
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_c40c15da8712aea7c04078e6",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "twitter",
"id": "2089382171291070550",
"url": "https://x.com/public/status/2089382171291070550",
"type": "tweet",
"author": { ... },
"title": null,
"text": "BREAKING: New updates to AI Agents on Public\n\n→ We’ve launched the first-ever ma...",
"published_at": "2026-08-17T16:01:43Z",
"duration_seconds": 148.356,
"language": "en",
"hashtags": null,
"mentions": null,
"stats": { ... }
...
},
{
"object": "post",
"platform": "twitter",
"id": "2115190541688398184",
"url": "https://x.com/AlexTamkin/status/2115190541688398184",
"type": "tweet",
"author": { ... },
"title": null,
"text": "New Anthropic research: How AI agents shape experts' judgment calls\n\nWhen expert...",
"published_at": "2026-10-27T21:14:58Z",
"duration_seconds": 15,
"language": "en",
"hashtags": null,
"mentions": null,
"stats": { ... }
...
}
],
"cursor": "eyJwIjoyLCJmIjp7InEiOiJhaSBhZ2VudHMgc2l0ZTp4LmNvbSBpbnVybDpzdGF0dXMiLCJzIjoiMTAi...",
"has_more": true,
"parent": null
},
"cursor": "eyJwIjoyLCJmIjp7InEiOiJhaSBhZ2VudHMgc2l0ZTp4LmNvbSBpbnVybDpzdGF0dXMiLCJzIjoiMTAi...",
"has_more": true
}{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_bf57d24ca2fe2cd2e4b97ed6",
"data": {
"object": "community",
"platform": "twitter",
"id": "1926186499399139650",
"url": "https://x.com/i/communities/1926186499399139650",
"kind": "community",
"name": "The First Thousand",
"title": "The First Thousand",
"description": "This community is for creators and builders who are growing to their first 1,000...",
"avatar_url": null,
"banner_url": "https://pbs.twimg.com/community_banner_img/1930048753223745537/Ua814CNc?format=j...",
"member_count": 5628,
"online_count": null,
"is_nsfw": false,
"is_private": null
...
},
"cursor": null,
"has_more": null
}7 endpoints. One key.
Profiles
1 endpointPosts and videos
3 endpoints- X profile postsGET /v1/twitter/profile/tweetsPosts of an account: about 20 popular posts and reposts, or.
- X post detailsGET /v1/twitter/tweetOne public post with its counts, media and, for a quote post, the quoted post (extra.quoted_post).
- X community postsGET /v1/twitter/community/tweetsThe 20 most-liked posts of a public X community, which is all X shows.
Transcripts
1 endpointSearch and trends
1 endpointOther data
1 endpointWhat you get from X (Twitter)
What you can build with X (Twitter) data
Your first request.
Register
Credits worth 100 requests are added on sign-up, with no card.
Send a handle
Give the profile endpoint a handle such as NASA, without the @.
Pick out the numbers
Followers land in stats.followers, accounts followed in stats.following and the post count in stats.posts.
curl -G "https://api.socialscrape.dev/v1/twitter/profile" \ -H "x-api-key: $SOCIALSCRAPE_API_KEY" \ --data-urlencode "handle=NASA"
import os
import requests
params = {
"handle": "NASA",
}
res = requests.get(
"https://api.socialscrape.dev/v1/twitter/profile",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])
const url = new URL("https://api.socialscrape.dev/v1/twitter/profile"); url.search = new URLSearchParams({ "handle": "NASA" }).toString(); const res = await fetch(url, { headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! }, }); const body = await res.json(); if (body.ok) { console.log(body.data); } else { console.error(body.error.code, body.error.message); }
The response. Sample values, in the shape every call returns.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_aa10816824f8fd23e2b1f991",
"data": {
"object": "profile",
"platform": "twitter",
"id": "11348282",
"handle": "NASA",
"name": "NASA",
"headline": null,
"url": "https://x.com/NASA",
"kind": "organization",
"bio": "Making the seemingly impossible, possible. ✨",
"avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"verified": true,
"is_private": false,
"status": "public"
...
},
"cursor": null,
"has_more": null
}
Pay only for data you get.
Failed requests and cached repeats are free.
1,000 credits
$13 one time
Get an API key- $13.00 per 1,000 credits
- Credits never expire
- No subscription
25,000 credits
$55 one time
Get an API key- $2.20 per 1,000 credits
- Credits never expire
- No subscription
230,000 credits
$349 one time
Get an API key- $1.52 per 1,000 credits
- Credits never expire
- No subscription
Questions, answered.
About the X (Twitter) API
How much does an X scraper API cost?
Checking 200 accounts, each with its profile and its popular posts, takes 400 credits, about $0.88 on the Growth pack. A profile, a post, a community or a page of search results is 1 credit, and the cheapest rate falls to $1.39 per 1,000. 100 credits are free at sign-up. See pricing.
How is it different from the X API?
X's own API is paid by use, so each post you read is billed, and it needs a developer account and keys before the first call. Here a request costs a flat credit, one SocialScrape key is all you carry, and nothing is billed when X does not answer.
Does it need an X login?
No. Your account on X plays no part in a request, so there is no session of yours to lock, suspend or leak.
How good is the post search?
It is discovery through a web search engine, not X's own search. Coverage is incomplete, recent posts can be missing, results keep the engine's order, and you can page from 1 to 11. Posts that are deleted, protected or unreachable are dropped, and view, retweet and bookmark counts are not filled in.
How many posts does an account return?
About 20 popular posts and reposts. If X's timeline widget is rate limited it falls back to the 5 newest original posts instead. X gives no way to page further, so there is no cursor to follow.
Why is an account's likes count empty?
X stopped showing the likes total, so stats.likes comes back null. A suspended account answers removed and an account that does not exist answers not_found.
Can I get transcripts of videos on X?
Yes, as AI transcription of the post's video. Up to 2 minutes is 1 credit. A longer video needs allow_long_transcription=true and costs 5 credits per started minute of the whole video. A post with no video, or only an animated GIF, answers transcript_unavailable and is free. Get an API key to transcribe your first one.
Start pulling social data.
100 free credits. No card needed.