# Get product reviews

Return public product reviews with ratings and stable review identity over bounded pagination.

- Platform: [Flipkart Commerce](https://docs.upscrape.com/docs/platforms/flipkart)
- Capability ID: `flipkart.product.reviews`
- 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": {
    "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY"
  },
  "capability": "flipkart.product.reviews"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `aspect` | `string` | No | Only reviews about one aspect of the product, e.g. Camera; the output lists the product's aspects |
| `max_pages` | `integer` | No | Maximum number of result pages to fetch. From 1 to 5. |
| `page` | `integer` | No | One-based result page to fetch. From 1 to 1000. |
| `product_id` | `string` | No | Flipkart product id (pid), e.g. MOBGTAGPYYWZRUJX; used when url is not given |
| `sort` | `string` | No | Review order (default most_helpful) |
| `url` | `string` | No | Public URL of the page to fetch. |
| `verified_only` | `boolean` | No | Only reviews from certified buyers |

### Example input

```json
{
  "url": "https://www.flipkart.com/apple-iphone-16-black-128-gb/p/itmb07d67f995271?pid=MOBH4DQFG8NKFRDY"
}
```

## 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
{
  "aspects": [
    {
      "id": "overall",
      "name": "Overall"
    },
    {
      "id": "dc0f2b2d-7619-44cc-b5fc-2fe3e4d453a7",
      "name": "Camera"
    },
    {
      "id": "3ac62744-ab96-4f53-82f7-02eb72b6a662",
      "name": "Battery"
    }
  ],
  "end_page": 3,
  "has_more": true,
  "pages_fetched": 3,
  "product_id": "MOBH4DQFG8NKFRDY",
  "reviews": [
    {
      "comment": "The iPhone 16 is the best phone in this price range.\nThe camera is awesome and provides great photos and videos.\nI think best purchased ever by me.",
      "created_text": "8 months ago",
      "helpful_votes": 576,
      "rating": 5,
      "review_id": "b72fa382-81b1-4554-8ee0-b41ded6a1426",
      "title": "Fabulous!",
      "verified_purchase": true
    },
    {
      "comment": "Suits me",
      "created_text": "6 months ago",
      "helpful_votes": 1899,
      "rating": 5,
      "review_id": "713cef68-ab50-4410-8ce3-d61fc80f8915",
      "title": "Excellent",
      "verified_purchase": true
    },
    {
      "comment": "Absolute Beauty",
      "created_text": "11 months ago",
      "helpful_votes": 629,
      "rating": 5,
      "review_id": "67f27297-c680-4cdf-99c3-22ff73d059e6",
      "title": "Fabulous!",
      "verified_purchase": true
    }
  ],
  "sort": "most_helpful",
  "start_page": 1,
  "verified_only": false
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `aspects` | `array` | 3 items |
| `aspects` | `array` | 3 items |
| `end_page` | `integer` | 3 |
| `has_more` | `boolean` | true |
| `pages_fetched` | `integer` | 3 |
| `product_id` | `string` | MOBH4DQFG8NKFRDY |
| `reviews` | `array` | 3 items |
| `reviews` | `array` | 3 items |
| `sort` | `string` | most_helpful |
| `start_page` | `integer` | 1 |
| `verified_only` | `boolean` | false |

## 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)
