API reference · Douyin
douyin/hot-search
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/api/douyin/hot-searchModel ID
douyin/hot-search01
Input Schema
15 parameters · 0 required · 15 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | Optional | Page number (starting from 1). Page size is fixed at 10. · Default: 1 |
keyword | string | Optional | Optional search keyword. |
sortType | string | Optional | Sorting criteria for hot content results. · Options: COMPREHENSIVE, HIGH_INTERACTION, HIGH_LIKE, HIGH_COMMENT, HIGH_SHARE · Default: "COMPREHENSIVE" COMPREHENSIVEHIGH_INTERACTIONHIGH_LIKEHIGH_COMMENTHIGH_SHARE |
videoType | string | Optional | Video type filter. · Options: ALL, XINGTU_VIDEO, NATURAL_VIDEO · Default: "ALL" ALLXINGTU_VIDEONATURAL_VIDEO |
contentType | string | Optional | Top-level content type. Only one content type can be selected. · Options: ALL, FASHION, TECHNOLOGY, SCIENCE, PHOTOGRAPHY, FOOD, MOTHER_BABY, PARENTING, DRAMA, GAME, AUTOMOTIVE, ANIMAL, TRAVEL, DANCE, TRADITIONAL_CULTURE, ART, SPORTS, MUSIC, LIFE_RECORD, HOME_LIVING, LEISURE_ENTERTAINMENT, WORKPLACE, AGRICULTURE, CASUAL, ACG, MOVIE, TV_SERIES, VARIETY_SHOW, CELEBRITY, HUMANITIES_SOCIAL_SCIENCE, EDUCATION_CAMPUS, EMOTION, FINANCE, PUBLIC_WELFARE · Default: "ALL" ALLFASHIONTECHNOLOGYSCIENCEPHOTOGRAPHYFOODMOTHER_BABYPARENTINGDRAMAGAMEAUTOMOTIVEANIMALTRAVELDANCETRADITIONAL_CULTUREARTSPORTSMUSICLIFE_RECORDHOME_LIVINGLEISURE_ENTERTAINMENTWORKPLACEAGRICULTURECASUALACGMOVIETV_SERIESVARIETY_SHOWCELEBRITYHUMANITIES_SOCIAL_SCIENCEEDUCATION_CAMPUSEMOTIONFINANCEPUBLIC_WELFARE |
likeCountMax | integer | Optional | Maximum raw like count. |
likeCountMin | integer | Optional | Minimum raw like count. |
shareCountMax | integer | Optional | Maximum raw share count. |
shareCountMin | integer | Optional | Minimum raw share count. |
commentCountMax | integer | Optional | Maximum raw comment count. |
commentCountMin | integer | Optional | Minimum raw comment count. |
followerCountMax | integer | Optional | Maximum raw creator follower count. |
followerCountMin | integer | Optional | Minimum raw creator follower count. |
interactionCountMax | integer | Optional | Maximum raw interaction count. |
interactionCountMin | integer | Optional | Minimum raw interaction count. |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
03
Code Examples
Ready-to-run snippets
const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/douyin/hot-search", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"page": 1,
"sortType": "COMPREHENSIVE",
"videoType": "ALL",
"contentType": "ALL"
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());