# List deals

Explore current deals and browse deal categories.

- Platform: [eBay](https://docs.upscrape.com/docs/platforms/ebay)
- Capability ID: `ebay.deals.list`
- Cost: 1 credit per request
- Maximum runtime: 180 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": 60
  },
  "capability": "ebay.deals.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `string` | No | Optional category identifier returned by this capability. |
| `limit` | `integer` | No | Maximum number of results to return. |

### Example input

```json
{
  "limit": 60
}
```

## 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
{
  "available_count": 117,
  "categories": [
    {
      "category": "tech",
      "name": "Tech",
      "url": "https://www.ebay.com/deals/tech"
    },
    {
      "category": "tech/cell-phones",
      "name": "Cell Phones",
      "url": "https://www.ebay.com/deals/tech/cell-phones"
    },
    {
      "category": "tech/laptops-netbooks",
      "name": "Laptops & Netbooks",
      "url": "https://www.ebay.com/deals/tech/laptops-netbooks"
    }
  ],
  "count": 60,
  "deals": [
    {
      "currency": "USD",
      "image_url": "https://i.ebayimg.com/images/g/37MAAeSwALxonOJg/s-l300.png",
      "item_id": "157242038093",
      "price": "$375.99",
      "promotion": "Almost gone",
      "quantity_available": 221,
      "sponsored": false,
      "title": "Apple iPad 11 A16 (2025) 11\" 128GB / 256GB / 512GB WiFi or Cellular - Very Good",
      "url": "https://www.ebay.com/itm/157242038093"
    },
    {
      "currency": "USD",
      "discount_percent": 60,
      "image_url": "https://i.ebayimg.com/images/g/XyEAAOSwDkZn83iv/s-l300.jpg",
      "item_id": "386708545260",
      "price": "$79.99",
      "promotion": "Almost gone",
      "quantity_available": 8996,
      "sponsored": false,
      "title": "eufy SoloCam S3 Solar Wireless Security Camera 360°PTZ 3K Dual-Cam Night Vision",
      "url": "https://www.ebay.com/itm/386708545260"
    },
    {
      "currency": "USD",
      "discount_percent": 41,
      "image_url": "https://i.ebayimg.com/images/g/vbQAAeSwGDJqmEnw/s-l300.jpg",
      "item_id": "357888273105",
      "price": "$199.99",
      "promotion": "Almost gone",
      "quantity_available": 1155,
      "sponsored": false,
      "title": "Nintendo Switch Gaming Console 32GB + 1 Year Warranty 🛡️ | 2-Day Shipping! 📦✈️",
      "url": "https://www.ebay.com/itm/357888273105"
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `available_count` | `integer` | 117 |
| `categories` | `array` | 3 items |
| `categories` | `array` | 3 items |
| `count` | `integer` | 60 |
| `deals` | `array` | 3 items |
| `deals` | `array` | 3 items |

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