API接口名称:
item_get - 获得抖音商品详情
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item | item[] | 0 | 宝贝详情数据 |
注册申请试用:
点击注册
请求参数:num_iid=3514453298386183303
参数说明:num_iid:抖音商品ID
请求示例
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/douyin/item_get/?key=<您自己的apiKey>&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));
?>
响应示例
{
"item": {
"num_iid": "3514453298386183303",
"title": "【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女春装新款 高档磨毛衬衫 ",
"desc_short": "",
"price": 72,
"total_price": "",
"suggestive_price": "",
"orginal_price": 72,
"nick": "黄岛区古蒂歌服饰店",
"num": "",
"detail_url": "",
"pic_url": "https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876",
"brand": "Gudige/古蒂歌",
"brandId": null,
"rootCatId": 20005,
"cid": 20179,
"desc": "<p><img src="https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136" style="max-width: 100%;"/><img src="https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136" style="max-width: 100%;"/><img src="https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095" style="max-width: 100%;"/><img src="https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800" style="max-width: 100%;"/><img src="https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070" style="max-width: 100%;"/><img src="https://p3-aio.ecombdimg.com/obj/temai/330154