Twitter/X User Tweets API
Most popular public tweets from a Twitter/X profile (~100 cap) — not chronological. Text, author, engagement, hashtags, media. Flat 2 credits.
GET request to /v1/twitter/user-tweets that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the Twitter/X User Tweets API?
Pass a profile URL or @handle and get the tweets Twitter's public timeline embed exposes as clean JSON. Important: this is not a chronological or latest feed — Twitter publicly returns on the order of ~100 of the account's most popular posts (same limit ScrapeCreators documents). Do not use this endpoint to detect new tweets. Each result uses the same tweet contract as Search / Tweet Details: ISO-8601 publishedAt, author (id when exposed, username, displayName, followers, verified, avatar), engagement always shaped as {views,likes,replies,retweets,quotes,bookmarks} (the timeline embed usually leaves views and bookmarks null), isReply / isRetweet / isQuote, conversationId, source when present, hashtags[] (always present, may be empty), and media[]. Flat 2 credits per call. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh.
What you get
- Most popular public tweets (~100 Twitter cap) — not latest/chronological
- ISO-8601 publishedAt (same parser as tweet-details)
- engagement{} with 6 keys (views/bookmarks often null on this surface)
- hashtags[] + media[] (empty arrays when none)
- conversationId / source / isQuote when Twitter exposes them
- Flat 2 credits per call
Platform limits
Honest ceilings from the upstream platform surface — not Captapi bugs. Unexpected truncation here is usually the platform, not us.
- Twitter's public timeline embed returns on the order of ~100 of the account's most popular tweets — not a chronological or latest feed. Do not use this endpoint to detect new tweets.
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/twitter/user-tweets?url=https%3A%2F%2Fx.com%2FNASA" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"handle": "elonmusk",
"totalReturned": 5,
"tweets": [
{
"platform": "twitter",
"url": "https://x.com/elonmusk/status/2084274899065897011",
"id": "2084274899065897011",
"text": "Worth noting that any USAID funding that appeared to have the slightest merit whatsoever for helping people in need was moved to the State Department. \n\nOnly the funding where they provided no evidence at all for who would receive the money was stopped.\n\nhttps://t.co/qGUew8TyKD",
"lang": "en",
"publishedAt": "2026-08-03T13:47:14.000Z",
"author": {
"id": "44196397",
"username": "elonmusk",
"displayName": "Elon Musk",
"url": "https://x.com/elonmusk",
"followers": 241148496,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"possiblySensitive": false,
"conversationId": "2084274899065897011",
"engagement": {
"views": null,
"likes": 51392,
"replies": 2623,
"retweets": 6975,
"quotes": 344,
"bookmarks": null
},
"hashtags": [],
"media": []
},
{
"platform": "twitter",
"url": "https://x.com/elonmusk/status/1519480761749016577",
"id": "1519480761749016577",
"text": "Next I’m buying Coca-Cola to put the cocaine back in",
"lang": "en",
"publishedAt": "2022-04-28T00:56:58.000Z",
"author": {
"id": "44196397",
"username": "elonmusk",
"displayName": "Elon Musk",
"url": "https://x.com/elonmusk",
"followers": 241148496,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"possiblySensitive": false,
"conversationId": "1519480761749016577",
"engagement": {
"views": null,
"likes": 4209989,
"replies": 168055,
"retweets": 579720,
"quotes": 168169,
"bookmarks": null
},
"hashtags": [],
"media": []
}
]
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Top-level fields
handleAccount handle.totalReturnedNumber of items returned in this response.
Tweets
Each item in tweets contains:
platformPlatform identifier for this response (matches the endpoint's platform).urlCanonical URL of the item.idStable platform ID for the item.textText content.langLanguage code of the content.publishedAtTweet publish time as ISO-8601 UTC (e.g. 2022-04-28T00:56:58.000Z). Not Twitter's raw created_at string.authorAuthor name or handle.isReplyWhether the tweet is a reply.isRetweetWhether the tweet is a retweet.possiblySensitivePossibly sensitive. Example: false.conversationIdThread root id (conversation_id_str) for grouping replies.engagementEngagement metrics for the item.hashtagsHashtag texts without #. Always an array (empty when the tweet has none).mediaMedia image/video preview URLs when present. Always an array (empty when none).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Twitter/X profile URL or @handle. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble. |
| limit | integer | No | Max tweets to return (default 20, max 200). Twitter's public surface usually caps around ~100 most popular posts — not chronological latest. Flat 2 credits per call. |
| cache | boolean | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. Envelope includes cached + cachedAt on hits. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.
How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/twitter/user-tweetsand parse the JSON response.
Use cases
Top-Post Analysis
Study an account's highest-engagement public tweets (popularity-ranked, not latest).
Brand Safety Sampling
Review viral posts and media from a profile before a partnership.
Engagement Benchmarks
Compare likes/replies/retweets/quotes across an account's standout posts.
Not for New-Tweet Monitoring
Twitter does not expose a public chronological feed here — use another signal for "just posted".
Frequently asked questions
What does the Twitter/X User Tweets API do?+
The Twitter/X User Tweets API lets you list items in bulk with metadata from a public Twitter / X tweet using one GET request to /v1/twitter/user-tweets. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Twitter/X User Tweets API cost?+
Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.
Do I need a Twitter / X API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the Twitter/X User Tweets API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.
More Twitter / X APIs
Ready to use the Twitter/X User Tweets API?
Sign up, grab your key, and make your first call in 60 seconds.