# Hagebau Product Detail API Documentation

`GET /api/hagebau/product?id=...` returns one product from a single public detail page. It includes an `anP` id, `sku`, `gtin13`, brand, category, dimensions, description, numeric `price` and `EUR`, global `availability_text`, full-size images, `downloads`, numeric `ratings` and embedded `reviews[]`. Global availability is not store stock.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/hagebau-api/hagebau_product](https://scrappa.co/docs/hagebau-api/hagebau_product)
- **API group:** Hagebau API
- **Endpoint:** `GET https://scrappa.co/api/hagebau/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 id such as anP7000051228, from search, category, autocomplete or sitemap. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "site": "de",
    "product": {
        "id": "anP7000051228",
        "sku": "M-123",
        "gtin13": "4000000000000",
        "name": "Akku-Bohrmaschine",
        "price": 255,
        "currency": "EUR",
        "availability_text": "https://schema.org/InStock",
        "ratings": 4.5,
        "review_count": 23
    },
    "meta": {
        "endpoint_family": "hagebau-product",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The upstream has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or malformed. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The upstream could not be reached or changed its embedded page 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)
