XMenu
X
3 endpoints. All of them accept a JSON body, support cache_days and return the standard response envelope.
Limitations: Unofficial API: not affiliated with or endorsed by the platform. Public data only. Timelines return recent posts only (up to 60); posts of protected accounts and posts X does not show publicly are missing.
/v1/x/profilePublic X (Twitter) profile: bio, location, verification, follower/following/tweet/like/media/listed counts, avatar and banner.
X (Twitter) Profile Scraper API: use cases, pricing and questions
Body parameters
Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | X username, @handle or profile URL.Example: tesla |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/x/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"tesla"}'Response fields (18)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
user_id | string or null | X numeric user ID (rest_id) |
username | string | Screen name (canonical casing) |
full_name | string | Display name |
biography | string | Bio text; empty string if none |
location | string | Profile location; empty string if none |
external_url | string or null | Expanded profile website URL |
is_private | boolean | Tweets are protected |
is_verified | boolean | Legacy verified OR blue-verified |
is_blue_verified | boolean | Has X Premium (blue) checkmark |
follower_count | integer or null | Number of followers |
following_count | integer or null | Number of accounts followed |
tweet_count | integer or null | Total tweets incl. retweets |
like_count | integer or null | Tweets the user has liked |
media_count | integer or null | Number of media posts |
listed_count | integer or null | Number of lists including the user |
created_at | string or null | Join date, X legacy format |
profile_image_url | string or null | Full-size avatar URL |
profile_banner_url | string or null | Profile banner image URL |
Good to know
- created_at uses the X date format, for example "Wed Jun 02 20:12:29 +0000 2010".
/v1/x/postsAn X profile plus its recent timeline (up to 60 tweets incl. pinned, retweets and own replies) with text, media and engagement counts.
X (Twitter) Posts Scraper API: use cases, pricing and questions
Body parameters
Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | X username, @handle or profile URL.Example: tesla |
limit | integer | No | Maximum number of tweets to return. From 1 to 60, default 20.Example: 20 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/x/posts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username":"tesla","limit":20}'Response fields (51)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
user_id | string or null | X numeric user ID (rest_id) |
username | string | Screen name (canonical casing) |
full_name | string | Display name |
biography | string | Bio text; empty string if none |
location | string | Profile location; empty string if none |
external_url | string or null | Expanded profile website URL |
is_private | boolean | Tweets are protected |
is_verified | boolean | Legacy verified OR blue-verified |
is_blue_verified | boolean | Has X Premium (blue) checkmark |
follower_count | integer or null | Number of followers |
following_count | integer or null | Number of accounts followed |
tweet_count | integer or null | Total tweets incl. retweets |
like_count | integer or null | Tweets the user has liked |
media_count | integer or null | Number of media posts |
listed_count | integer or null | Number of lists including the user |
created_at | string or null | Join date, X legacy format |
profile_image_url | string or null | Full-size avatar URL |
profile_banner_url | string or null | Profile banner image URL |
posts[] | array of objects | Timeline tweets in timeline order, max limit |
posts[].id | string | Tweet ID (original tweet for retweets) |
posts[].link | string or null | https://x.com/<author>/status/<id> |
posts[].text | string | Full text (long-form note text if present) |
posts[].lang | string or null | Language code detected by X |
posts[].created_at | string or null | Post time, X legacy date format |
posts[].author_username | string or null | Author screen name (original author for RTs) |
posts[].is_pinned | boolean | Tweet is the pinned tweet |
posts[].is_retweet | boolean | Entry is a retweet |
posts[].retweeted_from | string or null | Original author's username when retweet |
posts[].is_reply | boolean | Tweet is a reply |
posts[].in_reply_to | string or null | Screen name being replied to |
posts[].is_quote | boolean | Tweet quotes another tweet |
posts[].quoted | object or null | Quoted tweet summary |
posts[].quoted.id | string or null | Quoted tweet ID |
posts[].quoted.username | string or null | Quoted tweet author |
posts[].quoted.text | string | Quoted tweet text |
posts[].quoted.link | string or null | Quoted tweet URL |
posts[].reply_count | integer or null | Number of replies |
posts[].retweet_count | integer or null | Number of retweets |
posts[].quote_count | integer or null | Number of quote tweets |
posts[].like_count | integer or null | Number of likes |
posts[].bookmark_count | integer or null | Number of bookmarks |
posts[].view_count | integer or null | Number of views |
posts[].media[] | array of objects | Attached media; empty array if none |
posts[].media[].type | string | 'photo', 'video' or 'animated_gif' |
posts[].media[].image_url | string or null | Image or video thumbnail URL |
posts[].media[].video_url | string or null | Highest-bitrate MP4 URL |
posts[].media[].duration_ms | integer or null | Video duration in milliseconds |
posts[].media[].width | integer or null | Original width in pixels |
posts[].media[].height | integer or null | Original height in pixels |
posts_fetched | integer | Number of tweets returned |
has_more | boolean | More tweets exist beyond those returned |
Good to know
- Includes the pinned post, reposts and the account's own replies, up to 60 items.
- For reposts the post fields describe the original post and retweeted_from holds its author.
- Protected accounts return an empty posts array.
/v1/x/postA single X post (tweet) by URL or ID: text, author, reply/quote/retweet info, media and engagement counts including views.
X (Twitter) Post Scraper API: use cases, pricing and questions
Body parameters
Send one of url or id. Add cache_days to any request to accept a cached result.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | One of | Tweet URL (a bare tweet ID also works).Example: https://x.com/jack/status/20 |
id | string | One of | Tweet ID; used only when url is empty.Example: 20 |
cache_days | integer | No | Accept a stored result up to this many days old (1 to 14). Omit for live data. |
Example request
curl -X POST https://api.scrapeeverything.com/v1/x/post \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/jack/status/20"}'Response fields (30)
Returned inside data. Fields marked or null are null when the platform does not expose the value.
| Field | Type | Description |
|---|---|---|
id | string | Tweet ID (original tweet if a retweet) |
link | string or null | https://x.com/<author>/status/<id> |
text | string | Full text (long-form note text if present) |
lang | string or null | Language code detected by X |
created_at | string or null | Post time, X legacy date format |
author_username | string or null | Author screen name |
is_pinned | boolean | Always false for this endpoint |
is_retweet | boolean | Tweet is a retweet |
retweeted_from | string or null | Original author's username when retweet |
is_reply | boolean | Tweet is a reply |
in_reply_to | string or null | Screen name being replied to |
is_quote | boolean | Tweet quotes another tweet |
quoted | object or null | Quoted tweet summary |
quoted.id | string or null | Quoted tweet ID |
quoted.username | string or null | Quoted tweet author |
quoted.text | string | Quoted tweet text |
quoted.link | string or null | Quoted tweet URL |
reply_count | integer or null | Number of replies |
retweet_count | integer or null | Number of retweets |
quote_count | integer or null | Number of quote tweets |
like_count | integer or null | Number of likes |
bookmark_count | integer or null | Number of bookmarks |
view_count | integer or null | Number of views |
media[] | array of objects | Attached media; empty array if none |
media[].type | string | 'photo', 'video' or 'animated_gif' |
media[].image_url | string or null | Image (original size, name=orig) or video thumbnail URL |
media[].video_url | string or null | Highest-bitrate MP4 URL |
media[].duration_ms | integer or null | Video duration in milliseconds |
media[].width | integer or null | Original width in pixels |
media[].height | integer or null | Original height in pixels |
Good to know
- Send id as a string. Post IDs are larger than JSON numbers can hold exactly; numeric IDs are rejected.