在已索引的 TikTok 视频上执行带筛选条件的搜索,分页返回匹配内容及其作者和互动计数。搜索请求的配额消耗高于单次查询。
POST
/api/v1/search/tiktok/video额度扣减: 本接口每次成功请求会从套餐额度中扣减 100 单位。
平台路径族
/api/v1/search/{platform}/video可切换平台
请求参数
必填参数
该接口没有必填参数。
可选参数
| 名称 | 位置 | 类型 | 说明 |
|---|---|---|---|
page | body | integer | page number example: 0 |
page_size | body | integer | page size example: 0 |
query | body | object | Search term example: string |
categorys | body | object | Category |
locations | body | object | Country |
follower_count_min | body | object | Minimum follower count example: 0 |
follower_count_max | body | object | Maximum follower count example: 0 |
create_at_start | body | object | Publish time from example: string |
create_at_end | body | object | Publish time to example: string |
avg_engagement_rate_min | body | object | Minimum average engagement rate example: 0 |
avg_engagement_rate_max | body | object | Maximum average engagement rate example: 0 |
avg_comment_count_min | body | object | Minimum average comments example: 0 |
avg_comment_count_max | body | object | Maximum average comments example: 0 |
avg_like_count_min | body | object | Minimum average likes example: 0 |
avg_like_count_max | body | object | Maximum average likes example: 0 |
avg_play_count_min | body | object | Minimum average plays example: 0 |
avg_play_count_max | body | object | Maximum average plays example: 0 |
gender | body | object | Gender (0 = unknown, 1 = male, 2 = female) example: 0 |
recent_month_publish_count_min | body | object | Minimum posts in the last month example: 0 |
recent_month_publish_count_max | body | object | Maximum posts in the last month example: 0 |
响应字段
| 名称 | 类型 | 说明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.items | array<object> | Items |
data.total | integer | Total |
data.page | integer | Page |
data.page_size | integer | Page Size |
data.total_pages | integer | Total Pages |
在线调试
https://openapi.scdata.cc/api/v1/search/tiktok/video
请先从 Dashboard 选择一个 API key
发送请求前请先准备一个 API key。前往 Dashboard
JSON 请求体
cURL 示例
bash
curl -X POST "https://openapi.scdata.cc/api/v1/search/tiktok/video" \-H "Authorization: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"page":0,"page_size":0,"query":"string","categorys":[0],"locations":["string"],"follower_count_min":0,"follower_count_max":0,"create_at_start":"string","create_at_end":"string","avg_engagement_rate_min":0,"avg_engagement_rate_max":0,"avg_comment_count_min":0,"avg_comment_count_max":0,"avg_like_count_min":0,"avg_like_count_max":0,"avg_play_count_min":0,"avg_play_count_max":0,"gender":0,"recent_month_publish_count_min":0,"recent_month_publish_count_max":0}'
响应示例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"items": [{"video_id": "string","description": "string","create_at": "2019-08-24T14:15:22.123Z","author_uid": "string","author_unique_id": "string","author_nickname": "string","author_avatar": "string","author_follower_count": 0,"language": "string","region": "string","cover_url": "string","duration": "string","share_count": 0,"like_count": 0,"comment_count": 0,"play_count": 0,"engagement_rate": "string","author": {"author_uid": "string","author_unique_id": "string","author_nickname": "string","avatar": "string","country": "string","gender": "string","follower_count": 0,"avg_engagement_rate": "string","avg_play_count": "string","video_count": 0,"evaluation_min": "string","evaluation_max": "string"}}],"total": 0,"page": 0,"page_size": 0,"total_pages": 0}}
使用场景
- 选题调研 — 了解围绕某商品关键词已有哪些内容以及其表现如何。
- 从内容发现红人 — 通过红人发布的视频而非资料描述来发现红人。