# KRUA.CO Product Search API

> Product Search on KRUA.CO, as its pages list them.

- Page: https://cleanedweb.com/catalog/krua-co-product-search-api/
- Contract (JSON): https://cleanedweb.com/catalog/krua-co-product-search-api/contract.json
- Source: krua.co (https://krua.co/)
- Category: News & articles
- Updated: 2026-12-04

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `กับข้าวต้องรอด! คู่มือยื้อชีวิตอาหารหน้าร้อน` |
| `url` | string | `https://krua.co/food_story/summer_food-protect/` |
| `created` | string | `2026-04-02T13:05:20` |
| `short_detail` | string | `มัดรวมวิธีป้องกันอาหารไม่ให้บูดเน่าในอากาศร้อนจัด` |
| `classification.subtype` | string | `food_story` |
| `thumbnail` | string | `https://api2.krua.co/wp-content/uploads/2026/04/Image_613x300-01.jpg` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/krua-co-product-search-api/contract.json

## Inputs

- `subtype` (string): Optional. Only the records whose subtype is, or lists, exactly this value (case-sensitive, whole value or one list element). The whole collection is read and filtered, so a run takes as long as an unfiltered one; max_items counts the records delivered, and the run answer's field_filter reports the records walked and delivered. A value no record holds delivers no records. Omit for every record.
- `q` (string, required): Required. Free text for the page's own "q" box, sent as its query key exactly as typed. Default: กับข้าว.

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_8304aabf82da09a6ab5a0364/endpoints/generated_8304aabf82da09a6ab5a0364_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_8304aabf82da09a6ab5a0364/endpoints/generated_8304aabf82da09a6ab5a0364_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "q": "กับข้าว"
  },
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_8304aabf82da09a6ab5a0364/endpoints/generated_8304aabf82da09a6ab5a0364_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-12-03

The same changelog, as data, is in https://cleanedweb.com/catalog/krua-co-product-search-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_8304aabf82da09a6ab5a0364`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Krua.
