FETCHAPI

Get an X post by id API

One call returns one tweet by id, with text, counts, media and author. The answer is a single tweet, not a list; there is no cursor.

2 live routes on X, from $0.00009 per call. Every route below answered our last live test on 2026-10-06; the gateway re-tests them daily.

Get a keySee it in the catalogUse it from MCP

Price per call, by route

The upstream price you are metered at, cheapest first. A route without a published price says so.

ProviderEndpointPriceTested
twitter-api45RapidAPI listing
Tweet infoCHEAPESTGET tweet.php$0.00009$0.09 / 1k calls✓ 2026-10-06pricing ↗
twitter-api47RapidAPI listing
Tweet Details by IDsGET v3/tweet/details-by-ids$0.00019$0.19 / 1k calls✓ 2026-10-06pricing ↗

What it returns

From a real call to the cheapest route: twitter-api45.

One call returns one tweet by id, with text, counts, media and author. The answer is a single tweet, not a list; there is no cursor.
idtweet idtexttweet textcreated_atpost timelikeslike countretweetsretweet countrepliesreply countviewsview count (string)author.rest_idauthor user idauthor.screen_nameauthor handlemediaattached photos or video

Call it

HTTP with your key in x-api-key, or the call_endpoint tool of our MCP server.

GET /api/gw/rapidapi-twitter-api45/tweet.php$0.00009 / call✓ working · tested 2026-10-061.90 s latency
Parameters
ParameterTypeNotes
idstring · queryrequireddefault 1671370010743263233
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/tweet.php?id=1671370010743263233" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api45.tweet_info", {"id": "1671370010743263233"})
Real example answer (trimmed) · 2026-10-03
{
  "id": "1671370010743263233",
  "lang": "en",
  "text": "Watching Twitter videos on my TV only took me a few seconds to set up🤯\n\nAn awesome feature, if you’r…",
  "likes": 16163,
  "media": {
    "video": [
      {
        "id": "1671367628504309761",
        "duration": 8333,
        "variants": [
          {
            "url": "https://video.twimg.com/amplify_video/1671367628504309761/pl/i5UdEvopIWEUX7CF.m3u8?tag=14",
            "content_type": "application/x-mpegURL"
          },
          "… 3 more"
        ],
        "aspect_ratio": [
          9,
          "… 1 more"
        ],
        "original_info": {
          "width": 1080,
          "height": 1920,
          "focus_rects": []
        },
        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/1671367628504309761/img/WoU2L8IXtzfmhlq9.jpg"
      }
    ]
  },
  "views": "8427492",
  "author": {
    "name": "Mathias Føns",
    "image": "https://pbs.twimg.com/profile_images/1485391315819020292/1_3QNpYj_normal.jpg",
    "rest_id": "2337692699",
    "sub_count": 41022,
    "screen_name": "FonsDK",
    "verification": null,
    "blue_verified": true
  },
  "quotes": 206,
  "status": "active",
  "replies": 1272,
  "entities": {
    "urls": [],
    "media": [
      {
        "url": "https://t.co/r1LzZ5ovoD",
        "type": "video",
        "sizes": {
          "large": {
            "h": 1920,
            "w": 1080,
            "resize": "fit"
          },
          "small": {
            "h": 680,
            "w": 383,
            "resize": "fit"
          },
          "thumb": {
            "h": 150,
            "w": 150,
            "resize": "crop"
          },
          "medium": {
            "h": 1200,
            "w": 675,
            "resize": "fit"
          }
        },
        "id_str": "1671367628504309761",
        "indices": [
          148,
          "… 1 more"
        ],
        "media_key": "13_1671367628504309761",
        "video_info": {
          "variants": [
            {
              "url": "…",
              "content_type": "…"
            },
            "… 3 more"
          ],
          "aspect_ratio": [
            9,
            "… 1 more"
          ],
          "duration_millis": 8333
        },
        "display_url": "pic.x.com/r1LzZ5ovoD",
        "expanded_url": "https://x.com/FonsDK/status/1671370010743263233/video/1",
        "media_results": {
          "result": {
            "media_key": "13_1671367628504309761"
          }
        },
        "original_info": {
          "width": 1080,
          "height": 1920,
          "focus_rects": []
        },
        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/1671367628504309761/img/WoU2L8IXtzfmhlq9.jpg",
        "additional_media_info": {
          "monetizable": false
        },
        "ext_media_availability": {
          "status": "Available"
        }
      }
    ],
    "symbols": [],
    "hashtags": [],
    "timestamps": [],
    "user_mentions": [
      {
        "name": "Elon Musk",
        "id_str": "44196397",
        "indices": [
          138,
          "… 1 more"
        ],
        "screen_name": "elonmusk"
      }
    ]
  },
  "reply_to": null,
  "retweets": 1936,
  "bookmarks": 826,
  "…": "9 more fields"
}
Other routes for this job
twitter-api47 · Tweet Details by IDs$0.00019
GET /api/gw/rapidapi-twitter-api47/v3/tweet/details-by-ids$0.00019 / call✓ working · tested 2026-10-060.90 s latency
Parameters
ParameterTypeNotes
idsstring · queryrequireddefault 123,456,789e.g. 1991507072345944240
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api47/v3/tweet/details-by-ids?ids=1991507072345944240" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api47.tweet_details_by_ids", {"ids": "1991507072345944240"})

Related X APIs

All 36 X jobs →

One key for every API on this page.

Call it over HTTP or from any MCP client. Each key has a rate limit and a monthly cap; calls are metered at the upstream price.