X (Twitter) user posts by numeric user id
justoneapi.x.twitter-get-user-posts-v1Retrieves posts published by an X (Twitter) user identified by Rest ID, with cursor pagination.
- Price
- $0.01476/successAt provider cost
- Success rate
- 100%Last 30 days · 121 calls
- Latency p50
- 2.9 sp95 4.2 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.twitter-get-user-posts-v1?cursor=0&restId=44196397PreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
cursor | string | Optional | Pagination cursor for navigating through long timelines. | |
restId | string | Required | The unique numeric identifier (Rest ID) for the X user. | 44196397 |
- Query parameters
cursorstringOptionalPagination cursor for navigating through long timelines.
restIdstringRequiredThe unique numeric identifier (Rest ID) for the X user.
Example:
44196397
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.twitter-get-user-posts-v1?cursor=0&restId=44196397' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.twitter-get-user-posts-v1?cursor=0&restId=44196397",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.twitter-get-user-posts-v1?cursor=0&restId=44196397", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.01476/success, including the service fee.