请求地址: https://api-gw.onebound.cn/douyin/item_get
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
请求参数
请求参数:num_iid=3514453298386183303
参数说明:num_iid:抖音商品ID
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item | item[] | 0 | 宝贝详情数据 | |
num_iid | String | 0 | 3514453298386183303 | 商品ID |
title | String | 0 | 【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女春装新款 高档磨毛衬衫 | 商品标题 |
price | Float | 0 | 72 | 价格 |
total_price | Float | 0 | ||
orginal_price | Float | 0 | 原价 | |
nick | String | 0 | 黄岛区古蒂歌服饰店 | 卖家昵称 |
num | Int | 0 | 233 | 库存 |
sales | Int | 0 | 76 | 销量 |
detail_url | String | 0 | 商品详情 | 宝贝链接 |
desc | String | 0 | 本店默认申通快递【还有百世汇通 中通快递 中通 韵达 邮政】。商家建议尺码仅供参考。如有其它问题请及时联系客服!喜欢的赶紧购买,质量保证,买的放心,穿的也开心! | 商品备注 |
item_imgs | Mix | 0 | item_imgs[] | 商品图片 |
pic_url | String | 0 | https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876 | 宝贝图片 |
props_name | String | 0 | 商品属性名 | |
prop_imgs | prop_imgs[] | 0 | 商品属性图片列表 | |
props | Mix | 0 | 商品详情 | |
skus | skus[] | 0 | 商品规格信息列表 | |
props_list | Mix | 0 | { "0:0": "颜色:黑色","1:1": "尺码:M"} | 商品属性 |
props_img | Mix | 0 | {"0:0;1:1": "https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876"} | 属性图片 |
property_alias | String | 0 | 商品属性别名 | |
seller_info | seller_info[] | 0 | 卖家信息 | |
shop_item | Mix | 0 | [] | |
relate_items | Mix | 0 | [] |
请求示例
&secret=<您自己的apiSecret>&num_iid=3514453298386183303";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
API返回结果
---------------------------------------
{
"item": {
"num_iid": "3514453298386183303",
"title": "【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女秋装新款 高档磨毛衬衫 ",
"desc_short": "",
"price": 82,
"total_price": 0,
"suggestive_price": 0,
"orginal_price": 82,
"nick": "",
"num": 0,
"min_num": 0,
"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3514453298386183303",
"pic_url": "",
"brand": "",
"brandId": null,
"rootCatId": null,
"cid": 0,
"crumbs": [],
"created_time": "",
"modified_time": "",
"delist_time": "",
"desc": "",
"desc_img": [],
"item_imgs": [
{
"url": "https://p6-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876"
},
{
"url": "https://p6-aio.ecombdimg.com/obj/temai/f6543c94a2c3c724fd57a8c61d6e79ec7bb846f5www800-800"
},
{
"url": "https://p9-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800"
},
{
"url": "https://p6-aio.ecombdimg.com/obj/temai/104f75934f295b6395ec792ad755eed8b10f543dwww800-800"
},
{
"url": "https://p3-aio.ecombdimg.com/obj/temai/3d65927c478ab58d06ecc31e6f541d2099e2429cwww800-800"
}
],
"item_weight": "",
"item_size": "",
"location": null,
"post_fee": null,
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"video": [],
"is_virtual": "",
"sample_id": "",
"is_promotion": "",
"props_name": "",
"prop_imgs": {
"prop_img": []
},
"property_alias": "",
"props": [],
"total_sold": "",
"skus": {
"sku": []
},
"seller_id": "",
"sales": 0,
"shop_id": "sXahcZg",
"props_list": [],
"seller_info": {
"nick": "",
"item_score": null,
"score_p": null,
"delivery_score": null,
"shop_type": null,
"shop_logo": "https://p3-aio.ecombdimg.com/obj/temai/1611656872ab5f2645a9f6cf20810db68844e3e3f5cf248f0f",
"sid": 0,
"title": "古蒂歌精品女装店",
"shop_name": "古蒂歌精品女装店"
},
"tmall": "false",
"error": "",
"warning": "",
"url_log": [],
"freight": null,
"_ddf": "cdy",
"format_check": "ok",
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "13dfb7af3b9afe151343f76cf8040cc2",
"secache_time": 1665724656,
"secache_date": "2022-10-14 13:17:36",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:85 max:10000 all[179=85+75+19];expires:2030-12-31",
"execution_time": "0.252",
"server_time": "Beijing/2022-10-14 13:17:36",
"client_ip": "106.6.36.148",
"call_args": {
"num_iid": "3514453298386183303"
},
"api_type": "douyin",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "0.77MB",
"request_id": "gw-4.6348f0f062629",
"last_id": "1282504013"
}