API reference · Douyin

douyin/hot-search

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/douyin/hot-search
Model IDdouyin/hot-search
01

Input Schema

15 parameters · 0 required · 15 optional

ParameterTypeRequiredDescription
pageintegerOptionalPage number (starting from 1). Page size is fixed at 10. · Default: 1
keywordstringOptionalOptional search keyword.
sortTypestringOptionalSorting criteria for hot content results. · Options: COMPREHENSIVE, HIGH_INTERACTION, HIGH_LIKE, HIGH_COMMENT, HIGH_SHARE · Default: "COMPREHENSIVE"
COMPREHENSIVEHIGH_INTERACTIONHIGH_LIKEHIGH_COMMENTHIGH_SHARE
videoTypestringOptionalVideo type filter. · Options: ALL, XINGTU_VIDEO, NATURAL_VIDEO · Default: "ALL"
ALLXINGTU_VIDEONATURAL_VIDEO
contentTypestringOptionalTop-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
likeCountMaxintegerOptionalMaximum raw like count.
likeCountMinintegerOptionalMinimum raw like count.
shareCountMaxintegerOptionalMaximum raw share count.
shareCountMinintegerOptionalMinimum raw share count.
commentCountMaxintegerOptionalMaximum raw comment count.
commentCountMinintegerOptionalMinimum raw comment count.
followerCountMaxintegerOptionalMaximum raw creator follower count.
followerCountMinintegerOptionalMinimum raw creator follower count.
interactionCountMaxintegerOptionalMaximum raw interaction count.
interactionCountMinintegerOptionalMinimum raw interaction count.
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-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());