# TikTok Shop Product Reviews (`tiktok-shop.product_reviews`)

Customer reviews of a TikTok Shop product, page by page: rating, text, photos, variant, country and verified-purchase flag.

Docs: https://primaryapi.com/docs/api-reference/tiktok-shop/product_reviews

- Endpoint: `POST https://api.primaryapi.com/v1/run/tiktok-shop.product_reviews`
- Category: E-commerce · Platform: `tiktok-shop` · Kind: list · Status: live
- Price: 2 credits per call; up to 38 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost.
- Billing unit: per successful call
- Reliability: routed to a healthy upstream and retried automatically when an attempt fails; live 30-day status: `GET https://api.primaryapi.com/v1/status/apis?sku=tiktok-shop.product_reviews`
- Execution: synchronous (answers 202 only if it outlives the wait window)

## Input

| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| `url` | string | yes |  | max 2048 chars; format: uri | TikTok Shop product page URL, e.g. https://www.tiktok.com/shop/pdp/<slug>/<product id>. |
| `page` | integer | no | 1 | 1–500 | One-based results page; continue while hasMore is true. |
| `region` | string | no | "US" | pattern: ^[A-Za-z]{2}$ | Two-letter code of the product's shop market (default US; strongly recommended). |

Unknown fields are rejected with `400 invalid_input`. The routing controls `preferLatencyUnderMs` and `maxCredits` may be sent in the same JSON body.

## Output

When `output.found` is `true`, `output.data` has this shape:

| Field | Type | Description |
|---|---|---|
| `reviews` | object[] |  |
| `reviews[].id` | string \| null |  |
| `reviews[].productId` | string \| null |  |
| `reviews[].rating` | integer \| null | Stars, 1-5 |
| `reviews[].text` | string \| null |  |
| `reviews[].images` | string[] |  |
| `reviews[].createdUtc` | string \| null |  |
| `reviews[].reviewerName` | string \| null | As shown by TikTok Shop (usually masked, e.g. "W**n") |
| `reviews[].avatarUrl` | string \| null |  |
| `reviews[].country` | string \| null |  |
| `reviews[].sku` | string \| null | Variant purchased |
| `reviews[].verifiedPurchase` | boolean \| null |  |
| `totalReviews` | integer \| null |  |
| `hasMore` | boolean \| null |  |
| `page` | integer |  |
| `nextCursor` | null |  |

When the thing you asked about does not exist (or a search matches nothing) the call still succeeds: `output.found` is `false`, `output.data` is `null` and `output.reason` says why (`not_found`, `private`, `no_results`, …). Misses are free unless the notes below say misses are billed.

## Example request

```bash
curl -sS -X POST "https://api.primaryapi.com/v1/run/tiktok-shop.product_reviews" \
  -H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.tiktok.com/shop/pdp/cat-nail-clipper-by-potaroma/1731578642912612516"}'
```

## Example response

_Values are placeholders that follow the output schema; `credits` is what this call would cost at the usual price._

```json
{
  "output": {
    "found": true,
    "data": {
      "reviews": [
        {
          "id": "string",
          "productId": "string",
          "rating": 0,
          "text": "string",
          "images": [
            "string"
          ],
          "createdUtc": "string",
          "reviewerName": "string",
          "avatarUrl": "https://example.com",
          "country": "string",
          "sku": "string",
          "verifiedPurchase": true
        }
      ],
      "totalReviews": 0,
      "hasMore": true,
      "page": 0,
      "nextCursor": null
    }
  },
  "provider": "PrimaryAPI",
  "credits": 2,
  "items": 1,
  "requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z",
  "nextCursor": null
}
```

## Pricing and reliability

- Usual price: 2 credits per call
- Price ceiling: up to 38 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost; the `maxCredits` routing control caps it per call
- Live 30-day status, success rate, uptime and latency: `GET https://api.primaryapi.com/v1/status/apis?sku=tiktok-shop.product_reviews`

## Errors to handle

`invalid_input`, `unauthorized`, `insufficient_balance`, `key_limit_reached`, `trial_cap_reached`, `forbidden`, `not_found`, `idempotency_conflict`, `rate_limited`, `all_sources_failed`, `service_unavailable`, `timeout`. See https://primaryapi.com/docs/errors.

## Notes

Paginate with `page` (page size is set by the source). Reviewer names are masked but still personal data.

