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

Recent posts of an X (Twitter) user

|  |  |
| --- | --- |
| Tool id | `tikhub.x-user-posts` |
| Platform | [X (Twitter)](https://www.orcarouter.ai/tools/x.md) |
| Capability | [User's posts](https://www.orcarouter.ai/tools/x/user-posts.md) |
| Price | $0.0011 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | yes |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | string | no | pagination cursor from the previous response |
| `rest_id` | integer | no | numeric user id |
| `screen_name` | string | no |  |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/tikhub.x-user-posts/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/tikhub.x-user-posts/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [X / Twitter User Tweets and Replies](https://www.orcarouter.ai/tools/x/user-posts/x-user-posts.md) | — | $0.000495 per call | OK |
| [X / Twitter User Posts](https://www.orcarouter.ai/tools/x/user-posts/x-user-posts-timeline.md) | — | $0.000495 per call | OK |
| [X (Twitter) users who reposted by tweet id](https://www.orcarouter.ai/tools/x/user-posts/x-twitter-web-fetch-retweet-user-list.md) | — | $0.0011 per call | OK |
| [X (Twitter) user's media posts by handle](https://www.orcarouter.ai/tools/x/user-posts/x-twitter-web-fetch-user-media.md) | — | $0.0011 per call | OK |
| [X (Twitter) user's replies by handle](https://www.orcarouter.ai/tools/x/user-posts/x-twitter-web-fetch-user-tweet-replies.md) | — | $0.0011 per call | OK |
| [X (Twitter) user tweets by username](https://www.orcarouter.ai/tools/x/user-posts/x-user-posts-35894c.md) | — | $0.002068 per credit | OK |
| [X (Twitter) user posts by numeric user id](https://www.orcarouter.ai/tools/x/user-posts/x-twitter-get-user-posts-v1.md) | — | $0.016236 per call | OK |

## FAQ

### How much does X (Twitter) user's posts by handle or user id cost?

X (Twitter) user's posts by handle or user id costs $0.0011 per call: 1,000 calls cost $1.10.

### What does a $10 budget buy with X (Twitter) user's posts by handle or user id?

About 9090 calls at $0.0011 per call.

### What inputs does X (Twitter) user's posts by handle or user id need?

It has no required inputs.

### How do I call X (Twitter) user's posts by handle or user id?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/x/user-posts/x-user-posts-46f690
