X (Twitter)

Photo

Download the photos of a post (up to four) at original size.

Endpoint

GET
/s/twitter/post

Send your API key in the X-API-Key header. twitter is the usual service slug; use the one shown on your subscription if it differs.

Query parameters

NameDescription
urlrequired
Link to the post. You can pass the numeric ID as id instead.Example: https://x.com/NASA/status/1834567890123456790

Example request

curl '/s/twitter/post?url=https%3A%2F%2Fx.com%2FNASA%2Fstatus%2F1834567890123456790' \
  -H 'X-API-Key: YOUR_API_KEY'

Example response

The result is in data. Fields the platform didn't report are left out. Field reference: response shapes.

{
  "data": {
    "platform": "twitter",
    "id": "1834567890123456790",
    "url": "https://x.com/NASA/status/1834567890123456790",
    "type": "tweet",
    "text": "Two views of the same galaxy",
    "createdAt": "2026-11-09T10:15:00Z",
    "author": {
      "id": "11348282",
      "username": "NASA",
      "name": "NASA",
      "avatar": "https://cdn.example/avatar.jpg",
      "verified": true
    },
    "media": [
      {
        "type": "image",
        "url": "https://pbs.twimg.example/media/A1.jpg?name=orig",
        "width": 4096,
        "height": 2731
      },
      {
        "type": "image",
        "url": "https://pbs.twimg.example/media/A2.jpg?name=orig",
        "width": 4096,
        "height": 2731
      }
    ],
    "stats": {
      "likes": 21000,
      "comments": 400,
      "reposts": 3300,
      "quotes": 120,
      "views": 900000
    }
  }
}

Notes