# reBuy Search API Documentation

<p>Search the public reBuy catalogue by query and integer page. Up to 29 products per page with the total count, per-condition prices, ratings, identifiers, a product url and full size image URLs. Page one and page two ids differ. Prices are numbers in EUR. Unreplayed filter names are rejected with 422. One credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/rebuy-api/rebuy_search](https://scrappa.co/docs/rebuy-api/rebuy_search)
- **API group:** reBuy API
- **Endpoint:** `GET https://scrappa.co/api/rebuy/search`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Search words, e.g. iphone 13 |
| `page` | integer | No | Page number, default 1, up to 100 |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 29,
        "query": "iphone 13",
        "total": 154,
        "products": [
            {
                "id": 12216196,
                "url": "https://www.rebuy.de/i,12216196",
                "price": {
                    "amount": 429,
                    "currency": "EUR"
                },
                "title": "Apple iPhone 13"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | An invalid page or an unreplayed filter was sent. Failed requests are not billed. |
| 503 | Upstream Unavailable | The source is temporarily unreachable. Failed requests are not billed. |

## 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)
