🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. 产品数据
🇨🇳简体中文
  • 🇨🇳简体中文
  • 🇺🇸 English
  • 简介
  • 身份验证
  • 用户数据
    • 通过ID获取用户信息
      GET
    • 获取用户视频列表
      GET
    • 获取用户粉丝列表
      GET
    • 获取用户关注列表
      GET
    • 获取用户地区
      GET
    • 获取用户故事
      GET
    • 获取用户点赞的视频列表
      GET
    • 获取用户播放列表
      GET
    • 通过 ID 获取播放列表信息
      GET
    • 验证是否为TTS商家账户
      GET
    • 提取用户 user_id
      GET
    • 提取用户 sec_uid
      GET
    • 验证达人是否开通橱窗
      GET
  • 视频数据
    • 通过 ID 获取视频信息
      GET
    • 分类下的热门视频列表
      GET
    • 热门视频列表
      GET
    • 通过话题标签 ID 获取视频列表
      GET
    • 通过音乐 ID 获取视频列表
      GET
    • 通过播放 ID 获取视频列表
      GET
    • 按 ID 查询评论信息
      GET
    • 通过视频ID获取评论列表
      GET
    • 获取评论的回复列表
      GET
    • 通过 ID 获取话题标签信息
      GET
    • 通过 ID 获取音乐信息
      GET
    • 通过用户 ID 获取用户音乐列表
      GET
    • 获取与产品相关的视频列表
      GET
    • 获取与小店相关的视频列表
      GET
  • 直播数据
    • 通过 ID 获取直播间信息
    • 获取直播间榜单列表
    • 通过ID获取直播间榜单信息
    • 检查直播间是否开播
  • 产品数据
    • 通过 ID 获取产品信息
      GET
    • 获取小店的分类
      GET
    • 获取产品一级类别元数据
      GET
    • 获取产品二级类别元数据
      GET
    • 获取产品三级类别元数据
      GET
    • 通过 ID 获取小店数据
      GET
    • 获取小店内的产品列表数据
      GET
    • 通过分享链接获取小店 ID
      GET
    • 通过分享链接获取产品 ID
      GET
    • 通过类别 ID 获取web首页产品数据
      POST
    • 获取视频相关的产品列表
      GET
    • 获取用户相关产品列表
      GET
  • 搜索
    • 搜索用户
    • 搜索视频
    • 搜索标签
    • 搜索音乐
    • 搜索直播
    • 搜索产品
  • 错误码
    • 错误请求 (400)
    • 未经授权 (401)
    • 账户密钥会话过期 (428)
    • 接口限流 (429)
    • 服务器错误 (500)
  • 密钥
    • 获取有关您的 API 密钥的信息
  1. 产品数据

通过类别 ID 获取web首页产品数据

POST
https://api.tikhubapi.com/api/v1//product/home/by-category-id
Shop
通过类别 ID 获取web首页产品数据

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Examples

Responses

🟢200成功
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.tikhubapi.com/api/v1//product/home/by-category-id' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "category_id": 0,
    "exclude_product_ids": [
        "string"
    ]
}'
Response Response Example
{
    "code": 0,
    "msg": "success",
    "data": {
        "productList": [
            {
                "product_id": "1730857363039096987",
                "title": "Case for iPhone 16 Pro Max 15 Plus 14 13 12 11 XS XR Writing style MAMA Drop Protection Shockproof Soft Silicone smartphone Cover",
                "image": {
                    "height": 800,
                    "width": 800,
                    "uri": "tos-useast5-i-omjb5zjo8w-tx/11a8a7364a2949e8a42053015a9f5bb1",
                    "url_list": [
                        "https://p19-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/11a8a7364a2949e8a42053015a9f5bb1~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&from=2378011839&idc=useast8&ps=933b5bde&shcp=e0b1d153&shp=8dbd94bf&t=555f072d",
                        "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/11a8a7364a2949e8a42053015a9f5bb1~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&from=2378011839&idc=useast8&ps=933b5bde&shcp=e0b1d153&shp=8dbd94bf&t=555f072d"
                    ]
                },
                "product_price_info": {
                    "sku_id": "1730857363039162523",
                    "symbol_position": 1,
                    "show_currency_space": false,
                    "currency_show_mode": 1,
                    "currency_name": "USD",
                    "currency_symbol": "$",
                    "sale_price_decimal": "8.77",
                    "origin_price_decimal": "19.96",
                    "sale_price_format": "8.77",
                    "origin_price_format": "19.96",
                    "discount_format": "56%",
                    "discount_decimal": "0.56",
                    "reduce_price_format": "Saving $11.19",
                    "single_product_price_format": "8.77",
                    "single_product_price_decimal": "8.77",
                    "sale_price_integer_part_format": "8",
                    "sale_price_decimal_part_format": "77",
                    "decimal_point_symbol": ".",
                    "promotion_deduction_details": {
                        "seller_subtotal_deduction": "11.19",
                        "seller_subtotal_deduction_decimal": "11.19"
                    }
                },
                "rate_info": {
                    "score": 4.6,
                    "review_count": "14"
                },
                "sold_info": {
                    "sold_count": 203
                },
                "seller_info": {
                    "seller_id": "7496037292924766363",
                    "shop_name": "Ziiian",
                    "shop_logo": {
                        "height": 300,
                        "width": 300,
                        "uri": "tos-useast5-i-omjb5zjo8w-tx/b4d83585a9424c67af32201cedb29a70",
                        "url_list": [
                            "https://p19-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b4d83585a9424c67af32201cedb29a70~tplv-fhlh96nyum-resize-png:300:300.png?dr=12184&from=2422056039&idc=useast8&ps=933b5bde&shcp=d9d491bf&shp=905da467&t=555f072d",
                            "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/b4d83585a9424c67af32201cedb29a70~tplv-fhlh96nyum-resize-png:300:300.png?dr=12184&from=2422056039&idc=useast8&ps=933b5bde&shcp=d9d491bf&shp=905da467&t=555f072d"
                        ]
                    }
                },
                "seo_url": {
                    "updated_at": "1746403163497",
                    "canonical_url": "https://www.tiktok.com/shop/pdp/iphone-16-pro-max-case-by-mama-soft-silicone-drop-protection-shockproof/1730857363039096987",
                    "slug": "iphone-16-pro-max-case-by-mama-soft-silicone-drop-protection-shockproof",
                    "type": 2,
                    "version": 2
                },
                "product_marketing_info": {
                    "placement_labels": {
                        "0": [
                            {
                                "id": "8",
                                "default_style": 10,
                                "is_show_icon": true,
                                "type": 8,
                                "text": "Free shipping",
                                "icon": {
                                    "light_icon": {
                                        "height": 800,
                                        "width": 800,
                                        "minetype": "",
                                        "uri": "tos-maliva-i-5i1jvf5urr-us/free_shipping_medium_light.png",
                                        "url_list": [
                                            "https://p16-oec-general.ttcdn-us.com/tos-maliva-i-5i1jvf5urr-us/free_shipping_medium_light.png~tplv-fhlh96nyum-resize-png:800:800.png?dr=12184&t=555f072d&ps=933b5bde&shp=cde50ccb&shcp=4d62ed9a&idc=useast8&from=3454340299",
                                
Previous
通过分享链接获取产品 ID
Next
获取视频相关的产品列表
Built with