Twitter/X
X (Twitter) profiles, tweets, communities, video transcripts, AI search, and a one-call profile composite
X (formerly Twitter) profiles and their tweets, individual tweets in full, community pages and their posts, video transcripts, an AI-answered search over the network, and a composite that returns a profile with computed analytics in one call.
X remains the primary platform for real-time public conversation and news, and it is also the platform with the tightest read limits, most of the design decisions below follow from that.
Base URL: /v1/twitter/...
How do I get started with Twitter/X data?
1. Fetch a profile
curl "https://www.socialcrawl.dev/v1/twitter/profile?handle=elonmusk" \
-H "x-api-key: YOUR_API_KEY"2. Fetch their content
curl "https://www.socialcrawl.dev/v1/twitter/user/tweets?handle=elonmusk" \
-H "x-api-key: YOUR_API_KEY"3. Read computed fields
When an endpoint supports a computed field and the required source inputs are present, the unified response includes that optional field. Depending on the endpoint, optional fields can include engagement_rate, language, content_category, and estimated_reach. See Computed fields for formulas, clamping rules, and null semantics.
What you can get
Accounts. GET /v1/twitter/profile (1cr) takes a handle and returns follower, following and tweet counts, bio, profile and banner images, and verification status. GET /v1/twitter/user/tweets (1cr) returns up to the 100 most recent tweets for that handle with full text, like/retweet/reply counts, media, and timestamps.
One tweet. GET /v1/twitter/tweet (1cr) takes the tweet url and returns the complete record, including the quote count, which the user timeline does not carry. If quote volume matters to you, that is the reason to spend the extra call.
Video speech. GET /v1/twitter/tweet/transcript (10cr) returns the spoken words from a video attached to a tweet, auto-generated captions included. tweet returns the media attachment; this returns what is said in it.
Communities. GET /v1/twitter/community (1cr) takes a community url and returns the group itself. Name, description, member count, rules, creation date. GET /v1/twitter/community/tweets (1cr) returns what has been posted inside it. Both take the community URL, and neither paginates.
AI search. GET /v1/twitter/ai-search (5cr) takes a plain-English query and returns a written answer, the X posts cited as sources, and how many searches the model ran to get there. Narrow it with from_handles, exclude_handles, from_date, and to_date.
The composite. GET /v1/twitter/profile/full (5cr) fans out to the profile and recent-posts endpoints in parallel and returns the unified author, the post list, and computed metrics. Average engagement rate, posting cadence with the window it was measured over, the top post, and the format mix. posts sets how many recent tweets to average over (1-100, default 25), and include=computed drops the raw posts[] to save payload.
curl "https://www.socialcrawl.dev/v1/twitter/profile/full?handle=elonmusk&posts=50" \
-H "x-api-key: YOUR_API_KEY"Reaching further back than 100 tweets
user/tweets returns one page and one page only, up to 100 recent tweets, with no cursor to follow. This is the constraint most integrations hit first, and there are two ways past it:
GET /v1/twitter/ai-searchanswers questions that would otherwise need a deep timeline walk: what an account said about a topic last week, who was arguing about a launch, which posts cited a claim. It searches rather than paginates, andfrom_date/to_datebound the period. 5cr a call./v1/search/everywhereincludes X as a source (namedtwitter-ai-searchthere, nottwitter) alongside the other networks, if the question is cross-platform rather than X-specific.
The profile leg is the only critical leg on profile/full. If the tweets
cannot be fetched you still get a 200 with the profile and null
post-dependent metrics rather than an error, and every leg's outcome is
reported in legs[]. Check legs[] before you treat a null cadence as a
quiet account.
Endpoints
엔드포인트 15개를 제공해요.
| 엔드포인트 | 경로 | 크레딧 등급 |
|---|---|---|
| Get Twitter community details | /v1/twitter/community | standard (1cr) |
| List Twitter community tweets | /v1/twitter/community/tweets | standard (1cr) |
| Get Twitter user profile | /v1/twitter/profile | standard (1cr) |
| X (Twitter) profile, recent posts, and computed analytics in one call. | /v1/twitter/profile/full | standard (5cr) |
| Search Twitter tweets | /v1/twitter/search/tweets | standard (1cr) |
| Search Twitter users | /v1/twitter/search/users | standard (1cr) |
| Get Twitter tweet details | /v1/twitter/tweet | standard (1cr) |
| List Twitter tweet replies | /v1/twitter/tweet/replies | standard (1cr) |
| List Twitter tweet retweeters | /v1/twitter/tweet/retweeters | standard (1cr) |
| List Twitter user followers | /v1/twitter/user/followers | standard (1cr) |
| List Twitter user following | /v1/twitter/user/following | standard (1cr) |
| List Twitter user media tweets | /v1/twitter/user/media | standard (1cr) |
| List Twitter user tweets | /v1/twitter/user/tweets | standard (1cr) |
| AI-powered X (Twitter) search via xAI Grok | /v1/twitter/ai-search | advanced (5cr) |
| Get Twitter video transcript | /v1/twitter/tweet/transcript | premium (10cr) |
What should I know about Twitter/X data?
- All endpoints use
GETmethod with query parameters - Authentication via
x-api-keyheader - Responses follow the unified SocialCrawl schema
profile,user/tweets, andprofile/fulltake ahandle(no@);tweet,tweet/transcript,community, andcommunity/tweetstake aurl;ai-searchtakesqueryuser/tweets,community/tweets, andai-searcheach return a single result set with no cursor. The one exception isprofile/full, which accepts acursorto deepen its post windowtrim=trueonuser/tweetsandtweetreturns a lighter payload at the same price
Official Twitter/X Resources
- X API Documentation: Official X developer platform
- X API Access Levels: API tiers and access
