# Tokopedia Product API Documentation

<p><strong>Tokopedia Product API</strong> opens one product. Send the product url from search, or the shop_domain and product_key slug from that url.</p><p>The answer has the IDR price, original price, discount, variants, specifications, images, rating and the numeric sold count. Original price and discount are null when there is no campaign. The product id and shop id work with the reviews and shop routes.</p><p>When the upstream returns no title or price the request is a free error, never a billed empty answer.</p><p>Costs 1 credit per successful request. Empty results and failed requests are free.</p>

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

## 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 |
| --- | --- | --- | --- |
| `url` | string | No | Product url from search. Send url or id. |
| `shop_domain` | string | No | Shop domain from the search url, for example olahraga-store. Send with product_key or alone with url. |
| `product_key` | string | No | Product slug from the search url, for example sepatu-lari. Send with shop_domain or alone with url. |

## Example response

```json
{
    "data": {
        "shop": {
            "id": "123456",
            "name": "Olahraga Store"
        },
        "price": 250000,
        "specs": [
            {
                "title": "Merek",
                "value": "Olahraga"
            }
        ],
        "title": "Sepatu Lari Pria",
        "images": [
            "https://images.tokopedia.net/abc.jpg"
        ],
        "rating": 4.8,
        "currency": "IDR",
        "variants": [
            {
                "name": "Ukuran",
                "value": "42"
            }
        ],
        "condition": "Baru",
        "product_id": "123456789",
        "sold_count": 530,
        "review_count": 120,
        "original_price": null,
        "discount_percent": null
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true,
    "original_price": 350000,
    "discount_percent": 28.6
}
```

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