# Kakaku Search API Documentation

<p><strong>Kakaku Search API Documentation</strong> Search public Japanese product pages by keyword or category code and page through results. Each row has product id, title, maker, lowest price in JPY, shop count, rating, review count, specifications, image and product url. Ids feed the product and history endpoints unchanged. Prices are JPY numbers. Each successful request costs 1 credit. A failed request is never billed.</p>

- **Documentation:** [https://scrappa.co/docs/kakaku-api/kakaku_search](https://scrappa.co/docs/kakaku-api/kakaku_search)
- **API group:** Kakaku API
- **Endpoint:** `GET https://scrappa.co/api/kakaku/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 | No | Search keywords, for example camera. Send either query or category, not both. Required unless category is sent. |
| `category` | string | No | Kakaku category code, for example camera. Send either query or category, not both. |
| `page` | integer | No | Page number, 1 to 100. Defaults to 1. |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 2,
        "items": [
            {
                "id": "K0001719316",
                "url": "https://kakaku.com/item/K0001719316/",
                "image": "https://img1.kakaku.k-img.com/images/productimage/ll/K0001719316.jpg",
                "maker": "Canon",
                "price": 52500,
                "specs": [],
                "title": "Camera body",
                "rating": 4.25,
                "currency": "JPY",
                "shop_count": 40,
                "review_count": 39
            }
        ],
        "query": "camera",
        "total": null,
        "category": null,
        "has_next": false,
        "per_page": 50
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. Upstream is not called and the request is not billed. |
| 503 | Transport Unavailable | Upstream did not answer after several tries. The request is 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)
