Introducing the Instagram APIRead more →

X scraper API. Live data from any public X link.

Get public posts, profiles and communities by link, handle or search, with posts in the same fields as on 20 other platforms. We handle the proxies, blocks and platform changes.

GET socialtap.dev/v1/x/post

What X data can you get?

Public X (formerly Twitter) profiles with exact follower counts, and posts with their full text, media and exact views, likes and reposts. Communities come with their rules, admin and exact member count. Find accounts, posts, Communities and hashtags by keyword in a search engine's web results.

Post

Call the X API from your code.

Copy the request for your language, or hand it to your agent.

X (Twitter) Post Try in
const params = new URLSearchParams({
  url: "https://x.com/NASA/status/2117633046002225363",
});
const res = await fetch(`https://socialtap.dev/v1/x/post?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
GET https://socialtap.dev/v1/x/postDocs

Other platforms, same key.

Posts and profiles come back in the same fields wherever they're from.

Frequently asked questions

What you send, what comes back and how your agent uses it.

Contact us
Can I download the video from a tweet?
Yes. media[].url is the highest-bitrate MP4 of each video or GIF, and platform_specific.x.media_variants lists every rendition and the HLS playlist.
Are the follower counts exact?
Yes. Follower, following and post counts are exact, not the rounded figures X's profile page shows.
Does the X (Twitter) Hashtag Search API return how many posts use a hashtag?
No. X shows no count, description or picture for a hashtag logged out, so those fields are null and each result has the tag's name and link.

Try it on a X link you have.

Get a key and send your first request in a minute. The same key works on every platform.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs