Tokopedia Product API opens one product. Send the product url from search, or the shop_domain and product_key slug from that url.
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.
When the upstream returns no title or price the request is a free error, never a billed empty answer.
Costs 1 credit per successful request. Empty results and failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
This endpoint has no required query parameters.
3 optional filters available.
string
Optional
Product url from search. Send url or id.
https://example.com/product
string
Optional
Shop domain from the search url, for example olahraga-store. Send with product_key or alone with url.
example
string
Optional
Product slug from the search url, for example sepatu-lari. Send with shop_domain or alone with url.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
original_price
discount_percent
{
"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
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"query": [
"A product url or an id with shop_domain is required."
]
},
"message": "The request validation failed"
}Upstream Unavailable
The source could not be reached. This response is not billable. Retry shortly.
{
"meta": {
"credits": 0,
"billable": false,
"retryable": true,
"endpoint_family": "product"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "A product url or an id with shop_domain 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.