# Get product detail

Refresh a Aldi UK product by its ID or official URL with published shelf prices, unit prices and offers.

- Platform: [Aldi UK](https://docs.upscrape.com/docs/platforms/aldi)
- Capability ID: `aldi.product.detail.get`
- Cost: 1 credit 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": {
    "retailer_product_id": "000000000000416713"
  },
  "capability": "aldi.product.detail.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `retailer_product_id` | `string` | No | Retailer product identifier. |
| `url` | `string` | No | Public URL of the page to fetch. |

### Example input

```json
{
  "retailer_product_id": "000000000000416713"
}
```

## 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": null,
    "brand": "COWBELLE",
    "gtin": null,
    "image": "https://dm.emea.cms.aldi.cx/is/image/aldiprodeu/product/jpg/scaleWidth/500/fa1bf699-a7a0-40fe-9362-1ce0e46f7434/Semi%20Skimmed%20Milk%201.7%25%20Fat",
    "member_prices": [],
    "name": "Semi Skimmed Milk 1.7% Fat",
    "pack_size": "3.41 L",
    "price": {
      "amount": 2.4,
      "currency": "GBP"
    },
    "promotions": [],
    "retailer_product_id": "000000000000416713",
    "unit_price": {
      "amount": 0.7,
      "currency": "GBP",
      "unit": "per_litre"
    },
    "url": "https://www.aldi.co.uk/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` | `null` | null |
| `product.brand` | `string` | COWBELLE |
| `product.gtin` | `null` | null |
| `product.image` | `string` | https://dm.emea.cms.aldi.cx/is/image/aldiprodeu/product/jpg/scaleWidth/… |
| `product.member_prices` | `array` | 0 items |
| `product.name` | `string` | Semi Skimmed Milk 1.7% Fat |
| `product.pack_size` | `string` | 3.41 L |
| `product.price` | `object` | 2 fields |
| `product.promotions` | `array` | 0 items |
| `product.retailer_product_id` | `string` | 000000000000416713 |
| `product.unit_price` | `object` | 3 fields |
| `product.url` | `string` | https://www.aldi.co.uk/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)
