# Product reviews

Fetch public review text and ratings from a Tata 1mg product page while omitting reviewer identity.

- Platform: [Tata 1mg](https://docs.upscrape.com/docs/platforms/tata-1mg)
- Capability ID: `tata-1mg.product.reviews`
- Cost: 1 credit per request
- Maximum runtime: 120 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,
    "max_pages": 1,
    "page": 1,
    "url": "https://www.1mg.com/otc/biotin-advanced-tablet-for-healthy-hair-otc842970"
  },
  "capability": "tata-1mg.product.reviews"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No |  |
| `max_pages` | `integer` | No |  |
| `page` | `integer` | No |  |
| `url` | `string` | Yes |  |

### Example input

```json
{
  "limit": 20,
  "max_pages": 1,
  "page": 1,
  "url": "https://www.1mg.com/otc/biotin-advanced-tablet-for-healthy-hair-otc842970"
}
```

## 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
{
  "end_page": 1,
  "has_more": false,
  "pages_fetched": 1,
  "product_id": "842970",
  "product_url": "https://www.1mg.com/otc/[redacted:token]",
  "rating": 4.2,
  "review_count": 396,
  "reviews": [
    {
      "body": "Good product. Have seen improvement in hair fall control",
      "rating": 5,
      "title": "Good product. Have seen improvement in hair fall control",
      "verified": false
    },
    {
      "body": "Its smells a lot. Stored in shelf Whenever I open there this pungent smell Same when I take the tablet. It smells Other multivitamin tablets dont do this Change it",
      "rating": 3,
      "title": "Its smells a lot. Stored in shelf Whenever I open there this pungent smell Same when I take the tablet. It smells Other multivitamin tablets dont do this Change it",
      "verified": false
    },
    {
      "body": "Very worst Had odor and flavour . Should discontinued",
      "rating": 1,
      "title": "Very worst Had odor and flavour . Should discontinued",
      "verified": false
    }
  ],
  "start_page": 1,
  "total": 3
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `end_page` | `integer` | 1 |
| `has_more` | `boolean` | false |
| `pages_fetched` | `integer` | 1 |
| `product_id` | `string` | 842970 |
| `product_url` | `string` | https://www.1mg.com/otc/[redacted:token] |
| `rating` | `number` | 4.2 |
| `review_count` | `integer` | 396 |
| `reviews` | `array` | 3 items |
| `reviews` | `array` | 3 items |
| `start_page` | `integer` | 1 |
| `total` | `integer` | 3 |

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