Catalog
列出 TikTok Shop 某个店铺的商品,每页 30 件。
GET | POST /v1/tiktokshop/catalog参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | The store, by the marketplace's own id (on Shopify: its host or any URL on it). |
cursor | string | The previous page's cursor, for the next 30 products. | |
region | string | Buyer country as ISO 3166-1 alpha-2; sets availability, shipping and price. |
请求
curl "https://gateway.apinoa.com/v1/tiktokshop/catalog?id=7495904598724610138" \
-H "x-api-key: $APINOA_API_KEY"响应
在 data 中返回 SearchResult。 真实响应的节选:数组只保留前几项,长文本已截断。
{
"success": true,
"data": {
"marketplace": "tiktokshop",
"page": {
"index": 1,
"size": 30
},
"items": [
{
"marketplace": "tiktokshop",
"id": "1730242444274471002",
"url": "https://shop.tiktok.com/us/pdp/mini-bluetooth-5-4-true-wireless-in-ear-earphones-by-invisible/1730242444274471002",
"title": "MSHUKCOE Mini Invisible True Wireless In-Ear Earphones - Bluetooth 5.4, Noise Cancelling, Stereo Audio, True Wireless D…",
"price": {
"currency": "USD",
"amount": 18.99
},
"priceRange": {
"min": {
"currency": "USD",
"amount": 18.99
},
"max": {
"currency": "USD",
"amount": 54.47
}
},
"brand": "MSHUKCOE",
"rating": {
"average": 4.4,
"count": 33593
},
"seller": {
"id": "7495904598724610138",
"name": "Listening Digital"
},
"salesCount": 234278,
"delivery": {
"free": true
},
"imageUrl": "https://p19-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/cb5e11c34d3e45cab987b227a2996f9f~tplv-fhlh96ny…",
"variantCount": 10,
"badges": [
"Free shipping"
],
"promotions": [],
"attributes": []
}
],
"cursor": "30_WzE4NSwyOTkwMDAwMCwxNzkxMTc4NTk1NTczLCIxNzMyNzIxNDU2OTYyNDQxMzA2Il0="
}
}错误
| 状态 | 代码 | 含义 |
|---|---|---|
| 400 | INVALID_CURSOR | 该 cursor 不是本操作返回的。请不带它重新开始。 |
| 400 | INVALID_PARAMS | 参数缺失、未知或超出范围。消息中会指出是哪一个。 |
| 401 | UNAUTHORIZED | 缺少 x-api-key 请求头,或密钥已吊销或未知。 |
| 402 | INSUFFICIENT_BALANCE | 余额不足以支付本次调用。请在控制台充值。 |
| 404 | NOT_FOUND | 店铺不存在。 |
| 429 | MARKETPLACE_SATURATED | 并发调用过多。请等待 Retry-After 秒后重试。 |
| 502 | UPSTREAM_ERROR | 平台返回了无法使用的内容。请退避后重试。 |
全部错误代码见 Errors。失败的调用不计费。
价格
价格 每次调用 $0.001。标价;单日调用超过 1,000 次后单价下调。
说明
id是店铺的卖家 id(搜索结果项的seller.id),或店铺 URL(shop.tiktok.com/us/store/<名称>/<id>)。- 翻页: 传入上一次响应的
cursor获取接下来的 30 件。最后一页没有cursor。 - 没有在售商品的店铺返回空的第一页。