# X (Twitter) user's posts by handle or user id

TikHub

Recent posts of an X (Twitter) user

## 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 posts by handle or user id (tool ID: tikhub.user-posts). 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.

**Job:** [Get X (Twitter) posts and profiles](https://scrollport.com/tools/x-api)

**Current price:** $0.0025/request

**Availability:** Ready to run

## Tool details

**About this tool**

Recent posts of an X (Twitter) user 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. A post may omit quoted posts, reposts, mentions and media. These content-dependent fields are optional; the example retains the user identity and post ID, text and timestamp.

**Inputs and outputs**

### Input

`cursor` string · optional

pagination cursor from the previous response

minLength: 1 · maxLength: 4096

`rest_id` string · optional

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

minLength: 1 · maxLength: 25

`screen_name` string · optional

Value supplied for screen name.

minLength: 1 · maxLength: 500

### Output

`data` object

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.user-posts",
  "input": {
    "screen_name": "elonmusk"
  }
}
```

### Output

```
{
  "data": {
    "user": {
      "id": "44196397",
      "name": "Elon Musk",
      "profile": "elonmusk"
    },
    "status": "ok",
    "timeline": [
      {
        "text": "RT @_MaxQ_: Starship transiting the Sun this morning during Flight 14 — prior to this morning's mission, this has never been captured befor…",
        "tweet_id": "2104716406516228196",
        "created_at": "Mon Sep 28 23:34:29 +0000 2026"
      }
    ]
  }
}
```

**Errors and limitations**

- `invalid_input`: The lookup fields or limits are invalid.example: {"screen_name":"elonmusk"}
- `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.

---

Canonical page: https://scrollport.com/tools/providers/tikhub/user-posts
