Skip to content
cheapxapi
All endpoints

Get tweet by ID

GET/twitter/tweets

One tweet by its numeric ID. Exactly one ID per request.

Price: $0.0006 per request.

Parameters

  • tweet_idsstringrequired

    Exactly one numeric tweet ID per request.

    Example: 1585341984679469056

Example request

curl "https://api.cheapxapi.com/twitter/tweets?tweet_ids=1585341984679469056" \
  -H "x-api-key: YOUR_KEY"

Response

Charged. Check status: success means data was returned; error (e.g. user not found) is also HTTP 200.

FieldType
tweetsarray of Tweet
type"tweet"
idstring
urlstring
textstring
sourcestring
retweetCountinteger
replyCountinteger
likeCountinteger
quoteCountinteger
viewCountinteger
createdAtstring
langstring
bookmarkCountinteger
isReplyboolean
inReplyToIdstring
conversationIdstring
displayTextRangearray of integer
inReplyToUserIdstring
inReplyToUsernamestring
authorUserInfo
entitiesTweetEntities
quoted_tweetTweet
retweeted_tweetTweet
isLimitedReplyboolean
status"success" | "error"
msgstring
codeinteger

Status codes

200
Charged. Check status: success means data was returned; error (e.g. user not found) is also HTTP 200.
400
Invalid parameters (charged), or API key placed in the URL (not charged).
401
Missing or invalid API key (not charged).
402
Insufficient balance (not charged).
403
Account disabled (not charged).
404
Unknown endpoint (charged), or the requested item could not be found (not charged). Note: many endpoints report a missing user/tweet as HTTP 200 with "status":"error" instead; those are charged.
405
Only GET is supported (not charged).
429
Rate limit exceeded (not charged). Retry after the time in the Retry-After header.
503
Temporary service problem, or the endpoint is temporarily unavailable (not charged). Retry with exponential backoff.