GroundsocialDocs

API · X

GET /x/tweets/{id}/transcript

The transcript of the video in an X post, from the captions X serves with it.

RequestGET /v1/x/tweets/{id}/transcript
Operation idx.tweet.transcript
Cost2 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

The transcript of the video in an X post, from the captions X serves with it.

Path parameters

NameTypeRequiredDescription
idstringyesA post id or a post URL (x.com or twitter.com). Example: 1585341984679469056.

Query parameters

NameTypeRequiredDescription
langstringnoPreferred caption language (BCP 47), e.g. en. Example: en.

Responses

StatusMeaningSchema
200The transcript and the caption tracks available.XTranscriptResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The post or account does not exist, was deleted, or is suspended.Error
429Too many requests. Wait for Retry-After seconds.Error
503X is temporarily unavailable. Retryable; nothing was charged.Error

XTranscriptResponse fields

FieldTypeDescription
dataobject
tracksXCaptionTrack[]Every caption track the video has; data is one of them.

Errors use one shape everywhere; see Errors for every code and what to do.