X User Tweets API
Scrape X User Tweets data with one API call. Returns the most recent tweets posted by a Twitter/X user in descending chronological order, each with the full text, like count, retweet count, reply count, bookmark count, view count, media attachments, and creation timestamp. Retweets and self-threaded replies are included, matching the account's Posts tab; a pinned tweet is flagged via `post.flags.pinned` and sorts by its own publish date. A post carrying more than one photo lists every URL in `post.ext.all_media_urls`, while `post.content.media_urls` holds the first; `post.ext.quote_count` is how many times the post was quote-tweeted. Page size is set by the source, typically around 20 tweets. Deeper history is a cursor walk: send `pagination.next_cursor` back as `cursor` and repeat until `pagination.has_more` is false; each page costs 1 credit. When the main source cannot fetch a page, a second source answers it with the same newest-first tweets, and a walk carries on from the last tweet you received, so nothing repeats. Only when every source fails does the call return 502 `UPSTREAM_ERROR` with the credit refunded; it is never answered with an older or popularity-ranked set of tweets.
Last updated October 2026Maintained by the SocialCrawl team
Returns an account's most recent tweets in descending order, with full text, like, retweet, reply, bookmark and view counts, media, and creation time. Around 20 tweets per page.
Use it to read a timeline: pages come newest first, retweets and self-threads included, and you can page deeper by sending pagination.next_cursor back as cursor.
Searching 68 platforms in parallel
What can you do with the User Tweets API?
The User Tweets endpoint gives you structured X data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://www.socialcrawl.dev/v1/twitter/user/tweets?handle=elonmusk&since=2026-09-01&label=sponsored&trim=true"import requests
response = requests.get(
"https://www.socialcrawl.dev/v1/twitter/user/tweets",
params={
'handle': 'elonmusk',
'since': '2026-09-01',
'label': 'sponsored',
'trim': 'true',
},
headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()const response = await fetch(
"https://www.socialcrawl.dev/v1/twitter/user/tweets?handle=elonmusk&since=2026-09-01&label=sponsored&trim=true",
{
headers: { "x-api-key": "YOUR_API_KEY" },
},
);
const data = await response.json();Parameters worth sending
label=sponsoredMarks each post that is paid or sponsored, at no extra credits; intent and niche are free too.since=2026-09-01Returns only posts after this date, so a daily poll pays only for the pages with new posts.trim=trueSame price, lighter payload: drops the bulky raw fields.
Parameters
| Parameter | Required | Description |
|---|---|---|
| handle | Yes | Twitter username without the @ symbol |
| since | No | Only tweets published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Older tweets are left off the page, and the page that reaches one ends the walk: `next_cursor` is not returned and `pagination.stopped_at` is `since`. Pinned tweets sit out of date order and never end the walk. The page still costs what a page costs, so a daily poll pays for the pages it walks and no more. |
| stop_at_id | No | The id (`post.id`) or URL (`post.url`) of the newest tweet you already hold. The page stops just before it: that tweet and everything after it are left off, `next_cursor` is not returned, and `pagination.stopped_at` is `known_id`. A pinned tweet never counts as the stop point. If it is not on this page the page is returned in full with its cursor, so keep walking. `pagination.stopped_at` is `end` when the list ran out first and `null` while there is more to walk. |
| trim | No | Accepted for backwards compatibility and ignored. It shrank the raw upstream payload, which the canonical response never exposed, so it changed nothing you can see |
| cursor | No | Cursor from the previous response's pagination.next_cursor to fetch the next page |
| label | No | Optional CSV of SocialCrawl labels to add to every post. Without this param every page already carries sponsored, intent and niche, free; label= adds the labels you name to them (the defaults keep running). sponsored, intent and niche are free when asked for too; mention, quality, intent with offer=, and injection add 1 credit per started 25 newly judged posts. judgments=off (or label=none) turns the default labels off. sponsored: is the post a paid or gifted promotion (p, 0 to 1), did it carry a disclosure marker such as #ad or 광고 (disclosed), is it likely paid with no marker (undisclosed), and which of the accounts it mentions does it promote (brand, or null). These are signals to review, never a finding. mention (needs brand=): is the post about that brand rather than something that shares its name (about_brand, 0 to 1), how it feels about the brand on five levels (sentiment_level 0 to 4 and sentiment_score 0 to 1, null when the post is not about the brand), is it sarcastic, which aspect it talks about (taste_or_quality, price_or_value, availability_or_delivery, health_or_safety, advertising_or_campaign, customer_service, none), and did the author buy or use it (first_hand). intent: what the author is mainly doing (label: asking_for_recommendation, comparing_options, switching_away, complaining, promoting, news_or_discussion, other, or null when unsure, with confidence), whether they read as a potential buyer rather than a seller (buyer, seller), how pressing the need is (urgency, 0 to 3), and, when you pass offer=, whether your offer would plausibly help them (fits_offer). niche: which of the 33 niches of the published taxonomy sc-niche-v1 the caption belongs to, or personal_no_niche, or other (label, confidence, taxonomy), with label null when the caption is too thin to tell or the pick is unsure. It reads the caption only, not the video. quality: how much checkable detail the caption carries (fact_density 0 to 3), whether it mainly asks for likes, replies, shares, follows or tags (engagement_bait, 0 to 1), whether it is written to provoke anger as a way to get engagement (rage_bait, 0 to 1; about the writing, never the side taken), whether it only repeats someone else's news or view (secondhand, 0 to 1), and what the post is mainly doing (post_aim: inform, opinion, sell, entertain, provoke, other). exclude=engagement_bait drops posts whose engagement_bait is 0.8 or higher. injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. A post that could not be judged carries labels: null. Posts already labelled for anyone are free, and so is a cached page. data.labels reports what was judged and billed. |
| exclude | No | Optional CSV (engagement_bait), only with label=quality. Drops posts whose engagement_bait probability is 0.8 or higher and lists their ids in data.labels.dropped_ids. A post that could not be judged is never dropped. |
| brand | No | Required by label=mention, ignored otherwise. The brand or product the posts are judged against, up to 300 characters, for example brand=Buldak. Without it label=mention is skipped with the warning label_mention_needs_brand and is not billed. |
| brand_description | No | Optional, with label=mention. One plain sentence saying what the brand is, for example brand_description=Samyang's spicy instant noodle brand. Use it when the name is also an ordinary word or another company's name. |
| offer | No | Optional, with label=intent. One or two plain sentences saying what you sell, up to 300 characters, for example offer=A web design agency that builds websites for small businesses. Adds fits_offer to every post; without it fits_offer is null. |
| judgments | No | Optional, on (the default) or off. By default every row gains free SocialCrawl judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same. (on | off) |
| dry_run | No | Optional. When 1, return a cost preview for this labelled or relevance-filtered request without fetching the page or judging any row. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged. (1) |
| label_evidence | No | Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence.<preset> = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it. (1) |
| fit | No | Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache at no extra charge. Without this param the page is unchanged. (goal) |
| goal | No | Required by fit=goal. What you are trying to do, in your own words, up to 300 characters. |
| fit_tokens | No | Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it. |
| until | No | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. |
What does the X User Tweets API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "twitter",
"endpoint": "/v1/twitter/user/tweets",
"data": {
"items": [
{
"post": {
"id": "2105941530246787259",
"url": "https://x.com/elonmusk/status/2105941530246787259",
"content": {
"text": "RT @SpaceX: Today’s mission is the @NRO_gov’s first launch aboard the Falcon Heavy rocket. Falcon 9 previously launched 22 missions over ni…",
"media_urls": null,
"thumbnail_url": null,
"duration_seconds": null
},
"author": {
"username": "elonmusk",
"display_name": "Elon Musk",
"avatar_url": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"verified": true
},
"engagement": {
"views": 573501,
"likes": 0,
"comments": 0,
"shares": 675,
"saves": 0
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-10-02T08:42:41.000Z",
"ext": {
"author_followers": 241727279,
"author_following": 1414,
"author_posts_count": 109355,
"content_language": "en",
"retweeted_post": {
"id": "2105866520240832857",
"url": "https://x.com/user_afd623/status/2105866520240832857",
"author": {
"id": "user_a8c44b",
"username": "user_afd623",
"display_name": "user_afd623",
"verified": true
},
"text": "Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted).",
"media_urls": [
"https://pbs.twimg.com/media/HTmKXkKW8AAtRmz.jpg",
"https://pbs.twimg.com/media/HTmKXzdWAAAoTHv.jpg"
],
"engagement": {
"views": 615677,
"likes": 5871,
"comments": 250,
"shares": 675,
"saves": 149
},
"quote_count": 60,
"published_at": "Fri Oct 02 03:44:38 +0000 2026"
},
"quote_count": 0,
"all_media_urls": null
}
},
"computed": {
"engagement_rate": 0.001177,
"language": "en",
"content_category": "other",
"estimated_reach": 688201,
"vs_creator": {
"ratio": null,
"metric": "views",
"reason": "too_young"
},
"labels": {
"sponsored": {
"p": 0.04,
"disclosed": false,
"undisclosed": false,
"brand": null
},
"intent": {
"label": "news_or_discussion",
"confidence": 1,
"buyer": false,
"seller": 0.27,
"fits_offer": null,
"urgency": 0
},
"niche": {
"label": "technology",
"confidence": 0.65,
"taxonomy": "sc-niche-v1"
}
}
}
},
{
"post": {
"id": "2105940448472866826",
"url": "https://x.com/elonmusk/status/2105940448472866826",
"content": {
"text": "RT @stevenmarkryan: • SpaceX Makes History\n• Tesla Secures Future\n• Grok Team Can't Stop Cooking\n\nTIMESTAMPS\n\n0:00 Crew Dragon ISS Mission…",
"media_urls": null,
"thumbnail_url": null,
"duration_seconds": null
},
"author": {
"username": "elonmusk",
"display_name": "Elon Musk",
"avatar_url": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"verified": true
},
"engagement": {
"views": 529093,
"likes": 0,
"comments": 0,
"shares": 222,
"saves": 0
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-10-02T08:38:24.000Z",
"ext": {
"author_followers": 241727279,
"author_following": 1414,
"author_posts_count": 109355,
"content_language": "en",
"retweeted_post": {
"id": "2105872022668718241",
"url": "https://x.com/user_ba92b7/status/2105872022668718241",
"author": {
"id": "user_005e5a",
"username": "user_ba92b7",
"display_name": "user_ba92b7",
"verified": true
},
"text": "Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted).",
"media_urls": [
"https://pbs.twimg.com/amplify_video_thumb/2105871072243699712/img/a9YqHwW6tJx5x2Iz.jpg"
],
"engagement": {
"views": 302670,
"likes": 1560,
"comments": 84,
"shares": 222,
"saves": 104
},
"quote_count": 12,
"published_at": "Fri Oct 02 04:06:30 +0000 2026"
},
"quote_count": 0,
"all_media_urls": null
}
},
"computed": {
"engagement_rate": 0.00042,
"language": "en",
"content_category": "other",
"estimated_reach": 634912,
"vs_creator": {
"ratio": null,
"metric": "views",
"reason": "too_young"
},
"labels": {
"sponsored": {
"p": 0.07,
"disclosed": false,
"undisclosed": false,
"brand": null
},
"intent": {
"label": null,
"confidence": 0.44,
"buyer": false,
"seller": 0.44,
"fits_offer": null,
"urgency": 0.01
},
"niche": {
"label": "technology",
"confidence": 0.85,
"taxonomy": "sc-niche-v1"
}
}
}
}
],
"next_cursor": "sc2.eyJzIjoiZyIsImMiOiJEQUFIQ2dBQkhUb3VhOWtfXy1vTEFBSUFBQUFUTWpFd05UZzRPVGsxTURFek9UQTNNekF3TUFnQUF3QUFBQUlBQUEifQ",
"total": null,
"creator_baseline": {
"baseline": null,
"reason": "fewer_than_eight",
"rows_used": 0,
"cadence": "measured"
},
"labels": {
"presets": [
"sponsored",
"intent"
],
"rows": 14,
"labelled": 14,
"cached": 6,
"skipped": 0,
"unjudged": 0,
"dropped": 0,
"dropped_ids": [],
"extra_credits": 0,
"methodology_version": "labels/1",
"mode": "default",
"status": "complete",
"pending": 0,
"pending_ids": []
},
"dropped": 0
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": "sc.eyJ2IjoyLCJjIjoic2MyLmV5SnpJam9pWnlJc0ltTWlPaUpFUVVGSVEyZEJRa2hVYjNWaE9XdGZYeTF2VEVGQlNVRkJRVUZVVFdwRmQwNVVaelJQVkdzeFRVUkZlazlVUVROTmVrRjNUVUZuUVVGM1FVRkJRVWxCUVVFaWZRIiwiZSI6InR3aXR0ZXIvdXNlci90d2VldHMiLCJwIjoiY3Vyc29yIn0",
"has_more": true,
"page_size": 14,
"stopped_at": null
},
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T15:41:03.146Z",
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the X User Tweets API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 68 platforms covering 10B+ monthly active users.
One schema, every platform
Query 68 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I get a user's tweets with an API?
What fields are returned per tweet?
Can I trim the response to save bandwidth?
How much does this endpoint cost?
Do I need an X API Pro subscription to read tweets?
Ask AI about SocialCrawl
Ready to scrape X User Tweets data?
Get your API key and start pulling X data in under 60 seconds.
