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

Tokopedia Shop Products API Documentation

GET https://scrappa.co/api/tokopedia/shop/products

Tokopedia Shop Products API lists the products of a shop, 80 per page, with price filters and sort. Send the shop id from search unchanged.

Every item follows the requested filters. Page N returns the real page N.

Filters and sort apply to the cards of the returned page, not to a new upstream result set. The upstream filter keys are not proven, so price, rating, location and sort are confirmed on that page. filtered_out counts the cards removed; has_next still describes the upstream next page.

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

Tokopedia Shop Products API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/tokopedia/shop/products
Auth header
x-api-key
Cost
1 credit / request
sid = example
Response preview
200 OK
{
    "data": {
        "results": [
            {
                "url": "https://www.tokopedia.com/olahraga-store/sepatu-lari",
                "shop": {
                    "id": "123456",
                    "name": "Olahraga Store",
                    "location": "Jakarta Pusat",
                    "is_official": true
                },
                "image": "https://images.tokopedia.net/abc.jpg",
                "price": 250000,
                "title": "Sepatu Lari Pria",
...

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.

4 optional filters available.

sid string Required

Shop id from search.

Example value example
page integer Optional

One-based page number (default 1).

Example value 1
sort string Optional

One of relevance, price_asc, price_desc, rating.

Example value relevance
min_price number Optional

Lowest price in IDR.

Example value 10
max_price number Optional

Highest price in IDR.

Example value 10

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": {
        "results": [
            {
                "url": "https://www.tokopedia.com/olahraga-store/sepatu-lari",
                "shop": {
                    "id": "123456",
                    "name": "Olahraga Store",
                    "location": "Jakarta Pusat",
                    "is_official": true
                },
                "image": "https://images.tokopedia.net/abc.jpg",
                "price": 250000,
                "title": "Sepatu Lari Pria",
                "rating": 4.8,
                "currency": "IDR",
                "location": "Jakarta Pusat",
                "product_id": "123456789",
                "sold_count": null,
                "review_count": 120,
                "original_price": 350000,
                "discount_percent": 28.6
            }
        ],
        "shop_id": "123456",
        "pagination": {
            "page": 1,
            "has_next": true,
            "per_page": 80
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "shop_products"
    },
    "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 shop 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": "shop_products"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "A shop 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.