Apinoa Docs

Catalog

列出 TikTok Shop 某个店铺的商品,每页 30 件。

查看原始 .mdx
GET | POST /v1/tiktokshop/catalog

参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。

参数

参数类型必填说明
idstring是The store, by the marketplace's own id (on Shopify: its host or any URL on it).
cursorstringThe previous page's cursor, for the next 30 products.
regionstringBuyer 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="
  }
}

错误

状态代码含义
400INVALID_CURSOR该 cursor 不是本操作返回的。请不带它重新开始。
400INVALID_PARAMS参数缺失、未知或超出范围。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_BALANCE余额不足以支付本次调用。请在控制台充值。
404NOT_FOUND店铺不存在。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_ERROR平台返回了无法使用的内容。请退避后重试。

全部错误代码见 Errors。失败的调用不计费。

价格

价格 每次调用 $0.001。标价;单日调用超过 1,000 次后单价下调。

说明

  • id 是店铺的卖家 id(搜索结果项的 seller.id),或店铺 URL(shop.tiktok.com/us/store/<名称>/<id>)。
  • 翻页: 传入上一次响应的 cursor 获取接下来的 30 件。最后一页没有 cursor。
  • 没有在售商品的店铺返回空的第一页。

本页内容