万邦抖音根据关键词取商品列表 API 返回值说明

item_search-根据关键词取商品列表 [查看演示] API测试工具 注册开通

douyin.item_search

公共参数

请求地址: https://api-gw.onebound.cn/douyin/item_search

名称 类型 必须 描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本
请求参数

请求参数:q=连衣裙&page=1&sort=

参数说明:q:关键词,
sort:排序:sort=bid 价格升序 sort=_bid 价格降序 sort=_sale 销量降序

响应参数

Version: Date:

名称 类型 必须 示例值 描述
items
items[] 0 按关键字搜索商品
请求示例
	
-- 请求示例 url 默认请求参数已经URL编码处理
curl -i "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort="
<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=";
$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));
?>
<?php
//定义缓存目录和引入文件
define("DIR_RUNTIME","runtime/");
define("DIR_ERROR","runtime/");
define("SECACHE_SIZE","0");
//SDK下载地址 https://open.onebound.cn/help/demo/sdk/onebound-api-sdk.zip
include ("ObApiClient.php");

$obapi = new otao\ObApiClient();
$obapi->api_url = "http://api-gw.onebound.cn/";
$obapi->api_urls = array("http://api-gw.onebound.cn/","http://api-1.onebound.cn/");//备用API服务器
$obapi->api_urls_on = true;//当网络错误时,是否启用备用API服务器
$obapi->api_key = "<您自己的apiKey>";
$obapi->api_secret = "<您自己的apiSecret>";
$obapi->api_version ="";
$obapi->secache_path ="runtime/";
$obapi->secache_time ="86400";
$obapi->cache = true;

$api_data = $obapi->exec(
                array(
	                "api_type" =>"douyin",
	                "api_name" =>"item_search",
	                "api_params"=>array (
  'q' => '连衣裙',
  'page' => '1',
  'sort' => '',
)
                )
            );
 var_dump($api_data);
?>
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.nio.charset.Charset;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.PrintWriter;
import java.net.URLConnection;

public class Example {
	private static String readAll(Reader rd) throws IOException {
		StringBuilder sb = new StringBuilder();
		int cp;
		while ((cp = rd.read()) != -1) {
			sb.append((char) cp);
		}
		return  sb.toString();
	}
	public static JSONObject postRequestFromUrl(String url, String body) throws IOException, JSONException {
		URL realUrl = new URL(url);
		URLConnection conn = realUrl.openConnection();
		conn.setDoOutput(true);
		conn.setDoInput(true);
		PrintWriter out = new PrintWriter(conn.getOutputStream());
		out.print(body);
		out.flush();
		InputStream instream = conn.getInputStream();
		try {
			BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
			String jsonText = readAll(rd);
			JSONObject json = new JSONObject(jsonText);
			return json;
		} finally {
			instream.close();
		}
	}
	public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException {
		URL realUrl = new URL(url);
		URLConnection conn = realUrl.openConnection();
		InputStream instream = conn.getInputStream();
		try {
			BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
			String jsonText = readAll(rd);
			JSONObject json = new JSONObject(jsonText);
			return json;
		} finally {
			instream.close();
		}
	}
	public static void main(String[] args) throws IOException, JSONException {
		// 请求示例 url 默认请求参数已经URL编码处理
		String url = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=";
		JSONObject json = getRequestFromUrl(url);
		System.out.println(json.toString());
	}

}
//using System.Net.Security;
//using System.Security.Cryptography.X509Certificates;
private const String method = "GET";
static void Main(string[] args)
{
	String bodys = "";
	// 请求示例 url 默认请求参数已经做URL编码
	String url = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=";
	HttpWebRequest httpRequest = null;
	HttpWebResponse httpResponse = null; 
	if (url.Contains("https://"))
	{
		ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
		httpRequest = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url));
	}
	else
	{
		httpRequest = (HttpWebRequest)WebRequest.Create(url);
	}
	httpRequest.Method = method;
	if (0 < bodys.Length)
	{
		byte[] data = Encoding.UTF8.GetBytes(bodys);
		using (Stream stream = httpRequest.GetRequestStream())
		{
		stream.Write(data, 0, data.Length);
		}
	}
	try
	{
		httpResponse = (HttpWebResponse)httpRequest.GetResponse();
	}
	catch (WebException ex)
	{
		httpResponse = (HttpWebResponse)ex.Response;
	}
	Console.WriteLine(httpResponse.StatusCode);
	Console.WriteLine(httpResponse.Method);
	Console.WriteLine(httpResponse.Headers);
	Stream st = httpResponse.GetResponseStream();
	StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
	Console.WriteLine(reader.ReadToEnd());
	Console.WriteLine("\n");
}
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
	return true;
}
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort="
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)
url := fmt.Sprintf("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=", params)
req, err := http.NewRequest("GET", url, nil)
if err != nil {
    panic(err)
}
req.Header.Set("Authorization", apiKey)

