# X (Twitter) Tweet Media

<p>Every photo and video attached to a tweet, including focus rects and crop candidates. Media URLs are only ever reported when they arrive in an upstream payload; no CDN path is ever synthesised.</p>

- **Documentation:** [https://scrappa.co/docs/x-twitter/x_twitter_tweet_media](https://scrappa.co/docs/x-twitter/x_twitter_tweet_media)
- **API group:** X (Twitter) API
- **Endpoint:** `GET https://scrappa.co/api/x-twitter/tweet/media`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | <p>Tweet id, or any public x.com status URL. A full status URL is accepted and the id is extracted from it.</p> |

## Example response

```json
{
    "id": "1234567890123456789",
    "media": [
        {
            "url": "https://pbs.twimg.com/media/example.jpg",
            "type": "photo",
            "cropped_url": "https://pbs.twimg.com/media/cropped_example.jpg",
            "focus_rects": [
                {
                    "h": 100,
                    "w": 100,
                    "x": 0,
                    "y": 0
                }
            ]
        }
    ]
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
