# Coop Online Product Details API Documentation

`GET /api/coop/product` returns one product. Pass the `id` from a search or category result unchanged.

## What you get

`product` holds numeric CHF `price`, `original_price`, `discount_percent`, `base_price`, `base_price_unit`, `content` and `content_unit`, `rating`, `review_count`, numeric `stock`, `available`, and full-size `images`. The largest public image variant comes first.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/coop-api/coop_product](https://scrappa.co/docs/coop-api/coop_product)
- **API group:** Coop Online API
- **Endpoint:** `GET https://scrappa.co/api/coop/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Product code from search or category results. |
| `language` | string | No | de, fr, it or en. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/coop/product?id=4446520"
```

## Example response

```json
{
    "success": true,
    "product": {
        "id": "4446520",
        "ean": "7627534888787",
        "name": "Coop Produkt",
        "price": 2,
        "original_price": 2.5,
        "discount_percent": 20,
        "base_price": 1,
        "base_price_unit": "1 kg",
        "currency": "CHF",
        "rating": 4.5,
        "review_count": 289,
        "stock": 1073,
        "available": true,
        "images": [
            "https://www.coop.ch/img/produkte/880_880/RGB/4446520_001.jpg"
        ]
    },
    "meta": {
        "endpoint_family": "coop-product",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The storefront has no record for that id (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or conflicting. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The storefront could not be reached, answered with a challenge, or changed its JSON shape. Retryable and never billed. Clients are never rate limited. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
