X / Twitter API

X / Twitter Tweet API

Full detail for a single tweet by URL: text, author id, and engagement counts (likes, retweets, replies, quotes, bookmarks, views).

POST/v1/run/twitter.tweet
Uptime
100.00%
30d · 222 calls
Requests
222
30d · weekly, last 12 wks
Response
1.3s
median · 30d

Try it

Make your first request

requireFieldsarray
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.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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"
  }
}
Response interface
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 30d
POST /v1/run/twitter.tweet
curl -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"}'
FieldTypeExample value
Request body
urlstring"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.
requireFieldsarrayOptional; 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
foundbooleantrue
dataobject
data.idstring"1800000000000000000"
data.textstring"Liftoff! 🚀"
data.authorIdstring"11348282"
data.likescan requirenumber142000
data.retweetscan requirenumber21400
data.repliescan requirenumber3900
data.quotescan requirenumber1200
data.bookmarkscan requirenumber8600
data.viewscan requirenumber9400000
data.createdAtstring"Sun Jun 09 13:45:00 +0000 2024"
Price
Price per requestUSD$0.00022
Price /1k reqUSD$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.

It costs from $0.22 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Full detail for a single tweet by URL: text, author id, and engagement counts (likes, retweets, replies, quotes, bookmarks, views). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.