Ir al contenido
Documentación de Endless

TikTok search

POST
/social/tiktok_search

Search TikTok for public videos (or accounts) by topic, keyword, or hashtag. Use for trend analysis, monitoring conversations, or finding which videos/creators are active on a theme. Use tiktok_user_posts for one account's own feed and tiktok_hashtag_posts when the query is exactly one hashtag.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/tiktok_search" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "query": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "query": "string",    "type": "videos",    "region": "string",    "count": -9007199254740991,    "posts": [      {        "id": "string",        "url": "string",        "text": "string",        "category": "string",        "region": "string",        "created_at": "string",        "duration_seconds": 0,        "play_count": 0,        "like_count": 0,        "comment_count": 0,        "share_count": 0,        "save_count": 0,        "hashtags": [          "string"        ],        "music": {          "id": "string",          "title": "string",          "author": "string",          "original": true        },        "author": {          "id": "string",          "username": "string",          "nickname": "string",          "verified": true        },        "image_url": "string",        "slide_image_urls": [          "string"        ]      }    ],    "accounts": [      {        "id": "string",        "username": "string",        "nickname": "string",        "url": "string",        "bio": "string",        "follower_count": 0,        "verified": true      }    ]  },  "requests": 0,  "credits_charged": 0}