/desearch/tiktok/searchSearch public TikTok posts by keyword using the public TikTok integration. Each post `id` is the canonical TikTok video ID and can be passed directly to `/desearch/tiktok/comments/{video_id}`. Opaque upstream IDs are exposed as `providerId` when present. Download/no-watermark media surfaces are intentionally not exposed. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://www.desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.
Base URL
https://api.desearch.aiUse TikTok Search API when your application needs search-grounded AI resultswithout maintaining its own crawler, social-data pipeline, or retrieval infrastructure. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.
Send requests to POST /desearch/tiktok/search with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.
Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.
querystringrequiredKeyword or phrase to search on TikTok
countintegerMaximum number of results to return. The provider page may be smaller.
Default: 10
cursorstringOpaque pagination cursor. Omit it for the first page. For the next page, send the `x-desearch-next-cursor` response header from the previous page back unchanged, on the same route with the same target (username, tag, post, or search query). A cursor is valid for 24 hours. Any other value, including an expired cursor or one issued by a different route or target, returns 422 and is not charged.
sortstringSort option when supported
Your API key is sent in the Authorization header.
curl -X POST "https://api.desearch.ai/desearch/tiktok/search" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "bittensor"
}'[
{
"id": "7620891413932166433",
"providerId": "string",
"url": "https://www.tiktok.com/@tiktok/video/7620891413932166433",
"text": "caption text",
"createTime": "2024-01-15T10:30:00Z",
"author": {
"id": "12345",
"username": "desearch",
"nickname": "Desearch",
"avatar": "https://example.com/avatar.jpg",
"verified": true,
"following": 1200,
"followers": 50000,
"heart": 300000
},
"stats": {
"playCount": 120000,
"digCount": 5000,
"commentCount": 120,
"shareCount": 45,
"collectCount": 10
},
"music": {
"id": "67890",
"title": "Song Name",
"authorName": "Artist"
},
"hashtags": [
"string"
],
"mentions": [
"string"
],
"videoDuration": 15000,
"videoWidth": 1080,
"videoHeight": 1920,
"thumbnailUrl": "https://example.com/thumb.jpg",
"mediaUrl": "https://example.com/video.mp4"
}
]Possible status codes: