# Catalog search

Search Meesho catalogs by keyword.

- Platform: [Meesho Catalog](https://docs.upscrape.com/docs/platforms/meesho)
- Capability ID: `meesho.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 $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 20,
    "query": "kurti"
  },
  "capability": "meesho.catalog.search"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `string` | No | Continuation cursor returned by a previous request. |
| `filter_tokens` | `array<string>` | No |  |
| `limit` | `integer` | No | Maximum number of results to return. From 1 to 100. |
| `offset` | `integer` | No | Zero-based number of results to skip. At least 0. |
| `query` | `string` | Yes | Search query. |
| `sort` | `object` | No | Sort order for returned results. |
| `sort.sort_by` | `string` | Yes | Sort order for returned results. |
| `sort.sort_order` | `string` | Yes | Sort direction. Allowed values: `asc`, `desc`. |

### 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": [
    {
      "average_rating": 4.2,
      "catalog_id": 497326891,
      "discount_percent": 1,
      "discount_text": "₹2 off",
      "images": [
        "https://images.meesho.com/images/products/960051536/3rcps_512.jpg"
      ],
      "min_price": 185,
      "name": "Adrika Fashionable Kurtis",
      "offer": {
        "display_text": "₹160 with 1 Special Offer",
        "items": [
          {
            "amount": 25,
            "type": "cod_unbundling"
          }
        ]
      },
      "original_price": 187,
      "product_id": "fvl8i8",
      "product_url": "https://www.meesho.com/radiant-flora-square-neck-short-kurti/p/fvl8i8",
      "rating_count": 154,
      "review_count": 33,
      "slug": "radiant-flora-square-neck-short-kurti"
    },
    {
      "average_rating": 3.9,
      "catalog_id": 165189236,
      "images": [
        "https://images.meesho.com/images/products/503022366/qrwf2_512.jpg"
      ],
      "min_price": 291,
      "name": "Adrika Graceful Kurtis",
      "offer": {
        "display_text": "₹265 with 1 Special Offer",
        "items": [
          {
            "amount": 26,
            "type": "cod_unbundling"
          }
        ]
      },
      "product_id": "8bhiji",
      "product_url": "https://www.meesho.com/gown-party-wear-flower-print-long-kurti-with-dupatta-no-bottomwear/p/8bhiji",
      "rating_count": 175,
      "review_count": 34,
      "slug": "gown-party-wear-flower-print-long-kurti-with-dupatta-no-bottomwear"
    },
    {
      "average_rating": 4,
      "catalog_id": 112525643,
      "images": [
        "https://images.meesho.com/images/products/386229233/nlubb_512.jpg"
      ],
      "min_price": 204,
      "name": "Women Rayon Banita Alluring Kurtis",
      "offer": {
        "display_text": "₹182 with 1 Special Offer",
        "items": [
          {
            "amount": 22,
            "type": "cod_unbundling"
          }
        ]
      },
      "product_id": "6dy8dt",
      "product_url": "https://www.meesho.com/kurti/p/6dy8dt",
      "rating_count": 23813,
      "review_count": 6332,
      "slug": "kurti"
    }
  ],
  "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)
