# Cdiscount Offer Fragments API Documentation

Scrappa's `GET /api/cdiscount/offers` reads one Cdiscount offer fragment per request, selected by `mode`: availability, recommendations, seller_reviews. Availability uses the offer id and price from search, recommendations use a product id and seller reviews use a seller id. Delivery dates are ISO 8601. A fragment with no usable data is a non-billable `upstream_unavailable` failure, never an empty charged result.
## Credits

A successful 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_offers](https://scrappa.co/docs/cdiscount-api/cdiscount_offers)
- **API group:** Cdiscount API
- **Endpoint:** `GET https://scrappa.co/api/cdiscount/offers`

## 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 |
| --- | --- | --- | --- |
| `mode` | string | Yes | availability, recommendations, seller_reviews. |
| `offer_id` | string | No | Numeric offer id for availability. |
| `unit_price` | number | No | Offer price in EUR for availability. |
| `product_id` | string | No | Product id for recommendations. |
| `seller_id` | string | No | Seller id for seller_reviews. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/cdiscount/offers?mode=seller_reviews&seller_id=411733"
```

## Example response

```json
{
    "success": true,
    "mode": "seller_reviews",
    "data": {
        "seller_id": "411733",
        "rating": 3.46,
        "count": 120,
        "distribution": [
            {
                "stars": 5,
                "count": 40
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 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)
