Douyin Live product search API
API health
- 24h health
- Limited
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Find up to three Douyin products sold in live streams now for a keyword. Get SKU, title, CNY price, shop and live room ID. The room ID applies to this search only. It does not attribute past live sales.
Send POST https://api.everyinfra.com/api/v1/social with platform set to douyin and action set to live_product_search. 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
#Please help me write a data collection script with the EveryInfra Douyin Live product search endpoint (douyin/live_product_search).
How the endpoint works:
- 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 live_product_search, and put the parameters inside params.
- Required parameters:
- keyword: A Douyin Mall product search phrase. Only products that carry a live tag and a live room ID at the time of the request come back; the results are not a record of what any given creator has sold on live streams.
- Optional parameters:
- limit: The most rows to return in this call, an integer from 1 to 3. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. (default: 3)
- Returns a list of records. Main fields of each record: product_id (Stable Douyin Mall product ID), sku_id, title, image_url, price_cny (Displayed product price in yuan), shop_id (Douyin Mall shop ID), live_room_id, is_live_product, source_keyword (The search term this row matched).
- Example request body:
{
"platform": "douyin",
"action": "live_product_search",
"params": {
"keyword": "美食"
}
}
- 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 | live_product_search | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | A Douyin Mall product search phrase. Only products that carry a live tag and a live room ID at the time of the request come back; the results are not a record of what any given creator has sold on live streams. |
limit | body.params | integer (1–3) | No | 3 | The most rows to return in this call, an integer from 1 to 3. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |
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": "live_product_search",
"params": {
"keyword": "美食"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "douyin", "action": "live_product_search", "results": [ { "product_id": "3758214740665565640", "sku_id": "3614004672311810", "title": "法丽兹巧克力夹心曲奇抹茶饼干盒装办公室下午茶零食休闲食品小吃", "image_url": "https://p3-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_327d8faf8492a4d6722ddbd815f29bdb_sx_412657_www800-800~tplv-5mmsx3fupr-resize:480:480.jpeg?biz_tag=ecom_search&s=PackSource_EcomSearch&sc=ecom_hybrid", "price_cny": 0.01, "shop_id": "38484121", "live_room_id": "7705130303337106202", "is_live_product": true, "source_keyword": "美食", "platform": "douyin" }, { "product_id": "3681066470168723459", "sku_id": "3402912365175042", "title": "飞旺臭干子辣条正宗湖南长沙臭干子网红校园童年零食麻辣休闲小吃", "image_url": "https://p26-item.ecombdimg.com/img/ecom-shop-material/jpeg_m_80a5aca284dcf0e715408640274c1278_sx_627143_www800-800~tplv-5mmsx3fupr-resize:480:480.jpeg?biz_tag=ecom_search&s=PackSource_EcomSearch&sc=ecom_hybrid", "price_cny": 0.01, "shop_id": "17049985", "live_room_id": "7705303723047701257", "is_live_product": true, "source_keyword": "美食", "platform": "douyin" } ], "count": 3, "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. |
sku_id | Keeps the platform's own meaning |
title | Title. null when the platform has no titles (for example text-only posts). |
image_url | Image link. Capabilities with several images may return an image_urls array. |
price_cny | Displayed product price in yuan. |
shop_id | Douyin Mall shop ID. |
live_room_id | Keeps the platform's own meaning |
is_live_product | Keeps the platform's own meaning |
source_keyword | The search term this row matched. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.