client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
    panic(err)
}
defer resp.Body.Close()

body, err := ioutil.ReadAll(resp.Body)
if err != nil {
    panic(err)
}

fmt.Println(string(body))
fetch('https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({"q":"\u8fde\u8863\u88d9","page":"1","sort":""})// request parameters here
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
<script src="js/obapi.js"></script>
<script type="text/javascript">
obAPI.config({
    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
    api_url: "https://api-gw.onebound.cn", // 
    api_key: "<您自己的apiKey>", // 必填,
    api_secret: "<您自己的apiSecret>", //
    lang: "cn", // 
    timestamp: "", // 必填,生成签名的时间戳
    nonceStr: "", // 必填,生成签名的随机串
    signature: "",// 必填,签名
    jsApiList: [] // 必填,需要使用的JS接口列表
});
</script>
<div id="api_data_box"></div>
<script type="text/javascript">
obAPI.exec(
     {
     "api_type":"douyin",
     "api_name" : "item_search",
     "api_params": {"q":"\u8fde\u8863\u88d9","page":"1","sort":""}//q=连衣裙&page=1&sort=,#具体参数请参考文档说明
     },
     function(e){
        document.querySelector("#api_data_box").innerHTML=JSON.stringify(e)
     }
);
</script>
require "net/http"
require "uri"
url = URI("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body 
import Foundation
 
let url = URL(string: "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=")!
let task = URLSession.shared.dataTask(with: url) { data, response, error in
    guard let data = data else {
        print("Error: No data was returned")
        return
    }
     
    if let data = String(data: data, encoding: .utf8) {
        print(data)
    }
}
task.resume()
NSURL *myUrl = [NSURL URLWithString:@"https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort="];

NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:myUrl cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60.0];

[request setHTTPMethod:@"GET"];
NSError *error;
NSURLResponse *response;

NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];

NSString *result = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"%@",result);
#include<stdio.h>
#include <stdlib.h>
#include<string.h>
#include<curl/curl.h>

int main(){
  CURL *curl;  
  CURLcode res;   
  struct curl_slist *headers=NULL; 

  char url[] = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=";
  curl_global_init(CURL_GLOBAL_ALL); 
  curl = curl_easy_init(); 

  if(curl) {
    curl_easy_setopt(curl, CURLOPT_URL,url);
    headers = curl_slist_append(headers, "Content-Type: application/json"); 

    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); 
    res = curl_easy_perform(curl);

    if(res != CURLE_OK){
      printf("curl_easy_perform(): %s\n",curl_easy_strerror(res));                     
    }
    curl_easy_cleanup(curl);          
  }
  curl_global_cleanup();
  return 0;
}
#include<iostream>
#include<string>
#include<curl/curl.h>

using namespace std;

static size_t Data(void *ptr, size_t size, size_t nmemb, string *stream)
{
    std::size_t realSize = size *nmemb;
    auto *realPtr = reinterpret_cast<char *>(ptr);

    for (std::size_t i=0;i<realSize;++i) {
        *(stream) += *(realPtr + i);
    }

    return realSize;
}

int main(){

     CURL *curl;
     CURLcode result;
     string readBuffer;
     curl = curl_easy_init();

     if(curl) {

         curl_easy_setopt(curl, CURLOPT_URL, "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=");
         curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
         curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, Data);
         curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);

         result = curl_easy_perform(curl);

         if(result == CURLE_OK) {
             cout<<readBuffer<<endl;
         }else{
             cerr<<"curl_easy error:"<<curl_easy_strerror(result)<<endl;
         }

         curl_easy_cleanup(curl);
     }
     return 0;
}
const https = require("https");

https.get("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=", (resp) => {
  let data = "";

  resp.on("data", (chunk) => {
    data += chunk;
  });

  resp.on("end", () => {
    console.log(data);
  });
}).on("error", (err) => {
  console.log("Error: " + err.message);
});
import java.net.HttpURLConnection
import java.net.URL

