# Morele Product Details API Documentation

`GET /api/morele/product` `GET /api/morele/product` returns one product. Pass the numeric `id` and the `slug` from search or the ids endpoint unchanged. The numeric id decides which product is returned; the slug is only a hint and a wrong slug cannot return another product. The `url` is the canonical product page published by the source. Current price comes only from product-scoped structured data or the rendered card for the same id; a page without a verified price returns `parser_drift` and costs nothing. A previous price and discount appear only with a published struck-through price. Images are full-size URLs. Fields the page does not publish stay null and are named in `unavailable_fields`.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. The response shows the charge in `meta.credits_charged`. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/morele-api/morele_product](https://scrappa.co/docs/morele-api/morele_product)
- **API group:** Morele API
- **Endpoint:** `GET https://scrappa.co/api/morele/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 | Numeric product id from search or ids. |
| `slug` | string | Yes | Product slug from search results. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/morele/product?id=5948081&slug=laptop-example"
```

## Example response

```json
{
    "success": true,
    "currency": "PLN",
    "product": {
        "id": 5948081,
        "price": 2415.78,
        "currency": "PLN",
        "rating": 4.6
    },
    "meta": {
        "endpoint_family": "morele-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The public page has no product with that id (`not_found`). Non-billable. |
| 422 | Filter Not Available | A requested filter or page cannot be honoured by the public source (`unsupported_filter`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown, conflicting or unusable. Unknown parameters are rejected. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached or changed its page shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`, `key_stale`). 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)
