GET /2/tweets/{tweet_id}/timeline
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/x_unified_api/2/tweets/{tweet_id}/timelineCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeRead a conversation including its anchor post
Parameters
| name | in | type | description | |
|---|---|---|---|---|
expansions | query | str | optional | example: author_id |
max_results | query | int | optional | default: 20example: 20 |
tweet_fields | query | str | optional | example: created_at,author_username,url |
user_fields | query | str | optional | example: name,username |
tweet_id | path | str | required | example: 20 |
Response
type: object
pagination: none
sample: {
"data": "array[1]",
"includes": "null",
"meta": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/x_unified_api/2/tweets/20/timeline?expansions=author_id&max_results=20&tweet_fields=created_at%2Cauthor_username%2Curl&user_fields=name%2Cusername"