PeumeAPI

Search & SEO · Douyin

Douyin Video Search

Search public Douyin videos by keyword with sorting, time, duration, and content filters. `views` is always null, even on posts with many likes: the play count is not returned here, so do not read it as zero plays. Likes, comments, saves and shares are populated. For the play count, run `/api/v1/douyin/xingtu_v2/get_item_play_count` with a row's `id` as `item_id` and read `watch_cnt`.

$0.018 per call

Call it

curl https://api.peume.com/v1/call/douyin-video-search \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "duration": "0",
    "query": "your query",
    "sort": "relevance",
    "publishedWithin": 0
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: douyin-video-search.

Parameters

cursorstring

Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.

durationstring

Duration filter in minutes: any, under 1, 1 to 5, or over 5.

0 · 0-1 · 1-5 · 5-10000

Example: 0

routestring

Upstream source to run on; omit for "tiger". tiger ($0.012 per call, 85% uptime). Route `tiger` returns 7 videos a page.

tiger

searchIdstring

Search ID returned by the previous page.

backtracestring

Backtrace token returned by the previous page.

queryRequiredstring

Keyword to search for.

sortstring

Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted.

relevance · most-liked · date-posted

Example: relevance

publishedWithininteger

Publication window in days. Use the canonical JSON integer 0 for any time, 1 for one day, 7 for seven days, or 180 for 180 days; legacy numeric strings remain accepted.

0 · 1 · 7 · 180 · 0 · 1 · 7 · 180

Example: 0

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.