Back to Get X (Twitter) posts and profiles

X (Twitter) user's media posts by handle

TikHub

Twitter: fetch user media (web)

Use this tool with your AI agent

  1. Copy the prompt
  2. Paste it into your agent
  3. Tell it what you need

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use X (Twitter) user's media posts by handle (tool ID: tikhub.twitter-web-fetch-user-media). Ask me for the details you need, then show me the result.

Already connected
Your agent can use that connection.
New user
Your agent will guide you through setup, sign-in and authorisation.

Provider access is included.

Connect your first agent to receive $1 trial credit.

Current price
$0.0025/request
Availability
Ready to run

Tool details

About this tool

Twitter: fetch user media (web) Retrieve one bounded result or page. Pagination is explicit; each follow-up page is another call. The catalog price is the maximum per request. Quotes use the selected limits. Completed requests cost their quote, including valid empty pages and no-match answers. Failed requests are uncharged. Read public social data without a connected social account. Results include reviewed business data and available pagination. The worked example shows selected fields from a recorded response, with at most one selected item from each list.

Inputs and outputs

Input

cursorstring · optional

Page Cursor

minLength: 1 · maxLength: 4096

rest_idstring · optional

Numeric X user ID, supplied as a string to preserve every digit.

minLength: 1 · maxLength: 25

screen_namestring · required

Screen Name

minLength: 1 · maxLength: 500

Output

dataobject

Returned data value.

Example request and output

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

Request

{
  "tool_id": "tikhub.twitter-web-fetch-user-media",
  "input": {
    "rest_id": "44196397",
    "screen_name": "elonmusk"
  }
}

Output

{
  "data": {
    "user": {
      "id": "44196397",
      "desc": "https://t.co/ZdBx5WABYx",
      "name": "Elon Musk",
      "profile": "elonmusk"
    },
    "status": "ok",
    "timeline": [
      {
        "text": "Another AI attack https://t.co/OwSKqztEec",
        "media": {
          "photo": [
            {
              "id": "2098789552185864200"
            }
          ]
        },
        "views": "2874148",
        "author": {
          "name": "Elon Musk",
          "rest_id": "44196397",
          "screen_name": "elonmusk"
        },
        "quotes": 289,
        "replies": 2235,
        "retweets": 1862,
        "tweet_id": "2098789559093858580",
        "bookmarks": 953,
        "favorites": 12050,
        "created_at": "Sat Sep 12 15:03:19 +0000 2026"
      }
    ]
  }
}
Errors and limitations
  • invalid_input: The lookup fields or limits are invalid.example: {"screen_name":"elonmusk","rest_id":"44196397"}
  • upstream_error: The provider could not complete a verified result; the wallet was not charged.Check the documented fields and contact Scrollport support with the run ID if needed.