FETCHAPI

List an X user's posts with photos or video API

One call returns a user's profile plus tweets that carry media. One item in timeline[] is a tweet with photo or video. Our call held 10 tweets (3 shown plus '… 7 more'). Pass next_cursor as the cursor parameter for the next page.

1 live route 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
User's MediaGET usermedia.php$0.00009$0.09 / 1k calls✓ 2026-10-06pricing ↗

What it returns

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

One call returns a user's profile plus tweets that carry media. One item in timeline[] is a tweet with photo or video. Our call held 10 tweets (3 shown plus '… 7 more'). Pass next_cursor as the cursor parameter for the next page.
user.rest_iduser iduser.profilehandletimeline[].tweet_idtweet idtimeline[].texttweet texttimeline[].mediaphoto or video objectstimeline[].created_atpost timetimeline[].viewsview count (string)timeline[].favoriteslike countnext_cursorcursor for the next page

Paging: read `next_cursor` from the answer and send it back as `cursor=` for the next page; stop when it is empty or repeats. From MCP: call_endpoint("rapidapi-twitter-api45.user_s_media", params, pages=3) follows it for you.

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/usermedia.php$0.00009 / call✓ working · tested 2026-10-061.90 s latency
Parameters
ParameterTypeNotes
rest_idstring · queryoptional
cursorstring · queryoptional
screennamestring · queryrequireddefault elonmusk
HTTP
curl "https://fetchapi.co/api/gw/rapidapi-twitter-api45/usermedia.php?screenname=elonmusk" \
  -H "x-api-key: YOUR_KEY"
MCP
call_endpoint("rapidapi-twitter-api45.user_s_media", {"screenname": "elonmusk"})
Real example answer (trimmed) · 2026-10-03
{
  "user": {
    "id": "44196397",
    "desc": "https://t.co/ZdBx5WABYx",
    "name": "Elon Musk",
    "avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
    "status": "active",
    "friends": 1415,
    "profile": "elonmusk",
    "rest_id": "44196397",
    "location": "",
    "protected": false,
    "sub_count": 241745139,
    "affiliates": {
      "label": {
        "url": {
          "url": "https://twitter.com/X",
          "urlType": "DeepLink"
        },
        "badge": {
          "url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
        },
        "description": "X",
        "userLabelType": "BusinessLabel",
        "userLabelDisplayType": "Badge"
      }
    },
    "created_at": "Tue Jun 02 20:12:29 +0000 2009",
    "media_count": 4728,
    "…": "6 more fields"
  },
  "status": "ok",
  "timeline": [
    {
      "lang": "en",
      "text": "Starship deploying Starlink V3 satellites https://t.co/TG7b8iHYkY",
      "media": {
        "photo": [
          {
            "id": "2106454804180455424",
            "media_url_https": "https://pbs.twimg.com/media/HTuhe-KXUAANxEg.jpg"
          }
        ]
      },
      "views": "467993",
      "author": {
        "name": "Elon Musk",
        "avatar": null,
        "rest_id": "44196397",
        "screen_name": "elonmusk",
        "blue_verified": true
      },
      "quotes": 84,
      "source": null,
      "replies": 619,
      "retweets": 476,
      "tweet_id": "2106454808676716916",
      "bookmarks": 132,
      "favorites": 3762,
      "sensitive": false,
      "created_at": "Sat Oct 03 18:42:17 +0000 2026",
      "…": "1 more fields"
    },
    {
      "lang": "en",
      "text": "Both @United and @AmericanAir have @Starlink! https://t.co/7EfINWq1nU",
      "media": {
        "photo": [
          {
            "id": "2105680999044513792",
            "media_url_https": "https://pbs.twimg.com/media/HTjhtlZWgAA7AeZ.jpg"
          }
        ]
      },
      "views": "3121760",
      "author": {
        "name": "Elon Musk",
        "avatar": null,
        "rest_id": "44196397",
        "screen_name": "elonmusk",
        "blue_verified": true
      },
      "quotes": 324,
      "source": null,
      "replies": 1789,
      "retweets": 4918,
      "tweet_id": "2105681004371542326",
      "bookmarks": 742,
      "favorites": 47111,
      "sensitive": false,
      "created_at": "Thu Oct 01 15:27:27 +0000 2026",
      "…": "1 more fields"
    },
    "… 2 more"
  ],
  "next_cursor": "DAABCgABHTuluXd___0KAAIdHR6SixuhZQgAAwAAAAIAAA"
}

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.