GroundsocialDocs

API · X

GET /x/tweets/{id}

One post (tweet) with its author, metrics incl. views, media, quoted post and top replies.

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

One post (tweet) with its author, metrics incl. views, media, quoted post and top replies.

Path parameters

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

Responses

StatusMeaningSchema
200The post, what it refers to, and its top replies.XTweetResponse
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

XTweetResponse fields

FieldTypeDescription
dataXTweet
includesXIncludesObjects the response refers to by id, each once: authors, quoted and reposted posts, media, polls.
repliesXTweet[]The top replies X shows a logged-out visitor under the post (usually a handful, ranked by X). Their authors and media are in includes. Not the full thread.

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