# Cdiscount Product Details API Documentation

Scrappa's `GET /api/cdiscount/product` returns one Cdiscount product: identity, price and sale price, rating, seller, readable availability, a full-size gallery of this product only and de-duplicated specifications. Use an `id` returned by search, or pass the product `url` from search results. A bare id with no known url is rejected; the storefront short form does not resolve. A null seller, original price or discount means Cdiscount omitted that field.
## Credits

A successful product request costs **1 credit**. Errors, blocks and `404` answers cost nothing. The charge is shown in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/cdiscount-api/cdiscount_product](https://scrappa.co/docs/cdiscount-api/cdiscount_product)
- **API group:** Cdiscount API
- **Endpoint:** `GET https://scrappa.co/api/cdiscount/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 | No | Product id from search results. Use this or url. |
| `url` | string | No | Link of a Cdiscount product. Use this or id. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "product": {
        "id": "ip18prom256burg",
        "title": "Example product",
        "price": 162.9,
        "currency": "EUR",
        "images": [],
        "specs": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Cdiscount has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Cdiscount could not be reached or answered with a block or an unexpected page. 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)
