# List deals

Return Amazon deals from the page's embedded product-search response state.

- Platform: [Amazon Commerce](https://docs.upscrape.com/docs/platforms/amazon)
- Capability ID: `amazon.deals.list`
- Cost: 1 credit per request
- Maximum runtime: 45 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 YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 30,
    "start_index": 0
  },
  "capability": "amazon.deals.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Maximum number of results to return. |
| `start_index` | `integer` | No | Start index supplied for this request. |

### Example input

```json
{
  "limit": 30,
  "start_index": 0
}
```

## 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 redacted fixture is an example, not a fixed response schema.

```json
{
  "deals": [
    {
      "asin": "B0GSKCX8YM",
      "currency": "USD",
      "discount_percentage": 21,
      "image_url": "https://m.media-amazon.com/images/I/71pEGXyb2ZL.jpg",
      "position": 1,
      "price": "2199.99",
      "savings": "21% off",
      "title": "Acer Predator Helios Neo 18 AI Gaming Laptop | Intel Core Ultra 9 Processor 275HX | NVIDIA GeForce RTX 5070 Ti | 18\" WQXGA 240Hz G-SYNC | 32GB DDR5 | 2TB Gen 4 SSD | Killer Wi-Fi 6E | PHN18-72-9474",
      "url": "https://www.amazon.com/dp/B0GSKCX8YM"
    },
    {
      "asin": "B0GWFN7Y8T",
      "currency": "USD",
      "discount_percentage": 32,
      "image_url": "https://m.media-amazon.com/images/I/71xkge21xzL.jpg",
      "position": 2,
      "price": "47.49",
      "savings": "32% off",
      "title": "Pocket Hose Ballistic 50 FT Expandable Garden Hose, No-Kink, As Seen on TV | Anti-burst sleeve reinforced with bulletproof fiber, 360° swiveling pocket pivot connector, lightweight compact design",
      "url": "https://www.amazon.com/dp/B0GWFN7Y8T"
    },
    {
      "asin": "B0FHJ7TKZM",
      "currency": "USD",
      "discount_percentage": 30,
      "image_url": "https://m.media-amazon.com/images/I/616Leg1GwuL.jpg",
      "position": 3,
      "price": "69.99",
      "savings": "30% off",
      "title": "Ring Battery Doorbell 2K (newest model) Retinal 2K with wide-angle video, up to 6x Enhanced Zoom, Two-Way Talk, and Built-In Battery, Speckled Gray",
      "url": "https://www.amazon.com/dp/B0FHJ7TKZM"
    }
  ],
  "has_next": true,
  "next_index": 30,
  "source": "embedded productSearchResponse state",
  "start_index": 0
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `deals` | `array` | 3 items |
| `deals` | `array` | 3 items |
| `has_next` | `boolean` | true |
| `next_index` | `integer` | 30 |
| `source` | `string` | embedded productSearchResponse state |
| `start_index` | `integer` | 0 |

## 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)