fun main() {
    val url = URL("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=")
    val con = url.openConnection() as HttpURLConnection
    con.requestMethod = "GET"

    val responseCode = con.responseCode
    if (responseCode == HttpURLConnection.HTTP_OK) { // success
        val inputLine = con.inputStream.bufferedReader().use { it.readText() }
        println(inputLine)
    } else {
        println("GET request failed")
    }
}
use std::io::{self, Read};
use reqwest;

fn main() -> io::Result<()> {

    let mut resp = reqwest::get("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=")?;
    let mut content = String::new();
    resp.read_to_string(&mut content)?;

    println!("{}", content);

    Ok(())
}

library(httr)
r <- GET("https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=")
content(r)
url = "https://api-gw.onebound.cn/douyin/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=连衣裙&page=1&sort=";
response = webread(url);
disp(response);
响应示例
{
	"items": {
		"page": "1",
		"real_total_results": 500,
		"total_results": 500,
		"page_size": 20,
		"pagecount": 25,
		"item": [
			{
				"title": "【清子】显瘦小蛮腰~新款定制设计春装卫衣连衣裙L0788",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_cbrNegKF_70732696448192514710931_f48788ff100d9afb00d63ed437357f29_sx_920709_www2891-2891",
				"promotion_price": 169,
				"price": 169,
				"sales": 17872,
				"num_iid": 3536467110454782000,
				"shop_name": "MDNW服饰",
				"shop_id": 9088931,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536467110454782196&pick_source=Nvt7YLu"
			},
			{
				"title": "【诗雨推荐】时尚气质休闲连衣裙",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_yjSJQYM_70770131096798824990399_b8a44fa0240e628775f3b8c4fbee085d_sx_342317_www782-782",
				"promotion_price": 59.9,
				"price": 59.9,
				"sales": 19871,
				"num_iid": 3536848829968219000,
				"shop_name": "星辰服饰店铺",
				"shop_id": 6970399,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536848829968218897&pick_source=NvndGU9"
			},
			{
				"title": "晶咕 蕾蕾宠粉LL&JINGU/「不挑人」V领显瘦撞色设计的连衣裙",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_yAcTOwNE_70755344657952115580027_9faedfb6047eaf1a87f6cabde09476a7_sx_245846_www1080-1080",
				"promotion_price": 159,
				"price": 159,
				"sales": 15298,
				"num_iid": 3537767536399665700,
				"shop_name": "晶咕旗舰店",
				"shop_id": 27226027,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537767536399665722&pick_source=Nvtt1n1"
			},
			{
				"title": "TONGXUAN/同瑄春夏季新款碎花连衣裙0313.2058",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_uEvMYbQo_70745289030580472430369_27dd8add86a7996ef8e397d401099068_sx_218598_www1170-1170",
				"promotion_price": 159.9,
				"price": 159.9,
				"sales": 6001,
				"num_iid": 3537264606424760000,
				"shop_name": "晟达服饰",
				"shop_id": 34202369,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537264606424759942&pick_source=Nvn1XRe"
			},
			{
				"title": "【清子】时尚无敌 ~新款定制 链条卫衣连衣裙L0789",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_cbrNegKF_70773595225615240000931_886c00ad1ebeab7423044faa9524d549_sx_701912_www2761-2761",
				"promotion_price": 149,
				"price": 149,
				"sales": 14638,
				"num_iid": 3537798859512253400,
				"shop_name": "MDNW服饰",
				"shop_id": 9088931,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537798859512253339&pick_source=Nvt3BPJ"
			},
			{
				"title": "Lenakids 22夏季 蝴蝶结爱心公主连衣裙22022503",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_ejmsuggl_70752756065601129260328_fd86404f26cb6d2e2d70daa3ca80a132_sx_485473_www1920-1920",
				"promotion_price": 129,
				"price": 129,
				"sales": 17406,
				"num_iid": 3537637931424610000,
				"shop_name": "莉娜kids-YG店",
				"shop_id": 36857328,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537637931424609759&pick_source=NvnLTgd"
			},
			{
				"title": "女童夏季连衣裙2022新款碎花泡泡袖公主裙夏女宝宝夏装短袖裙子",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/temai/af695f0729ae83a24c325bcfd5aec192www800-800",
				"promotion_price": 19.9,
				"price": 19.9,
				"sales": 33642,
				"num_iid": 3534622230833180000,
				"shop_name": "萌小兜童装工厂店",
				"shop_id": 14088342,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3534622230833179994&pick_source=NvtgRFD"
			},
			{
				"title": "Disney/迪士尼儿童碎花两件套连衣裙XFW1BZ115①",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/temai/efcf9481abd785adc282276ee7fac9e3www800-800",
				"promotion_price": 139.9,
				"price": 139.9,
				"sales": 14398,
				"num_iid": 3533677142598661000,
				"shop_name": "Disney小店",
				"shop_id": 9944359,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3533677142598661014&pick_source=Nvtwqfy"
			},
			{
				"title": "初为家  春季新品银杏叶印花自带腰带连衣裙 - 9966#",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/temai/397bdc8c8631c4255cf1fb96a8b3d490www1080-1080",
				"promotion_price": 6666,
				"price": 6666,
				"sales": 11775,
				"num_iid": 3532954784934043000,
				"shop_name": "初为时尚大码女装",
				"shop_id": 699303,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3532954784934042902&pick_source=NvtWDtU"
			},
			{
				"title": "心动粉黛连衣裙XZ2090",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_PzFHhbHs_70818007540879526520081_c791eaf5449f2e05e1e3d847aac8552b_sx_177192_www1079-1079",
				"promotion_price": 199,
				"price": 199,
				"sales": 10894,
				"num_iid": 3540451021136484400,
				"shop_name": "YINZ小银子女装",
				"shop_id": 12839081,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3540451021136484138&pick_source=NvtG65c"
			},
			{
				"title": "圆脸酥新款显瘦牛仔连衣裙 送同款腰链",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_UzNjkRcp_70845668187397491550759_6a3a5112365b685c464ed55396c10ee8_sx_207425_www800-800",
				"promotion_price": 129.9,
				"price": 129.9,
				"sales": 17698,
				"num_iid": 3541937150696256000,
				"shop_name": "圆脸酥服装工厂",
				"shop_id": 12306759,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3541937150696256191&pick_source=NvtoWpT"
			},
			{
				"title": "2022年精梳莫代尔家居服睡裙V字百褶设计连衣裙1059",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/temai/bbc089c8205f78211d4830d7167be0f5www800-800",
				"promotion_price": 35,
				"price": 35,
				"sales": 42535,
				"num_iid": 3509952969334515000,
				"shop_name": "大荣服装店",
				"shop_id": 4378674,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3509952969334514955&pick_source=NvnGMKR"
			},
			{
				"title": "TONGXUAN/同瑄春夏季新款连衣裙0312.2041",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_uEvMYbQo_70741570862837271390369_1bd285f4891ba56efeccee4753239110_sx_171847_www1170-1170",
				"promotion_price": 149.9,
				"price": 149.9,
				"sales": 4261,
				"num_iid": 3537078793221058000,
				"shop_name": "晟达服饰",
				"shop_id": 34202369,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537078793221057827&pick_source=NvnLNDw"
			},
			{
				"title": "【大喜自制】CP裙连衣裙优雅气质长裙",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_uvMttNQo_70770253450812623700320_2551e5b1fd36e1ed1f3d5cdf4d5cb722_sx_82756_www600-600",
				"promotion_price": 359,
				"price": 359,
				"sales": 11118,
				"num_iid": 3536498199617493500,
				"shop_name": "大喜女装店",
				"shop_id": 31046320,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3536498199617493444&pick_source=Nvtp4nX"
			},
			{
				"title": "仙女定制·韩版收腰设计感POLO领显瘦连衣裙6687#",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_BmscpSV_70786600292214377080577_3fc24c8158db19f069fb1a6ef4a520e0_sx_908521_www1440-1681",
				"promotion_price": 39.9,
				"price": 39.9,
				"sales": 9868,
				"num_iid": 3538414620425485000,
				"shop_name": "仙女定制官方帐号",
				"shop_id": 2780577,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3538414620425484697&pick_source=NvtErRV"
			},
			{
				"title": "2021新款吊带衬衫减龄白色连衣裙洋气两件套装",
				"pic_url": "https://p9-aio.ecombdimg.com/obj/temai/d8b9b52a523dee34c21b80f14a20a79f478f837bwww800-800",
				"promotion_price": 79,
				"price": 79,
				"sales": 23896,
				"num_iid": 3493447132738898400,
				"shop_name": "衣漫朵",
				"shop_id": 6335140,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3493447132738898360&pick_source=Nvt7KP4"
			},
			{
				"title": "2130旗袍裙子连衣裙中长款祺包裙2022年新款年轻改良旗袍版少女",
				"pic_url": "https://p3-aio.ecombdimg.com/obj/temai/b406e48fe59f3141e98fa15b0f0345843dc36ad8www750-750",
				"promotion_price": 79.9,
				"price": 79.9,
				"sales": 24234,
				"num_iid": 3480085173800951000,
				"shop_name": "哇喔服饰",
				"shop_id": 3889958,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3480085173800950962&pick_source=Nvneodf"
			},
			{
				"title": "RRFG.R溶溶zero  连衣裙N1052  3.17",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_UoIznLQo_70763979360951503680152_d117fd3c6eb2bca82272247654efbfa1_sx_197906_www800-800",
				"promotion_price": 149.9,
				"price": 149.9,
				"sales": 6898,
				"num_iid": 3537948146133031000,
				"shop_name": "溶溶高定服装",
				"shop_id": 21961152,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537948146133030735&pick_source=NvnR9gq"
			},
			{
				"title": "冰沙蜜桃连衣裙XZ2242",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_PzFHhbHs_70775320259173419930081_0fbc2a86b8227fa1762240d17ae774bc_sx_201357_www1080-1080",
				"promotion_price": 189,
				"price": 189,
				"sales": 6718,
				"num_iid": 3538407183639311000,
				"shop_name": "YINZ小银子女装",
				"shop_id": 12839081,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3538407183639310973&pick_source=NvnWosw"
			},
			{
				"title": "女童夏季连衣裙2022新款儿童韩版洋气樱桃公主裙夏装裙子",
				"pic_url": "https://p6-aio.ecombdimg.com/obj/ecom-shop-material/v1_eiXzSSw_70740828160441387850169_d8e63140c5f63eae45ba0bc3f214a1a3_sx_717003_www800-800",
				"promotion_price": 39.9,
				"price": 39.9,
				"sales": 13356,
				"num_iid": 3537041448480433000,
				"shop_name": "吉米家族旗舰店",
				"shop_id": 1921169,
				"detail_url": "https://haohuo.jinritemai.com/views/product/item2?id=3537041448480432904&pick_source=NvttnNN"
			}
		],
		"_ddf": "xpgj"
	},
	"error_code": "0000",
	"reason": "ok",
	"secache": "9fd1f6906c8b8bc9080fe69807fc5a1f",
	"secache_time": 1649835424,
	"secache_date": "2022-04-13 15:37:04",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"error": "",
	"cache": 0,
	"api_info": "today:48 max:11000",
	"execution_time": "0.048",
	"server_time": "Beijing/2022-04-13 17:02:00",
	"client_ip": "106.6.34.146",
	"call_args": {
		"q": "连衣裙",
		"start_price": "1"
	},
	"api_type": "douyin",
	"translate_language": "zh-CN",
	"translate_engine": "google_new",
	"server_memory": "0.77MB",
	"request_id": "gw-4.625691883e023",
	"last_id": "880760728"
}
异常示例
{
  "error": "item-not-found",
  "reason": "商品没找到",
  "error_code": "2000",
  "success": 0,
  "cache": 0,
  "api_info": "today:0 max:10000",
  "execution_time": 0.081,
  "server_time": "Beijing/2020-06-10 23:44:00",
  "call_args": [],
  "api_type": "douyin",
  "request_id": "4ee0ffc041242"}
相关资料
错误码解释
状态代码(error_code) 状态信息 详细描述 是否收费
0000success接口调用成功并返回相关数据
2000Search success but no result接口访问成功,但是搜索没有结果
4000Server internal error服务器内部错误
4001Network error网络错误
4002Target server error目标服务器错误
4003Param error用户输入参数错误忽略
4004Account not found用户帐号不存在忽略
4005Invalid authentication credentials授权失败忽略
4006API stopped您的当前API已停用忽略
4007Account stopped您的账户已停用忽略
4008API rate limit exceeded并发已达上限忽略
4009API maintenanceAPI维护中忽略
4010API not found with these valuesAPI不存在忽略
4012Please add api first请先添加api忽略
4013Number of calls exceeded调用次数超限忽略
4014Missing url param参数缺失忽略
4015Wrong pageToken参数pageToken有误忽略
4016Insufficient balance余额不足忽略
4017timeout error请求超时
5000unknown error未知错误
API 工具
如何获得此API
立即开通 有疑问联系客服QQ:QQ:31424016063142401606(微信同号)