For AI

Answers

What do the sort options on Douyin video search return?

Short answer

They are Douyin's own three search orders: relevance is 综合排序 (the default the app shows), latest is 最新发布 (newest first) and most_liked is 最多点赞 (most liked first). Every order returns the same fields, about 20 posts a page, and costs the same $0.02 per page on okdata's Douyin video search.

Type a keyword into Douyin's search, tap the filter button, and you get three ways to order videos: 综合排序, 最新发布 and 最多点赞. Douyin's web API numbers them 0, 1 and 2 (综合 is 0, 最多点赞 is 1, 最新发布 is 2), which is what open-source crawlers expose as sort_type. Douyin video search gives them readable names in its sort parameter. The words "relevance" and "most liked" sound more precise than they are, so here is what each one actually gets you.

The three orders

sort In the app What comes first Good for
relevance (default) 综合排序 Douyin's default mix for the keyword, the same list a user sees first Seeing what a viewer sees; content research
latest 最新发布 The newest matching posts Daily monitoring, catching posts soon after they go up
most_liked 最多点赞 The most liked of the posts search returns Finding formats and hooks that already worked

Douyin does not publish how 综合排序 is computed, and the order changes over time, so two runs of relevance a week apart rarely line up. most_liked ranks the posts search surfaces for that keyword; it is not an all-time chart of the topic. latest is the right order for monitoring, but it only covers what search chooses to show, so a post can be live and still not appear.

What does not change with the order

  • Fields. Each post has id, url, type (video or image), caption in text, published_at, likes, comments, shares, saves (metrics.favorites), hashtags and the author. metrics.views is null in every order because Douyin hides plays.
  • Price. One page is one call, $0.02, whatever the order.
  • Paging. Send page.next_cursor back as cursor and stop when page.has_more is false or you have enough.
Plan Calls Cost
One keyword, one page in each order 3 $0.06
One keyword, 5 pages of latest 5 $0.10
10 keywords, 2 pages of latest a day for 30 days 600 $12.00

Example: compare the orders for one keyword

import os, requests

URL = "https://api.okdata.online/v1/douyin/videos/search"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}

seen = {}
for order in ["relevance", "latest", "most_liked"]:
    body = requests.get(URL, headers=H, timeout=60,
                        params={"query": "露营装备", "sort": order,
                                "fields": "id,published_at,metrics.likes"}).json()
    ids = [p["id"] for p in body["data"]["items"]]
    seen[order] = set(ids)
    print(order, len(ids), "posts")
print("in all three:", len(seen["relevance"] & seen["latest"] & seen["most_liked"]))

The overlap is usually small, which is the point: each order shows a different slice of the same topic. Deduplicate on id if you combine them.

Limits

  • No date or duration filter on this endpoint. For "the last 7 days", use latest and stop paging once published_at is older than your cutoff. Douyin's own time filter is loose anyway; users of other tools report older videos slipping through it.
  • Search depth per keyword is set by Douyin, and pages run out. Narrower keywords (露营装备 轻量化 rather than 露营) widen what you can reach.
  • Check published_at and metrics.likes yourself before drawing a cutoff; treat the order as Douyin's ranking, not a guarantee.
  • For the endpoint overall, fields and the per-1,000 cost, see Douyin video search API; for a daily brand watch, see Douyin keyword monitoring.

Sources

  1. Douyin search filter: 综合排序, 最新发布 and 最多点赞, with sort_type 1 for most liked and 2 for latest (video_bug PR #37)github.com · read

Where people asked this (read 2026-11-17)

Updated

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp