# Catalog search

Search Meesho catalogs by keyword.

- Platform: [Meesho Catalog](https://docs.upscrape.com/docs/platforms/meesho)
- Capability ID: `catalog.search`
- Cost: 1 credit per request
- Maximum runtime: 45 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 20,
    "query": "kurti"
  },
  "capability": "catalog.search"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `offset` | `integer` | No |  |
| `query` | `string` | Yes |  |

### Example input

```json
{
  "limit": 20,
  "query": "kurti"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "count": 20,
  "listings": [
    {
      "catalog_id": 503997858,
      "images": [
        "https://images.meesho.com/images/products/970481297/ifepe_512.jpg"
      ],
      "min_price": 185,
      "name": "Abhisarika Sensational Kurtis",
      "product_id": "g1ss5t",
      "product_url": "https://www.meesho.com/green-print-star-shot/p/g1ss5t",
      "slug": "green-print-star-shot"
    },
    {
      "catalog_id": 136347892,
      "images": [
        "https://images.meesho.com/images/products/449958388/uqlqv_512.jpg"
      ],
      "min_price": 302,
      "name": "Fabulous Feeding Kurtis & Kurta Sets",
      "product_id": "7fw644",
      "product_url": "https://www.meesho.com/womens-rayon-maternity-dresspregnancy-dresseasy-breast-feedingbreastfeeding-dresswestern-dress-with-zippers-for-nursing-pre-and-post-pregnancy/p/7fw644",
      "slug": "womens-rayon-maternity-dresspregnancy-dresseasy-breast-feedingbreastfeeding-dresswestern-dress-with-zippers-for-nursing-pre-and-post-pregnancy"
    },
    {
      "catalog_id": 156925338,
      "images": [
        "https://images.meesho.com/images/products/488672535/0dnaq_512.jpg"
      ],
      "min_price": 173,
      "name": "Women Crepe Aagyeyi Voguish Kurtis",
      "product_id": "82xy53",
      "product_url": "https://www.meesho.com/premium-kurti-for-women/p/82xy53",
      "slug": "premium-kurti-for-women"
    }
  ],
  "next_cursor": "[redacted:token]=="
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 20 |
| `listings` | `array` | 3 items |
| `listings` | `array` | 3 items |
| `next_cursor` | `string` | [redacted:token]== |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
