# Tokopedia Shop API Documentation

<p><strong>Tokopedia Shop API</strong> returns a shop profile and its first 80 products. Send the shop id from search unchanged.</p><p>The profile has the shop name, location, followers and official badge. A shop rating is not published by this source and stays null.</p><p>Prices are IDR numbers. Page N returns the real page N. The product ids feed the product and reviews routes unchanged.</p><p>Costs 1 credit per successful request. Empty results and failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/tokopedia-api/tokopedia_shop](https://scrappa.co/docs/tokopedia-api/tokopedia_shop)
- **API group:** Tokopedia API
- **Endpoint:** `GET https://scrappa.co/api/tokopedia/shop`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `sid` | string | Yes | Shop id from search. |
| `page` | integer | No | One-based page number (default 1). |

## Example response

```json
{
    "data": {
        "name": "Olahraga Store",
        "profile": {
            "id": "5688883",
            "url": "https://www.tokopedia.com/jacksonofficial",
            "city": "Surabaya",
            "name": "Jackson Shoes",
            "domain": "jacksonofficial",
            "rating": null,
            "location": "Kota Surabaya",
            "followers": 13710,
            "open_since": "March 2019",
            "is_official": false,
            "products_sold": 388
        },
        "shop_id": "123456",
        "products": [
            {
                "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
            }
        ],
        "pagination": {
            "page": 1,
            "has_next": true,
            "per_page": 80
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "shop"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | The source could not be reached. This response is not billable. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
