# List what a run delivered

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

GET `/v1/runs/{id}/items`

The items a Run delivered, each with its own status, charge and — when it failed — the problem body explaining why. This is how a `partial` Run says what did and did not arrive.

## Price

Free: the charge happened once, when the work did.

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | path | `string` | Required | — | Run id. |
| `limit` | query | `integer` min 1; max 100 | Optional | `25` | Items per page. |
| `cursor` | query | `string` | Optional | — | Opaque `next_cursor` from the previous page. |
| `type` | query | `string` one of `videos`, `creators`, `hashtags`, `sounds`, `ads` | Optional | — | `videos`, `creators`, `hashtags`, `sounds` or `ads` (singular accepted too). A Meta ad search has one `ad` item per Ad delivered, with the Ad as its `payload`. |

## Responses

### 200 OK

`{ items, next_cursor }`.

object

A page of a list. `items` holds the page; pass `next_cursor` back as `cursor` for the next one.

- `next_cursor` string required nullable Pass back as `cursor`. Null on the last page.
- `items` array of object required
  - `id` string required
  - `type` string required `video`, `creator`, `hashtag` or `sound`.
  - `status` string required one of `pending`, `completed`, `failed`
  - `position` integer required
  - `charge_credits` integer required
  - `cached` boolean required
  - `video` object required nullable
    - `platform` string required
    - `id` string required
    - `url` string required nullable
    - `description` string required
  - `subject_id` string nullable
  - `payload` any
  - `error` object Why this one item failed. Its fields are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 400 Bad Request

`invalid_request` for a `cursor` that is not a `next_cursor` this API issued. Nothing is charged.

Code: `invalid_request`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 401 Unauthorized

Codes: `missing_authorization`, `invalid_key`, `key_revoked`, `key_expired`, `invalid_token`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 404 Not Found

`not_found` — including anything belonging to another Customer.

Code: `not_found`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

## Related guides

- [Pagination](https://www.shortsintel.com/docs/concepts/pagination): Following `next_cursor` through a list.

## Request samples

curl:

```bash
curl "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b/items?limit=25&type=videos" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b/items?limit=25&type=videos",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b/items?limit=25&type=videos",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

200 · `{ items, next_cursor }`.

```json
{
  "items": [
    {
      "id": "itm_0a91cc37e2",
      "type": "video",
      "status": "completed",
      "position": 0,
      "charge_credits": 0,
      "cached": false,
      "video": {
        "platform": "tiktok",
        "id": "7300000000000000000",
        "url": "https://www.tiktok.com/@someone/video/7300000000000000000",
        "description": "3 minutes at 4°C every morning for 30 days. Here is what actually changed. #coldplunge #recovery"
      }
    },
    {
      "id": "itm_0a91cc37f5",
      "type": "video",
      "status": "failed",
      "position": 37,
      "charge_credits": 0,
      "cached": false,
      "video": {
        "platform": "tiktok",
        "id": "7300000000000000077",
        "url": "https://www.tiktok.com/@thirdone/video/7300000000000000077",
        "description": "cold plunge fails compilation"
      },
      "error": {
        "type": "https://www.shortsintel.com/docs/reference/errors/media_unavailable",
        "title": "Media unavailable",
        "status": 502,
        "code": "media_unavailable",
        "detail": "The video file could not be fetched, so it was not analysed and not charged for.",
        "retryable": false,
        "action": "Tell the Customer the video is deleted, private or blocked; pick another."
      }
    }
  ],
  "next_cursor": "eyJwIjozOH0"
}
```

[Previous Poll or re-read a run](https://www.shortsintel.com/docs/reference/runs/get-run)
