TikTok Shop 类目商品
curl --request POST \
--url https://api.socq.ai/v1/tiktok-shop/category-products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category_id": "<string>",
"callback_url": "<string>",
"region": "US",
"results_limit": 30
}
'import requests
url = "https://api.socq.ai/v1/tiktok-shop/category-products"
payload = {
"category_id": "<string>",
"callback_url": "<string>",
"region": "US",
"results_limit": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category_id: '<string>',
callback_url: '<string>',
region: 'US',
results_limit: 30
})
};
fetch('https://api.socq.ai/v1/tiktok-shop/category-products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/tiktok-shop/category-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category_id' => '<string>',
'callback_url' => '<string>',
'region' => 'US',
'results_limit' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/tiktok-shop/category-products"
payload := strings.NewReader("{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/tiktok-shop/category-products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/tiktok-shop/category-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}TikTok Shop
TikTok Shop 类目商品
获取 TikTok Shop 某个类目下的商品。
POST
/
v1
/
tiktok-shop
/
category-products
TikTok Shop 类目商品
curl --request POST \
--url https://api.socq.ai/v1/tiktok-shop/category-products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category_id": "<string>",
"callback_url": "<string>",
"region": "US",
"results_limit": 30
}
'import requests
url = "https://api.socq.ai/v1/tiktok-shop/category-products"
payload = {
"category_id": "<string>",
"callback_url": "<string>",
"region": "US",
"results_limit": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category_id: '<string>',
callback_url: '<string>',
region: 'US',
results_limit: 30
})
};
fetch('https://api.socq.ai/v1/tiktok-shop/category-products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/tiktok-shop/category-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category_id' => '<string>',
'callback_url' => '<string>',
'region' => 'US',
'results_limit' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/tiktok-shop/category-products"
payload := strings.NewReader("{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/tiktok-shop/category-products")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/tiktok-shop/category-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category_id\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"region\": \"US\",\n \"results_limit\": 30\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}TikTok Shop 类目商品
像买家一样浏览 TikTok Shop 的某个类目。传入类目 ID,返回该类目下的商品,包含标题、售价、销量、评分、评论数、店铺和图片。配合 TikTok Shop Categories 可以把一个垂直品类整体扫一遍,比较不同子类目的价格带,或者观察一个类目的畅销品如何随时间变化。{
"category_id": "601450",
"region": "US",
"results_limit": 30
}
标准结果字段
任务结果使用下方稳定的 SocQ 字段。系统会统一来源特有的字段名和格式,但不会推断或补充来源未提供的数据。如需缩小返回字段集合,MCP 查询使用fields,Typed 工具使用 _result_fields,CLI 使用 --result-fields。声明字段的值为 null 时仍会保留。
| 字段 | 类型 | 可空 | 说明 |
|---|---|---|---|
id | string | 是 | 当前结果项的唯一标识。 |
platform | string | 否 | 结果所属的平台,例如 instagram 或 linkedin。 |
resource | string | 否 | 该结果对应的 SocQ 资源,例如 videos 或 comments。 |
type | string | 否 | 结果项的类别,例如 video、post 或 comment。 |
url | string | 是 | 结果项的公开访问地址(如可获得)。 |
published_at | string | 是 | 源内容的发布时间(如可获得),使用 ISO 8601 格式。 |
collected_at | string | 否 | SocQ 采集或处理该结果的时间,使用 ISO 8601 格式。 |
title | string | 是 | 商品标题。 |
text | string | 是 | 商品描述。 |
seller | object | 是 | 商品或条目关联的卖家。 |
seller.id | string | 是 | 卖家的唯一标识。 |
seller.username | string | 是 | 账号的公开用户名或账号标识。 |
seller.name | string | 是 | 卖家的显示名称。 |
seller.url | string | 是 | 卖家的公开访问地址(如可获得)。 |
seller.avatar_url | string | 是 | 账号头像图片的地址。 |
seller.is_verified | boolean | 是 | 账号是否已通过平台认证。 |
seller.is_private | boolean | 是 | 账号是否为私密账号。 |
price | object | 是 | 条目或商品的价格信息。 |
price.amount | number | 是 | 货币金额的数值。 |
price.currency | string | 是 | 货币金额所使用的币种代码或符号。 |
price.formatted | string | 是 | 便于阅读的价格或薪酬文本。 |
rating | number | 是 | 平台报告的商品平均评分。 |
reviews_count | integer | 是 | 评价数量。 |
sold_count | integer | 是 | 已售数量(如有报告)。 |
media | array<object> | 是 | 结果附带的图片、视频或其他媒体。 |
media.type | string | 是 | 媒体类型,例如 image 或 video。 |
media.url | string | 是 | 媒体文件的地址。 |
media.thumbnail_url | string | 是 | 媒体预览图的地址。 |
media.width | integer | 是 | 媒体宽度,单位为像素。 |
media.height | integer | 是 | 媒体高度,单位为像素。 |
media.duration_seconds | number | 是 | 媒体时长,单位为秒。 |
任务完成响应
{
"code": 200,
"data": {
"task_id": "example-tiktok-shop-category-products",
"status": "succeeded",
"public_id": "tiktok-shop/category-products",
"result_count": 1,
"credits_amount": 0.5,
"results": {
"limit": 50,
"next_cursor": null,
"has_more": false,
"schema_id": "product",
"schema_version": "1.0",
"items": [
{
"id": "1731322329079386551",
"platform": "tiktok-shop",
"resource": "category-products",
"type": "product",
"url": "https://shop.tiktok.com/us/pdp/tktk-443-count-pimple-patches-hydrocolloid-acne-strips-dots/1731322329079386551",
"published_at": null,
"collected_at": "2026-11-17T14:43:15.057308Z",
"title": "TKTK 443-Count Fragrance-Free Hydrocolloid Pimple Patches Bulk Pack - Multiple Sizes (Dots, Strips, Contoured), Blemish Prone Skin, 6hr Flattening, Skin Repair, Anti-Blemish Acne Treatments, Pimple Extraction, Self Care",
"text": "TKTK 443-Count Fragrance-Free Hydrocolloid Pimple Patches Bulk Pack - Multiple Sizes (Dots, Strips, Contoured), Blemish Prone Skin, 6hr Flattening, Skin Repair, Anti-Blemish Acne Treatments, Pimple Extraction, Self Care",
"seller": {
"id": "7496006391254452663",
"username": null,
"name": "TKTK Patch",
"url": null,
"avatar_url": null,
"is_verified": null,
"is_private": null
},
"price": {
"amount": 18.99,
"currency": "USD",
"formatted": "18.99"
},
"rating": null,
"reviews_count": null,
"sold_count": null,
"media": [
{
"type": "image",
"url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/fe6022f24d944922a3fe9a2adcf30019~tplv-fhlh96nyum-crop-webp:600:600.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=d741f1be&idc=useast5&from=2378011839",
"thumbnail_url": null,
"width": 600,
"height": 600,
"duration_seconds": null
},
{
"type": "image",
"url": "https://p19-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/fe6022f24d944922a3fe9a2adcf30019~tplv-fhlh96nyum-crop-webp:600:600.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=d741f1be&idc=useast5&from=2378011839",
"thumbnail_url": null,
"width": 600,
"height": 600,
"duration_seconds": null
}
]
}
]
}
}
}
请求体
application/json
通过 category_id 提供从 TikTok Shop Categories 获取的类目 ID。region 默认 US,支持 US、SG、MY、PH、TH、VN、ID、JP 和 MX。results_limit 默认 30,可填 1–500 之间的整数。每件商品计 0.5 积分。

