Douyin Product details API
API health
- 24h health
- 91%
- 24h average time
- 10.81 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Read one Douyin Mall product by numeric ID for displayed and discount price in CNY, sales figure, shop, images, assurances, shipping notes, variants and on-sale status. Take product_id from product_search or live_product_search, not a SKU or promotion ID.
Douyin Product details reads one Douyin Mall product by product_id and returns its title, shop, displayed price and current public discount price, the sales figure on the page, main and detail images, the service assurances it advertises, shipping notes, variant options and whether it is on sale. It answers what a product costs on Douyin right now, who sells it and how well it sells, for sellers tracking competitors, brands watching resellers and agencies checking a product before a creator promotes it.
Both prices are in yuan. sold_count is a snapshot of the product's public sales figure, not the sales of any one creator. shipping_fee_text and shipping_estimate_text keep the page's own wording, so parse them before comparing shops. variant_groups lists each option group with its option names and public IDs only, with no price or stock per option.
Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.
Please help me write a data collection script with the EveryInfra Douyin Product details endpoint (douyin/product_detail).
Endpoint contract:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to douyin and action to product_detail, and put the parameters inside params.
- Required parameters:
- product_id: A numeric Douyin product ID returned by product_search or live_product_search. It is not a SKU ID, promotion ID, title, or URL.
- Returns one object. Main fields: product_id (Stable Douyin Mall product ID), title, price_cny (Displayed product price in yuan), discount_price_cny (Current public discount price in yuan), sales_text (Sales figure exactly as the product pag…), sold_count (Units sold that the product page curren…), shop_id (Douyin Mall shop ID), shop_name (Douyin Mall shop name), shop_avatar_url (Douyin Mall shop avatar URL), image_url, main_image_urls (Main and carousel image URLs of the pro…), detail_image_urls (Long detail-image URLs of the product); 17 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=douyin.
- Example request body:
{
"platform": "douyin",
"action": "product_detail",
"params": {
"product_id": "3836720422792070096"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | douyin | Platform identifier, fixed value. |
action | body | string | Yes | product_detail | Capability identifier, fixed value. |
product_id | body.params | Not declared | Yes | - | A numeric Douyin product ID returned by product_search or live_product_search. It is not a SKU ID, promotion ID, title, or URL. |
Code samples
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "douyin",
"action": "product_detail",
"params": {
"product_id": "3836720422792070096"
}
}'[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
There is no real sample for these example parameters yet: this shows the response shape and fields from the contract, with … as placeholders. It is not the result of a real call.
{
"id": "req_…",
"platform": "douyin",
"action": "product_detail",
"results": {
"product_id": …,
"title": …,
"price_cny": …,
"discount_price_cny": …,
"sales_text": …,
"sold_count": …,
"shop_id": …,
"shop_name": …,
"shop_avatar_url": …,
"image_url": …,
"main_image_urls": …,
"detail_image_urls": …,
"assurances": …,
"shipping_fee_text": …,
"shipping_estimate_text": …,
"variant_groups": …,
"on_sale": …,
"platform": …
},
"billing": {
"charged": …,
"charged_usd": …,
"balance_after_usd": …,
…
},
"quota": { … }
}Response fields
Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
product_id | Stable Douyin Mall product ID. |
title | Title. null when the platform has no titles (for example text-only posts). |
price_cny | Displayed product price in yuan. |
discount_price_cny | Current public discount price in yuan; never derived from the list price when missing. |
sales_text | Sales figure exactly as the product page shows it. |
sold_count | Units sold that the product page currently shows; a snapshot at read time, not one creator's sales. |
shop_id | Douyin Mall shop ID. |
shop_name | Douyin Mall shop name. |
shop_avatar_url | Douyin Mall shop avatar URL. |
image_url | Image link. Capabilities with several images may return an image_urls array. |
main_image_urls | Main and carousel image URLs of the product. |
detail_image_urls | Long detail-image URLs of the product. |
assurances | Service assurance labels the product shows. |
shipping_fee_text | Shipping fee or ship-from note exactly as the page shows it. |
shipping_estimate_text | Estimated dispatch note exactly as the page shows it. |
variant_groups | Variant groups and their options; only group names, option names and public option IDs, no price or stock per option. |
on_sale | Whether the product showed as on sale when it was read. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
FAQ
Where do I get a product_id?
From the results of the Douyin Product search or Live product search capability, which carry the numeric Douyin Mall product ID. Pass that number, not the SKU ID, promotion ID or product title that also appear in some results; only the product ID identifies the listing here.
Does sold_count show what a creator sold?
No. It is the units-sold figure the product page shows publicly at the time of the call, across the whole product, so it says nothing about a particular creator or live stream. Store it with the call date to build a sales trend, and keep sales_text for the wording exactly as the page shows it.
Why is discount_price_cny missing for some products?
It is filled only when the product shows a public discounted price as you call. When it is absent, treat price_cny as the price on display; the discount is never estimated or derived from it. Both values are in yuan, so you can compare them directly when both are present.
Errors and billing
- 401
- Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
- 422
- Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
- 402
- Insufficient balance. Top up first.
- 429
- The account's per-minute request limit was reached (all of its API keys count together; a key's own lower limit applies first). Wait for Retry-After and try again; a rate package in the console raises the limit.
- 503
- Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
- 200 empty
- The request completed without data and is not charged (billing.reason = empty_result_refunded).