# Get post images

Extract images from a specific Tumblr post

- Platform: [Tumblr](https://docs.upscrape.com/docs/platforms/tumblr)
- Capability ID: `tumblr.post-images.get`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "post_id": "802275442449170432",
    "username": "ashishbishnoi-blog"
  },
  "capability": "tumblr.post-images.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `post_id` | `string` | Yes | Numeric post ID |
| `username` | `string` | Yes | Tumblr username |

### Example input

```json
{
  "post_id": "802275442449170432",
  "username": "ashishbishnoi-blog"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "images": [
    {
      "height": 2340,
      "mediaKey": "63f8873182d3dbe71e1fc44f68ee7092:0a6507105c92078e-9c",
      "postId": "802275442449170432",
      "type": "image/jpeg",
      "url": "https://64.media.tumblr.com/63f8873182d3dbe71e1fc44f68ee7092/0a6507105c92078e-9c/s2048x3072/[redacted:token].jpg",
      "width": 1080
    },
    {
      "height": 1632,
      "mediaKey": "f796ecf59658c395a0e30d743a7f8f5e:0a6507105c92078e-88",
      "postId": "802275442449170432",
      "type": "image/jpeg",
      "url": "https://64.media.tumblr.com/f796ecf59658c395a0e30d743a7f8f5e/0a6507105c92078e-88/s1280x1920/[redacted:token].jpg",
      "width": 1224
    },
    {
      "height": 1475,
      "mediaKey": "f4f564af10009c1a89b116071fd50ae9:0a6507105c92078e-5e",
      "postId": "802275442449170432",
      "type": "image/jpeg",
      "url": "https://64.media.tumblr.com/f4f564af10009c1a89b116071fd50ae9/0a6507105c92078e-5e/s1280x1920/[redacted:token].jpg",
      "width": 1179
    }
  ],
  "postId": "802275442449170432",
  "postUrl": "https://www.tumblr.com/ashishbishnoi-blog/802275442449170432",
  "totalCount": 4
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `images` | `array` | 3 items |
| `images` | `array` | 3 items |
| `postId` | `string` | 802275442449170432 |
| `postUrl` | `string` | https://www.tumblr.com/ashishbishnoi-blog/802275442449170432 |
| `totalCount` | `integer` | 4 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
