X Post Info (twitter)
Mit Dataflow in großen Mengen nutzenFühren Sie diesen Endpunkt über eine Datei oder eine Liste aus, einmalig oder nach Zeitplan.
X Post Info API: fetch public tweet data (text, likes, retweets, views, media) from a status URL or tweet ID via browser rendering.
Credit cost: 2 credits per call
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringX tweet to retrieve. Accepts a full status URL or numeric tweet ID.
Examples:
https://x.com/example-user/status/00000000000000000012070215849970119090Notes:
- Legacy
twitter.comstatus URLs are supported. created_atandnamemay be null when not shown on the rendered page.
return_page_source?booleanWhen true, return the raw HTML page source as {"result": "..."} instead of structured JSON. Defaults to false.
fields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}. The call is billed once, when the job completes. fields does not apply to asynchronous results.
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body. Billing is unchanged: a billable error (e.g. 404) is still charged.
falseSuccessful response
application/json- response
url?stringname?nulltext?stringmedia?array<string>tweet_id?stringusername?stringverified?booleancreated_at?nulllike_count?integerview_count?integerreply_count?integerretweet_count?integercurl -X GET 'https://api.piloterr.com/v2/x/post/info?query=https%3A%2F%2Fx.com%2Fexample-user%2Fstatus%2F0000000000000000001'{
"url": "https://x.com/example-user/status/0000000000000000001",
"name": null,
"text": "Grok Imagine Video has become the clear leader in @vercel AI Gateway, now amounting to ~50% of videos generated by developers 🤯 vercel.com/ai-gateway/lea…",
"media": [
"https://pbs.twimg.com/media/HLrgznVbwAAG4y8.png"
],
"tweet_id": "0000000000000000001",
"username": "example-user",
"verified": true,
"created_at": null,
"like_count": 2517,
"view_count": 232,
"reply_count": 279,
"retweet_count": 791
}