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/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 121 calls
- Latency p50
- 2.9 sp95 4.2 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.twitter-get-user-posts-v1?cursor=0&restId=44196397PreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
cursor | string | Opcional | Pagination cursor for navigating through long timelines. | |
restId | string | Obrigatório | The unique numeric identifier (Rest ID) for the X user. | 44196397 |
- Parâmetros de consulta
cursorstringOpcionalPagination cursor for navigating through long timelines.
restIdstringObrigatórioThe unique numeric identifier (Rest ID) for the X user.
Exemplo:
44196397
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.01476/success, incluindo a taxa de serviço.