# Item recommendations

Read recommended listings and promotions for an item.

- Platform: [eBay](https://docs.upscrape.com/docs/platforms/ebay)
- Capability ID: `ebay.item.promotions`
- 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 $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "item_id": "283987164379"
  },
  "capability": "ebay.item.promotions"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `item_id` | `string` | Yes | Item identifier. |

### Example input

```json
{
  "item_id": "283987164379"
}
```

## 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
{
  "modules": [
    {
      "cards": [
        {
          "image_url": "https://i.ebayimg.com/thumbs/images/g/fl8AAeSwW4tqf4nU/s-l500.jpg",
          "item_id": "168614353575",
          "price": "$199.00",
          "shipping": "Free delivery",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/168614353575",
          "text": [
            "$199.00",
            "95 sold",
            "ALMOST GONE"
          ],
          "title": "APPLE MACBOOK PRO 15 | 16GB | 128GB SSD | i7 | RETINA | BIG SUR | WARRANTY |"
        },
        {
          "image_url": "https://i.ebayimg.com/thumbs/images/g/ofgAAOSwqXJoB~~g/s-l500.jpg",
          "item_id": "306264079646",
          "price": "$168.00",
          "shipping": "Free delivery",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/306264079646",
          "text": [
            "$168.00",
            "Apple MPXQ2LL/A MacBook Pro 13\" 2.3 GHz Core i5 8GB RAM NO  SSD",
            "Buy It Now"
          ],
          "title": "Apple MPXQ2LL/A MacBook Pro 13\" 2.3 GHz Core i5 8GB RAM NO SSD"
        },
        {
          "image_url": "https://i.ebayimg.com/thumbs/images/g/DfwAAeSw0Bhqpv03/s-l500.jpg",
          "item_id": "267782556451",
          "price": "$229.00",
          "shipping": "Free delivery",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/267782556451",
          "text": [
            "$229.00",
            "Buy It Now",
            "Free delivery"
          ],
          "title": "HP ProBook 440 G7 14\" FHD i5-10310U 16GB RAM 256GB SSD Windows 11 Pro Laptop"
        }
      ],
      "placement_id": "101878",
      "position": 0
    },
    {
      "cards": [
        {
          "image_url": "https://i.ebayimg.com/thumbs/images/g/zCIAAeSw1pxqIGR-/s-l500.jpg",
          "item_id": "298041876436",
          "price": "$289.00",
          "shipping": "Free delivery",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/298041876436",
          "text": [
            "$289.00",
            "20 watchers",
            "Buy It Now"
          ],
          "title": "Dell Latitude 14” FHD Core i5 Laptop PC Up To 32GB RAM 1TB SSD Windows 11"
        },
        {
          "image_url": "https://i.ebayimg.com/thumbs/images/g/SlEAAeSwZSxpZHhX/s-l500.jpg",
          "item_id": "306706076703",
          "price": "$219.00",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/306706076703",
          "text": [
            "$219.00",
            "+ $10.00 delivery",
            "Buy It Now"
          ],
          "title": "Dell Latitude 5410 i5-10310U 1.7GHz 16GB RAM 256GB SSD Win 11 Pro"
        },
        {
          "discount": "89% off",
          "image_url": "https://i.ebayimg.com/thumbs/images/g/GT0AAeSwm0BpsDYs/s-l500.jpg",
          "item_id": "157824595700",
          "previous_price": "$1,799.00",
          "price": "$199.99",
          "shipping": "Free delivery",
          "target_domain": "www.ebay.com",
          "target_url": "https://www.ebay.com/itm/157824595700",
          "text": [
            "$1,799.00",
            "$199.99",
            "27 sold"
          ],
          "title": "Apple MacBook Pro 13\" Core i5-7360U 2.3GHz 16GB RAM 256GB SSD Space Gray - Good"
        }
      ],
      "placement_id": "101879",
      "position": 1
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `modules` | `array` | 2 items |
| `modules` | `array` | 2 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)
