Taobao Get Product Detail
0.075 credits/run + 6.636 credits/product
ae_taobao_get_product_detail
查询淘宝、天猫商品的 SKU、库存和详情图。`products` 接收 1–20 个字符串,每个字符串为商品链接或数字商品 ID。`freshData` 默认 `false`,设为 `true` 后会在返回结果前刷新价格和库存。`minItems` 用于指定最少返回的有效商品数;不足时任务失败,默认 `0` 表示不设下限。提交后会返回任务 ID,用该 ID 调用 `ae_get_result` 查看任务是否完成,并在完成后获取结果。单个 SKU 的库存达到 200 时会标记 `stockCapped`;`stockTotal` 表示总库存的下限。
0.075 credits/run + 6.636 credits/product
Pricing
0.075 credits/run + 6.636 credits/product
| Charge item | Price |
|---|---|
| Per successful run | 0.075 credits |
| Per returned product | 6.636 credits |
On success, 0.075 credits per run plus 6.636 credits per product returned. Successful empty results incur only the run fee. Failed tasks and result lookups are free.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
minItems | integer | No | 最低返回商品数。不足时任务失败,0 表示不限。 | 0 |
products | array | Yes | 淘宝或天猫商品链接、数字商品 ID,使用字符串。一次 1–20 件。 | — |
freshData | boolean | No | 返回前重新查询价格与库存,可能增加用时。 | false |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_taobao_get_product_detail' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"products": [
"xxx"
]
}
}'No response example available yet.


