# Alternate Product Details API Documentation

`GET /api/alternate/product` returns one Alternate product as structured JSON. Pass the `id` from a search result unchanged, or a product link on alternate.de.

## What you get

`product` holds title, brand, `sku`, `mpn`, `gtin`, price, `original_price`, `rrp`, `discount_percent`, currency, online availability, delivery status, rating, review count, full-size `images`, `specs` and `breadcrumbs`.

## Prices

All prices are numbers in EUR. `original_price` is the struck price and `rrp` the recommended price. A value that is not published stays `null`. Public product pages do not publish a variant list; the `variants` field stays empty and `unavailable_reason.variants` explains why.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/alternate-api/alternate_product](https://scrappa.co/docs/alternate-api/alternate_product)
- **API group:** Alternate API
- **Endpoint:** `GET https://scrappa.co/api/alternate/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 a search result. Use this or url. |
| `url` | string | No | Product link on alternate.de. Use this or id. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "product": {
        "id": "100152872",
        "title": "Gainward GeForce RTX 4070 Ti Phoenix",
        "brand": "Gainward",
        "sku": "100152872",
        "mpn": "3628",
        "gtin": null,
        "description": "A high-end graphics card.",
        "url": "https://www.alternate.de/html/product/100152872",
        "price": 999,
        "original_price": 1199,
        "rrp": 1199,
        "discount_percent": 16,
        "currency": "EUR",
        "online_available": true,
        "availability": "Sofort verf\u00fcgbar",
        "delivery_status": "Sofort verf\u00fcgbar",
        "delivery_window": null,
        "rating": 4.5,
        "review_count": 39,
        "images": [
            "https://www.alternate.de/p/600x600/example@@100152872.jpg"
        ],
        "specs": [
            {
                "name": "Details",
                "features": [
                    {
                        "name": "GPU",
                        "value": "GeForce RTX 4070 Ti",
                        "unit": null
                    }
                ]
            }
        ],
        "variants": [],
        "breadcrumbs": [
            "Startseite",
            "Hardware",
            "Grafikkarten"
        ]
    },
    "meta": {
        "endpoint_family": "alternate-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1,
        "unavailable_reason": {
            "variants": "No variants on the page."
        }
    }
}
```

## Errors

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