Skip to main content
POST
/
twitter
/
tweets
/
thread_by_id
Get Tweet Thread by ID
curl --request POST \
  --url https://api.twexapi.io/twitter/tweets/thread_by_id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tweet_id": "<string>",
  "max_items": 40,
  "fields": [
    "<string>"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tweet_id
string
required

The root tweet ID to fetch the thread for

max_items
integer
default:40

Max number of thread tweets to return

Required range: 1 <= x <= 200
fields
string[] | null

Fields to include in each tweet. If omitted, all fields are returned.

Response

A list of tweets in the thread, sorted by latest.