# Product recommendations

Retrieve recommendations for a Meesho catalog.

- Platform: [Meesho Catalog](https://docs.upscrape.com/docs/platforms/meesho)
- Capability ID: `product.recommendations`
- 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": {
    "catalog_id": 112525643,
    "limit": 20
  },
  "capability": "product.recommendations"
}'
```

## Input

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

### Example input

```json
{
  "catalog_id": 112525643,
  "limit": 20
}
```

## 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": 235006443,
      "images": [
        "https://images.meesho.com/images/products/619430441/zoz02_512.jpg"
      ],
      "min_price": 224,
      "name": "Alisha Sensational Kurtis",
      "product_id": "a8sjl5",
      "product_url": "https://www.meesho.com/womens-printed-rayon-kurti-stylish-straight-kurta-for-women-ethnic-wear-casual-office-wear-kurti-34-sleeve-designer-kurtis-for-girls-ladies-trendy-kurti-pack-of-1/p/a8sjl5",
      "slug": "womens-printed-rayon-kurti-stylish-straight-kurta-for-women-ethnic-wear-casual-office-wear-kurti-34-sleeve-designer-kurtis-for-girls-ladies-trendy-kurti-pack-of-1"
    },
    {
      "catalog_id": 143938666,
      "images": [
        "https://images.meesho.com/images/products/465658109/1aoxt_512.jpg"
      ],
      "min_price": 154,
      "name": "Myra Superior Kurtis",
      "product_id": "7p8o3h",
      "product_url": "https://www.meesho.com/printed-american-crepe-stylish-a-line-black-lineing-kurti-42inches/p/7p8o3h",
      "slug": "printed-american-crepe-stylish-a-line-black-lineing-kurti-42inches"
    },
    {
      "catalog_id": 114541319,
      "images": [
        "https://images.meesho.com/images/products/392249824/rqgvu_512.jpg"
      ],
      "min_price": 221,
      "name": "Aagam Alluring Kurtis",
      "product_id": "6hj9wg",
      "product_url": "https://www.meesho.com/stylelist-kurti-with-work/p/6hj9wg",
      "slug": "stylelist-kurti-with-work"
    }
  ],
  "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)
