Skip to content
Scrappa Get API key
Tokopedia API 1 credit / request

Tokopedia Reviews API Documentation

GET https://scrappa.co/api/tokopedia/reviews

Tokopedia Reviews API returns a product rating summary, star buckets, topics and a list of written reviews with numeric rating, ISO 8601 date, full-size images and reviewer name.

Send the product id from search unchanged. Page N returns the real page N.

Costs 1 credit per successful request. Empty results and failed requests are free.

Tokopedia Reviews API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/tokopedia/reviews
Auth header
x-api-key
Cost
1 credit / request
product_id = 1234567890
Response preview
200 OK
{
    "data": {
        "topics": [
            {
                "name": "Kualitas Barang",
                "count": 1
            }
        ],
        "reviews": [
            {
                "id": "1105811911",
                "date": "2024-10-14T12:30:06Z",
                "text": "sepatu ringan, nyaman",
                "user": "Vinaya",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

product_id string Required

Product id from search.

Example value 1234567890
page integer Optional

One-based page number (default 1).

Example value 1

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "topics": [
            {
                "name": "Kualitas Barang",
                "count": 1
            }
        ],
        "reviews": [
            {
                "id": "1105811911",
                "date": "2024-10-14T12:30:06Z",
                "text": "sepatu ringan, nyaman",
                "user": "Vinaya",
                "likes": 3,
                "images": [
                    "https://images.tokopedia.net/review.jpg"
                ],
                "rating": 5,
                "variant": "36",
                "seller_reply": null
            }
        ],
        "summary": {
            "total": 2,
            "average": 5,
            "buckets": [
                {
                    "count": 2,
                    "rating": 5,
                    "percentage": 100
                }
            ],
            "with_image": 2
        },
        "pagination": {
            "page": 1,
            "has_next": false
        },
        "product_id": "13499832987"
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "reviews"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required parameter or a value is invalid. This response is not billable.

{
    "errors": {
        "query": [
            "A product id is required."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

The source could not be reached. This response is not billable. Retry shortly.

{
    "meta": {
        "credits": 0,
        "billable": false,
        "retryable": true,
        "endpoint_family": "reviews"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "A product id is required."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.