Twitter / X Data API
Search X posts, read user timelines and profiles, explore communities and retrieve video transcript text. 7 documented operations, each with its own parameters and request price.
$0.002444 USD / requestPrice version 2026-11-23.retail-1
// X / Twitter Tweet Search API · twitter API
const response = await fetch("https://socialmediascraper.org/v1/twitter/search?query=ai+agents", {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY',
'x-price-version': '2026-11-23.retail-1',
'Idempotency-Key': 'example-request-0001'
}
});
const data = await response.json();
console.log(data);Plan your X / Twitter data workflow
Start social listening with a query, select source posts, then enrich authors or retrieve a community timeline. Keep post URLs with analysis so readers can inspect the source conversation.
Endpoints
What you can do with the X / Twitter API
X / Twitter Tweet Search API
GET /v1/twitter/searchSearch public X posts by keyword to gather topic-specific conversation records.
X / Twitter User Profile API
GET /v1/twitter/profileRead an X or Twitter account's public biography, identity and follower-related metrics.
X / Twitter User Tweets API
GET /v1/twitter/postsList public tweets from an X account to compare its published messages and posting subjects.
X / Twitter Tweet Details API
GET /v1/twitter/postRetrieve a single X post by URL to inspect its text, author and engagement metadata.
X / Twitter Video Transcript API
GET /v1/twitter/transcriptExtract transcript text from a video shared on X for summaries and searchable research notes.
X / Twitter Community Details API
GET /v1/twitter/communityLook up an X community's public record before exploring its associated conversations.
X / Twitter Community Tweets API
GET /v1/twitter/community_tweetsRead posts associated with an X community to research discussion within a focused audience.