X / Twitter Tweet API
Full detail for a single tweet by URL: text, author id, and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"found": true,
"data": {
"id": "1800000000000000000",
"text": "Liftoff! 🚀",
"authorId": "11348282",
"likes": 142000,
"retweets": 21400,
"replies": 3900,
"quotes": 1200,
"bookmarks": 8600,
"views": 9400000,
"createdAt": "Sun Jun 09 13:45:00 +0000 2024"
}
}interface TwitterTweetResponse {
data: {
authorId: string;
bookmarks: number;
createdUtc: number;
id: string;
likes: number;
media?: {
height?: number;
type: string;
url: string;
videoUrl?: string;
width?: number;
}[];
quotes: number;
replies: number;
retweets: number;
text: string;
views: number | null;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/twitter.tweet \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/NASA/status/1800000000000000000"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| url | string | "https://x.com/NASA/status/1800000000000000000"Canonical x.com or twitter.com status URL with a numeric tweet ID, including /i/web/status and media-share variants. |
| requireFields | array | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `media` or `videoUrl`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a tweet that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.id | string | "1800000000000000000" |
| data.text | string | "Liftoff! 🚀" |
| data.authorId | string | "11348282" |
| data.likescan require | number | 142000 |
| data.retweetscan require | number | 21400 |
| data.repliescan require | number | 3900 |
| data.quotescan require | number | 1200 |
| data.bookmarkscan require | number | 8600 |
| data.viewscan require | number | 9400000 |
| data.createdAt | string | "Sun Jun 09 13:45:00 +0000 2024" |
| Price | ||
| Price per request | USD | $0.00022 |
| Price /1k req | USD | $0.22 |
FAQ
About the X / Twitter Tweet API
The AnyAPI X / Twitter Tweet API returns X / Twitter tweet data as normalized JSON from one POST call to /v1/run/twitter.tweet. Full detail for a single tweet by URL: text, author id, and engagement counts (likes, retweets, replies, quotes, bookmarks, views). AnyAPI routes each request across 4 sources and falls back automatically when one fails. It costs from $0.22 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of X / Twitter tweet calls through AnyAPI succeeded, with a median response time of 1.3 seconds across 222 measured calls.