POST

API health

24h health
99%
24h average time
14.32 s
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Healthy

Last 24 hours

Last 30 days

Find Douyin videos for a search term. Get caption, hashtags, likes, comments, shares, saves, author details and a signed play link. Douyin does not publish play counts. So view_count is usually absent or 0 and never shows real plays. Judge reach by likes, comments and shares.

Send POST https://api.everyinfra.com/api/v1/social with platform set to douyin and action set to search. Price $8.33 per 1,000 requests ($0.008333 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

Douyin Search finds videos by keyword and returns each video's caption, hashtags, like, comment, share and save counts, the author's nickname, Douyin ID and follower count, and the publish time, plus the video length, cover image and a signed play link. Use it to see which videos are spreading around a topic and who made them: trend and topic research, sampling brand mentions, or working back from videos to creators worth following.

Order results with sort (relevance, newest or most liked) and narrow them with publish_time (the last day, week or half year). Judge reach with like_count, comment_count and share_count: Douyin does not publish play counts, so view_count says nothing about real views. author_id can be passed straight on to read the author's profile and videos.

AI prompt

#
Please help me write a data collection script with the EveryInfra Douyin Search endpoint (douyin/search).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to douyin and action to search, and put the parameters inside params.
- Required parameters:
  - keyword: Search term for the video search action, passed as a string, for example latte art. It finds videos; it is not an account nickname or a video ID.
- Optional parameters:
  - page_token: Page token. To start paging, send an empty string page_token=""; then pass back the previous response's next_page_token exactly as received to get the next page, keeping keyword, sort and publish_time unchanged.
  - publish_time: Filters video search results by publishing time window. Allowed values are unlimited (default), one_day (last 24 hours), one_week (last 7 days), and half_year (last 6 months). (allowed: half_year / one_day / one_week / unlimited)
  - sort: Sorts video search results. Allowed values are relevance (default), newest for the latest publish date, and most_liked for highest likes. (allowed: most_liked / newest / relevance)
  - limit: The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. (default: 10)
