# Tokopedia Shop Products API Documentation

<p><strong>Tokopedia Shop Products API</strong> lists the products of a shop, 80 per page, with price filters and sort. Send the shop id from search unchanged.</p><p>Every item follows the requested filters. Page N returns the real page N.</p><p><p>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. <code>filtered_out</code> counts the cards removed; <code>has_next</code> still describes the upstream next page.</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_products](https://scrappa.co/docs/tokopedia-api/tokopedia_shop_products)
- **API group:** Tokopedia API
- **Endpoint:** `GET https://scrappa.co/api/tokopedia/shop/products`

## 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). |
| `sort` | string | No | One of relevance, price_asc, price_desc, rating. |
| `min_price` | number | No | Lowest price in IDR. |
| `max_price` | number | No | Highest price in IDR. |

## Example response

```json
{
    "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

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