xAPIs.dev
API Reference · v2
Free Tools{ }OpenAPI YAMLGet API key
API Reference / Tweet / Get tweets by IDs

Get tweets by IDs

GET/twitter/tweets1 credit

Retrieve one or more tweets by ID with full metadata: author, engagement metrics, and media. The sample response below is captured from the live API. List endpoints paginate with `has_next_page` and `next_cursor`.

Authentication required
Send your key in the x-api-key header. Requests without a valid key return 401.

Query parameters

tweet_ids
stringrequired
Comma-separated list of numeric tweet IDs.

Response fields

tweetsarray
Array of tweet objects with engagement metrics and author info.
statusstring
Request status: "success" or "error".
msgstring
Status message from the upstream.
codeinteger
Numeric status code (0 = OK).
Request
curl https://v2.xapis.dev/twitter/tweets \
  -G --data-urlencode "tweet_ids=2074521451474895265" \
  -H "x-api-key: $XAPIS_KEY"
Response200 OK
application/json
{
  "tweets": [
    {
      "type": "tweet",
      "id": "2074521451474895265",
      "url": "https://x.com/elonmusk/status/2074521451474895265",
      "twitterUrl": "https://twitter.com/elonmusk/status/2074521451474895265",
      "text": "Why did the media push this lie so hard?",
      "source": "",
      "retweetCount": 9321,
      "replyCount": 3850,
      "likeCount": 52515,
      "quoteCount": 251,
      "viewCount": 3098090,
      "createdAt": "Tue Jul 07 15:50:31 +0000 2026",
      "lang": "en",
      "bookmarkCount": 1622,
      "isReply": false,
      "inReplyToId": "",
      "conversationId": "2074521451474895265",
      "displayTextRange": [
        0
      ],
      "inReplyToUserId": "",
      "inReplyToUsername": "",
      "isPinned": false,
      "author": {
        "type": "user",
        "userName": "elonmusk",
        "url": "https://x.com/elonmusk",
        "twitterUrl": "https://twitter.com/elonmusk",
        "id": "44196397",
        "name": "Elon Musk",
        "isVerified": false,
        "isBlueVerified": true,
        "verifiedType": null,
        "profilePicture": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg",
        "coverPicture": "https://pbs.twimg.com/profile_banners/44196397/1774145451",
        "description": "Starmind",
        "location": "",
        "followers": 240742423,
        "following": 1366,
        "status": "",
        "canDm": false,
        "canMediaTag": false,
        "createdAt": "Tue Jun 02 20:12:29 +0000 2009",
        "entities": {
          "description": "…"
        },
        "fastFollowersCount": 0,
        "favouritesCount": 0,
        "hasCustomTimelines": true,
        "isTranslator": false,
        "…": "…"
      },
      "extendedEntities": {},
      "card": null,
      "…": "…"
    }
  ],
  "status": "success",
  "msg": "success",
  "code": 0
}
base url · https://v2.xapis.dev
Ready to call Get tweets by IDs?