- Returns a list of records. Main fields of each record: next_page_token (Page token (search / user_posts / comme…), id, url, text, media_type (Media type: video, or image for image p…), video_url (Video playback URL (signed, expires), like_count, comment_count, share_count, collect_count, view_count (This is not a real play count), author_name; 54 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=douyin.
- Example request body:
{
  "platform": "douyin",
  "action": "search",
  "params": {
    "keyword": "城市骑行"
  }
}
- Price: $8.33 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesdouyinPlatform identifier, fixed value.
actionbodystringYessearchCapability identifier, fixed value.
keywordbody.paramsstringYes-Search term for the video search action, passed as a string, for example latte art. It finds videos; it is not an account nickname or a video ID.
page_tokenbody.paramsstringNo-Page token. To start paging, send an empty string page_token=""; then pass back the previous response's next_page_token exactly as received to get the next page, keeping keyword, sort and publish_time unchanged. Each page is one call and comes as whole Douyin result pages, not cut: at least limit videos (default 10, up to 50; fewer on the last page), often a few more. Videos Douyin repeats from the previous page are left out. Tokens last 24 hours and only work for the same account and the same parameters; an expired or mismatched token returns 422, so start again from the first page. On the last page the response has no next_page_token. Without page_token the call is a single fetch of up to limit videos with no next_page_token.
publish_timebody.paramsstring (enum)No-Filters video search results by publishing time window. Allowed values are unlimited (default), one_day (last 24 hours), one_week (last 7 days), and half_year (last 6 months).Allowed valueshalf_yearone_dayone_weekunlimited
sortbody.paramsstring (enum)No-Sorts video search results. Allowed values are relevance (default), newest for the latest publish date, and most_liked for highest likes. Supports legacy compatibility aliases general (mapped to relevance) and latest (mapped to newest).Allowed valuesmost_likednewestrelevance
limitbody.paramsinteger (1–50)No10The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "douyin",
  "action": "search",
  "params": {
    "keyword": "城市骑行"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured September 26, 2026 at 08:56 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "platform": "douyin",  "action": "search",  "results": [    {      "id": "•••",      "url": "https://www.douyin.com/video/7635624004494435825",      "text": "一个人的解压方式 夜晚 骑行 听歌 晚风和自由#骑行",      "media_type": "video",      "like_count": 1578935,      "comment_count": 26631,      "share_count": 228957,      "collect_count": 117174,      "view_count": 0,      "author_name": "•••",      "author_id": "•••",      "author_douyin_id": "•••",      "author_follower_count": 9028,      "region": "CN",      "posted_at": "2026-05-03T11:20:52+00:00",      "platform": "douyin",      "duration_sec": 8,      "hashtags": [        "骑行"      ]    }  ],  "next_page_token": …,  "pagination": { … },  "count": 1,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
next_page_tokenPage token (search / user_posts / comments / comment_replies / billboard_video_hot / billboard_low_fan_explosion / billboard_high_completion / billboard_account_search / music_search): pass it back unchanged as page_token to fetch the next page, keeping the other parameters the same; valid for 24 hours. Every row of a page carries the same value, which also appears at the top level of the response. Absent on the last page. Comment pages walk all top-level comments page by page.
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlLink to the record on the platform.
textBody text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so).
media_typeMedia type: video, or image for image posts.
video_urlVideo playback URL (signed, expires; download promptly if you need to keep it). Null for image posts or when the source omits it.
like_countLikes. null means the platform or this capability does not disclose it; it is not 0.
comment_countComments. null means not disclosed, not 0.
share_countShares. null means not disclosed, not 0.
collect_countSaves or favorites. null means not disclosed, not 0.
view_countThis is not a real play count. Douyin does not publish video play counts; most results omit this field and some show 0, and neither reflects real plays. Judge reach by like_count, comment_count, share_count and collect_count.
author_nameAuthor's display name.
author_idAuthor's unique ID on the platform.
author_douyin_idThe author's Douyin ID.
author_uidNumeric user ID of the author (on comments, of the commenter). author_id is the secUid; both identify the same person.
author_bioThe author's profile bio (search / user_posts / video rows).
author_avatar_urlAuthor avatar image URL: the creator on search, user_posts and video rows, the commenter on comments rows.
author_follower_countAuthor's follower count. null means not disclosed.
cover_image_urlVideo or image-post cover thumbnail URL (search / user_posts rows).
video_widthVideo frame width in pixels.
video_heightVideo frame height in pixels.
duration_secondsDuration in seconds. null for content that is not video or audio.
regionRegion.
hashtagsHashtags in the text, in order of appearance; absent when there are none.
posted_atPublish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
image_urlsArray of image links in the platform's display order; absent when there are no images.
duration_secVideo length in seconds.
hashtag_idsKeeps the platform's own meaning
search_rankKeeps the platform's own meaning
author_is_verifiedWhether the author is verified (search / user_posts / video rows).
author_following_countHow many accounts the author follows (search / user_posts / video rows).
author_like_countTotal likes the author's profile has received (search / user_posts / video / transcript).
author_video_countTotal number of posts on the author's profile (search / user_posts / video rows).
author_ip_locationThe author's IP location, which Douyin displays on every profile.
titleTitle. null when the platform has no titles (for example text-only posts).
musicBackground track: id, title, author, is_original (original sound or not), duration_sec, cover_url and play_url (audio link, may expire). Absent when there is no music information.
download_countHow many times the post was downloaded.
forward_countHow many times the post was forwarded.
is_pinnedWhether the item is pinned (post rows: pinned on the author's profile; trending: pinned on the board).
is_adWhether the post is an ad.
video_tagsContent category tags Douyin assigned to the post (for example food or store visit).
video_resolutionVideo quality tier as Douyin labels it (for example 720p).
animated_cover_urlAnimated cover link.
cityCity name in the platform's language, not normalized.
city_codeKeeps the platform's own meaning
locationLocation description passed through as is; the format varies by platform.
text_languageKeeps the platform's own meaning
video_bitratesKeeps the platform's own meaning
download_urlKeeps the platform's own meaning
has_watermarkKeeps the platform's own meaning
video_url_expires_atKeeps the platform's own meaning
permissionsKeeps the platform's own meaning
author_genderKeeps the platform's own meaning
author_ageKeeps the platform's own meaning

FAQ

#

Why can't I get view counts?

#

Douyin does not publish play counts, so view_count in these results does not reflect real views and cannot tell you whether anyone watched. Compare videos by like_count, comment_count and share_count, read alongside the publish time.

Can I search only recent videos?

#

Yes. Set publish_time to one_day, one_week or half_year to keep videos published in that window; the default, unlimited, applies no window. Set sort to newest to list them newest first.

How do I get more than 50 results?

#

Page through them. Send page_token as an empty string on the first request, then pass each response's next_page_token back unchanged, keeping keyword, sort and publish_time the same. Each page is one call and holds at least limit videos; videos Douyin repeats from the previous page are left out. The last page has no next_page_token, and tokens last 24 hours.

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Our own visit stats are always on. Google Analytics loads only if you choose “Allow analytics”. Privacy policy