# LDLC Product Details API Documentation

`GET /api/ldlc/product` returns one product. Pass the `id` from search, suggest or sitemap unchanged.

## What you get

`product` holds `sku`, `mpn`, `gtin13`, `name`, `brand`, numeric `price` and `currency` (EUR), `original_price`, `discount_percent`, `availability`, `stock_text`, `in_stock`, `rating`, `review_count`, full-size `images` and the canonical `url`. `specs` is a grouped table. Values that are not published stay `null`.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/ldlc-api/ldlc_product](https://scrappa.co/docs/ldlc-api/ldlc_product)
- **API group:** LDLC API
- **Endpoint:** `GET https://scrappa.co/api/ldlc/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 | PB product id from search, suggest or sitemap. |
| `locale` | string | No | Storefront. Currently fr. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "product": {
            "id": "PB00512844",
            "sku": "AR00512844",
            "mpn": "GV-N5070",
            "gtin13": "4711234567890",
            "name": "Gigabyte GeForce RTX 5070",
            "brand": "Gigabyte",
            "price": 269.95,
            "original_price": 279.95,
            "discount_percent": 3,
            "currency": "EUR",
            "availability": "InStock",
            "stock_text": "En stock",
            "in_stock": true,
            "rating": 5,
            "review_count": 162,
            "images": [
                "https://media.ldlc.com/r1600/ld/products/LD0005128412.jpg"
            ]
        },
        "specs": [
            {
                "name": "Processeur",
                "value": "NVIDIA GeForce RTX 5070",
                "group": "Caract\u00e9ristiques"
            }
        ],
        "breadcrumb": [
            "Informatique",
            "Composants"
        ]
    },
    "meta": {
        "endpoint_family": "ldlc-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1,
        "unavailable_reason": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The storefront has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or unsupported. A bare category id without a public slug and an unsupported storefront are rejected instead of returning a different page. Non-billable. |
| 503 | Upstream Unavailable | The storefront could not be reached or changed its page shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`). 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)
