# What do the sort options on Douyin video search return?

> relevance, latest and most_liked on Douyin video search map to the app's 综合排序, 最新发布 and 最多点赞. What each one returns, when to use it, and what none of them can do.

Canonical page: https://okdata.online/answers/douyin-search-sort-params/

**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](/apis/douyin/videos/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

```python
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](/answers/douyin-video-search-api/); for a daily brand watch, see [Douyin keyword monitoring](/answers/douyin-keyword-monitoring/).

## Endpoints used

- [Douyin video search](https://okdata.online/apis/douyin/videos/search/) `douyin.videos.search`: $0.02 per call · about 20 videos per page

## More about Douyin

- [Douyin API](https://okdata.online/apis/douyin/)
- [Douyin API in Python: videos, profiles and comments (2026)](https://okdata.online/guides/douyin-api-python/)
- [How to export Douyin video comments in bulk](https://okdata.online/guides/douyin-video-comments/)
- [How to find Douyin Xingtu creators and get their rate cards](https://okdata.online/guides/douyin-xingtu-creator-rates/)
- [What is Douyin's a_bogus parameter, and do I need to generate it to get Douyin data?](https://okdata.online/answers/douyin-a-bogus-signature/)
- [How do I install Xiaohongshu, Douyin and WeChat data skills in OpenClaw?](https://okdata.online/answers/openclaw-xiaohongshu-douyin-skill/)
- [How do I get Douyin, Xiaohongshu and WeChat data into Qwen?](https://okdata.online/answers/qwen-douyin-xiaohongshu-data/)
- [How can Doubao read Douyin and Xiaohongshu data?](https://okdata.online/answers/doubao-douyin-xiaohongshu-data/)
- [How can a company outside China get Douyin data in English?](https://okdata.online/answers/douyin-data-outside-china-english/)
- [Can Tencent Yuanbao read Douyin and Xiaohongshu data?](https://okdata.online/answers/yuanbao-douyin-xiaohongshu-data/)
- [How to collect Douyin comments: API, crawler or no-code (2026)](https://okdata.online/compare/douyin-comment-scraping/)
- [Douyin data APIs: official vs third-party vs open-source (2026)](https://okdata.online/compare/douyin-data-apis/)
- [Official platform APIs vs third-party data APIs (2026)](https://okdata.online/compare/official-apis-vs-data-apis/)
- [Scraping it yourself vs a per-call data API: cost, upkeep and risk](https://okdata.online/compare/scraping-vs-data-api/)

## Sources

- [Douyin search filter: 综合排序, 最新发布 and 最多点赞, with sort_type 1 for most liked and 2 for latest (video_bug PR #37)](https://github.com/Sakeroux168/video_bug/pull/37) (read 2026-11-17)

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

- https://github.com/Sakeroux168/video_bug/pull/37

Updated 2026-11-12
