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

[APIs](https://socialtap.dev/apis/index.md)**X**

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.

[Start for free](https://socialtap.dev/signup/)

GET socialtap.dev/v1/x/post

Live data from 33 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/index.md) · [Linkme](https://socialtap.dev/apis/linkme/index.md) · [Linktree](https://socialtap.dev/apis/linktree/index.md) · [Pillar](https://socialtap.dev/apis/pillar/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## 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 1
- Profile 1
- Search 4
- Community 1

### Post

- - [Post X (Twitter) Post API Full text, media and exact view counts 1 credit`GET /v1/x/post`](https://socialtap.dev/apis/x/post/index.md)

### Profile

- - [Profile X (Twitter) Profile API Exact follower counts, bio and verification 1 credit`GET /v1/x/profile`](https://socialtap.dev/apis/x/profile/index.md)

### Search

- - [Web result X (Twitter) Community Search API Communities by topic, niche or name From 1 credit / page`GET /v1/x/search_communities`](https://socialtap.dev/apis/x/search_communities/index.md)
- - [Web result X (Twitter) Hashtag Search API Hashtags related to a keyword or topic 1 credit / page`GET /v1/x/search_hashtags`](https://socialtap.dev/apis/x/search_hashtags/index.md)
- - [Web result X (Twitter) Post Search API Posts by keyword, hashtag or @mention From 1 credit / page`GET /v1/x/search_posts`](https://socialtap.dev/apis/x/search_posts/index.md)
- - [Web result X (Twitter) User Search API Accounts by name, keyword, niche or place From 1 credit / page`GET /v1/x/search_profiles`](https://socialtap.dev/apis/x/search_profiles/index.md)

### Community

- - [Community X (Twitter) Community API Rules, admin and exact member count 1 credit`GET /v1/x/community`](https://socialtap.dev/apis/x/community/index.md)

## 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/post`[Docs](https://socialtap.dev/apis/x/post/index.md)

## Other platforms, same key.

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

- - [31 endpointsTikTokPosts, profiles, comments and more](https://socialtap.dev/apis/tiktok/index.md)
- - [28 endpointsInstagramPosts, profiles, comments and more](https://socialtap.dev/apis/instagram/index.md)
- - [14 endpointsFacebookPosts, profiles, comments and more](https://socialtap.dev/apis/facebook/index.md)
- - [6 endpointsYouTubePosts, profiles, comments and more](https://socialtap.dev/apis/youtube/index.md)
- - [13 endpointsRedditPosts, profiles, comments and more](https://socialtap.dev/apis/reddit/index.md)
- - [6 endpointsThreadsPosts, profiles and comments](https://socialtap.dev/apis/threads/index.md)
- - [12 endpointsSpotifyTracks, artists, playlists and more](https://socialtap.dev/apis/spotify/index.md)
- - [10 endpointsAmazonProducts, posts, profiles and more](https://socialtap.dev/apis/amazon/index.md)
- - [10 endpointsApple MusicTracks, artists, playlists and more](https://socialtap.dev/apis/applemusic/index.md)
- - [10 endpointsPinterestPins, profiles, boards and more](https://socialtap.dev/apis/pinterest/index.md)
- - [7 endpointsRumblePosts, profiles, comments and more](https://socialtap.dev/apis/rumble/index.md)
- - [5 endpointsBlueskyPosts, profiles and comments](https://socialtap.dev/apis/bluesky/index.md)
- - [5 endpointsTwitchVideos, profiles, transcripts and more](https://socialtap.dev/apis/twitch/index.md)
- - [4 endpointsLinkedInPosts and profiles](https://socialtap.dev/apis/linkedin/index.md)
- - [4 endpointsTelegramPosts and channels](https://socialtap.dev/apis/telegram/index.md)
- - [4 endpointsTikTok ShopProducts and reviews](https://socialtap.dev/apis/tiktokshop/index.md)
- - [3 endpointsKwaiPosts and profiles](https://socialtap.dev/apis/kwai/index.md)
- - [3 endpointsSnapchatSpotlights, profiles and comments](https://socialtap.dev/apis/snapchat/index.md)
- - [3 endpointsSoundCloudTracks and artists](https://socialtap.dev/apis/soundcloud/index.md)
- - [3 endpointsTruth SocialPosts and profiles](https://socialtap.dev/apis/truthsocial/index.md)
- - [2 endpointsKickPosts and transcripts](https://socialtap.dev/apis/kick/index.md)
- - [1 endpointKomiPages](https://socialtap.dev/apis/komi/index.md)
- - [1 endpointLnk.BioProfiles](https://socialtap.dev/apis/linkbio/index.md)
- - [1 endpointLinkmeProfiles](https://socialtap.dev/apis/linkme/index.md)
- - [1 endpointLinktreeProfiles](https://socialtap.dev/apis/linktree/index.md)
- - [1 endpointPillarPages](https://socialtap.dev/apis/pillar/index.md)
- - [3 endpointsTikTok Ad LibraryAds](https://socialtap.dev/apis/tiktok-ad-library/index.md)
- - [5 endpointsFacebook Ad LibraryAds, advertisers and transcripts](https://socialtap.dev/apis/facebook-ad-library/index.md)
- - [4 endpointsFacebook EventsEvents](https://socialtap.dev/apis/facebook-events/index.md)
- - [3 endpointsFacebook MarketplaceListings and places](https://socialtap.dev/apis/facebook-marketplace/index.md)
- - [6 endpointsGoogle Ads Transparency CenterAds and advertisers](https://socialtap.dev/apis/google-ads-transparency/index.md)
- - [2 endpointsLinkedIn Ad LibraryAds](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## Frequently asked questions

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

[Contact us](mailto:support@socialtap.dev)

**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](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/x/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
