# Get product detail

Refresh a Sainsbury's product by its ID or official URL with published shelf prices, unit prices and offers.

- Platform: [Sainsbury's Groceries](https://docs.upscrape.com/docs/platforms/sainsburys)
- Capability ID: `sainsburys.product.detail.get`
- Cost: 2 credits 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": {
    "product_id": "6010343"
  },
  "capability": "sainsburys.product.detail.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `product_id` | `string` | No | Product identifier. |
| `url` | `string` | No | Public URL of the page to fetch. |

### Example input

```json
{
  "product_id": "6010343"
}
```

## 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
{
  "product": {
    "available": true,
    "brand": "Clean & Clear",
    "gtin": "5000207007159",
    "image": "https://assets.sainsburys-groceries.co.uk/gol/6010343/image.jpg",
    "member_prices": [
      {
        "price": {
          "amount": 2.6,
          "currency": "GBP"
        },
        "promotion_id": "10757348",
        "scheme": "nectar"
      }
    ],
    "name": "Clean & Clear Dual Action Moisturiser Face Cream 100ml",
    "pack_size": "100ml",
    "price": {
      "amount": 3.5,
      "currency": "GBP"
    },
    "promotions": [
      {
        "buy_quantity": null,
        "description": "Save 25% with Nectar",
        "end": "2026-10-12T23:00:00Z",
        "for_amount": null,
        "id": "10757348",
        "member_scheme": "nectar",
        "start": "2026-09-01T23:00:00Z",
        "type": "member"
      }
    ],
    "retailer_product_id": "6010343",
    "unit_price": {
      "amount": 35,
      "currency": "GBP",
      "measure_amount": 1,
      "unit": "per_litre"
    },
    "url": "https://www.sainsburys.co.uk/gol-ui/product/[redacted:token]"
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `product` | `object` | 12 fields |
| `product.available` | `boolean` | true |
| `product.brand` | `string` | Clean & Clear |
| `product.gtin` | `string` | 5000207007159 |
| `product.image` | `string` | https://assets.sainsburys-groceries.co.uk/gol/6010343/image.jpg |
| `product.member_prices` | `array` | 1 items |
| `product.name` | `string` | Clean & Clear Dual Action Moisturiser Face Cream 100ml |
| `product.pack_size` | `string` | 100ml |
| `product.price` | `object` | 2 fields |
| `product.promotions` | `array` | 1 items |
| `product.retailer_product_id` | `string` | 6010343 |
| `product.unit_price` | `object` | 4 fields |
| `product.url` | `string` | https://www.sainsburys.co.uk/gol-ui/product/[redacted:token] |

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