{
  "openapi": "3.1.0",
  "info": {
    "title": "TikTok作品搜索 API (V1)",
    "version": "v0",
    "description": "通过关键词搜索 TikTok 帖子，提供偏移分页、排序、发布时间和区域控制。使用该接口支持区域内容发现、主题研究或监控与关键词相关的视频。"
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "全球生产 API（默认）"
    }
  ],
  "tags": [
    {
      "name": "TikTok",
      "description": "TikTok用户、帖子、评论和搜索数据，用于全球短视频监控和创作者研究。",
      "x-platform-id": "tiktok",
      "x-platform-aliases": [
        "TikTok",
        "抖音国际版"
      ],
      "x-platform-detection-aliases": [
        "TikTok",
        "抖音国际版"
      ]
    }
  ],
  "paths": {
    "/api/tiktok/search-post/v1": {
      "get": {
        "tags": [
          "TikTok"
        ],
        "summary": "作品搜索",
        "description": "通过关键词搜索 TikTok 帖子，提供偏移分页、排序、发布时间和区域控制。使用该接口支持区域内容发现、主题研究或监控与关键词相关的视频。",
        "operationId": "getApiTiktokSearchPostV1",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "用于API访问的安全令牌。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "搜索关键词。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "分页偏移量，从0开始，步长为20。",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortType",
            "in": "query",
            "description": "搜索结果排序标准。\n\n可用值：\n- `RELEVANCE`: 相关性（默认）\n- `MOST_LIKED`: 点赞最多",
            "required": false,
            "schema": {
              "type": "string",
              "default": "RELEVANCE",
              "description": "搜索结果排序标准。",
              "enum": [
                "RELEVANCE",
                "MOST_LIKED"
              ]
            }
          },
          {
            "name": "publishTime",
            "in": "query",
            "description": "按发布时间筛选帖子。\n\n可用值：\n- `ALL`: 全部时间\n- `ONE_DAY`: 最近24小时\n- `ONE_WEEK`: 最近7天\n- `ONE_MONTH`: 最近30天\n- `THREE_MONTHS`: 最近90天\n- `HALF_YEAR`: 最近180天",
            "required": false,
            "schema": {
              "type": "string",
              "default": "ALL",
              "description": "按发布时间筛选帖子。",
              "enum": [
                "ALL",
                "ONE_DAY",
                "ONE_WEEK",
                "ONE_MONTH",
                "THREE_MONTHS",
                "HALF_YEAR"
              ]
            }
          },
          {
            "name": "region",
            "in": "query",
            "description": "ISO 3166-1 alpha-2 国家代码（例如 'US'、'GB'）。",
            "required": false,
            "schema": {
              "type": "string",
              "default": "US"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "好的",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "请求参数或请求体无效",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "访问令牌无效或未激活",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "权限不足",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "请求速率或每日配额已超限",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "服务器内部错误",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "503": {
            "description": "服务暂时不可用",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          }
        },
        "x-order": 22001600,
        "x-api-version": "v1",
        "x-search-aliases": [
          "TikTok post search API",
          "TikTok video keyword search",
          "TikTok regional content search",
          "TikTok 视频搜索",
          "TikTok 作品关键词搜索",
          "TikTok 地区内容查询"
        ],
        "x-highlights": [],
        "x-endpoint-family": "tiktok_search_post"
      }
    }
  }
}