Douyin Video
Retrieve video with the Douyin API. Input fields and response shapes depend on the selected implementation. Use it in a video discovery or content monitoring workflow. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.012 / callPublished pricing
- Sellers / implementations
- 2 / 44
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
Current Douyin Video Search · POST | $0.012 / call | — | —successP50— | |
| Douyin Video Comments · POST | $0.0012 / call | —Select to load statistics | —successP50— | |
| Get comment replies data of specified video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Series Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get single video data by sharing link · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get kol Video Performance V1 · GET | $0.02 / call | —Select to load statistics | —successP50— | |
| Anime Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get live video data of specified user by sec_uid · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Fetch video search V5 · POST | $0.01 / call | —Select to load statistics | —successP50— | |
| Get user collection data · POST | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Author Homepage Videos · GET | $0.002 / call | —Select to load statistics | —successP50— | |
| Extract single video id · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Fetch video search V3 · POST | $0.01 / call | —Select to load statistics | —successP50— | |
| Get user mix video data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Food Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Fetch video search V1 · POST | $0.01 / call | —Select to load statistics | —successP50— | |
| Get single video comments data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Gets the live stream data of the specified user by room_id V2 · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user live video data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Fetch video search V2 · POST | $0.01 / call | —Select to load statistics | —successP50— | |
| Get user homepage video data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Douyin video channel data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user like video data · POST | $0.001 / call | —Select to load statistics | —successP50— | |
| Knowledge Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Batch get the highest quality play URL of videos · POST | $0.25 / call | —Select to load statistics | —successP50— | |
| Get Author Spread Videos · GET | $0.002 / call | —Select to load statistics | —successP50— | |
| Get single video data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get kol Rec Videos V1 · GET | $0.02 / call | —Select to load statistics | —successP50— | |
| Get the highest quality play URL of the video · GET | $0.005 / call | —Select to load statistics | —successP50— | |
| Get Author Homepage Videos V1 · GET | $0.02 / call | —Select to load statistics | —successP50— | |
| Fetch video search V4 · POST | $0.01 / call | —Select to load statistics | —successP50— | |
| Batch Get Video Information · POST | $0.05 / call | —Select to load statistics | —successP50— | |
| Extract list video id · POST | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user collection video data · POST | $0.001 / call | —Select to load statistics | —successP50— | |
| Get kol Convert Video Display V1 · GET | $0.02 / call | —Select to load statistics | —successP50— | |
| Game Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get single video danmaku data · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Author Video Distribution · GET | $0.002 / call | —Select to load statistics | —successP50— | |
| Get video list of specified hashtag · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| Get video audience profile · POST | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Author Recommended Videos V2 · GET | $0.002 / call | —Select to load statistics | —successP50— | |
| Music Video · GET | $0.001 / call | —Select to load statistics | —successP50— | |
| 获取创作者转化视频/商品明细/Get Author Convert Videos or Products · GET | $0.002 / call | —Select to load statistics | —successP50— | |
| Get single video data V2 · GET | $0.001 / call | —Select to load statistics | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
outputobjectdataobjectbacktracestringhasMorebooleannextCursorstringsearchIdstringvideosobject[]authorImagestringauthorNicknamestringauthorUniqueIdstringauthorUserIdstringauthorVerifiedbooleancaptionstringcommentsintegercreatedUtcintegerdurationMsintegerheightintegeridstringimagestringlikesintegerregionstringsavesintegersharesintegerurlstringvideoUrlstringviewsintegerwidthinteger
foundboolean
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
output?: {
data?: {
backtrace?: string;
hasMore?: boolean;
nextCursor?: string;
searchId?: string;
videos?: Array<{
authorImage?: string;
authorNickname?: string;
authorUniqueId?: string;
authorUserId?: string;
authorVerified?: boolean;
caption?: string;
comments?: number;
createdUtc?: number;
durationMs?: number;
height?: number;
id?: string;
image?: string;
likes?: number;
region?: string;
saves?: number;
shares?: number;
url?: string;
videoUrl?: string;
views?: number;
width?: number;
}>;
};
found?: boolean;
};
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"duration": "0",
"publishedWithin": 0,
"query": "机器人",
"sort": "relevance"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
fields | URL query parametersquery | string | No | Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost. |
max_items | URL query parametersquery | integer | No | Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost. minimum: 0 |
summary | URL query parametersquery | boolean | No | Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost. |
jq | URL query parametersquery | string | No | Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost. |
max_cost_usd | URL query parametersquery | string | No | Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price. |
Idempotency-Key | Request headersheaders | string | No | Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict. minLength: 1 · maxLength: 255 |
allowFallbacks | JSON request bodybody | boolean | No | Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price. |
backtrace | JSON request bodybody | string | No | Backtrace token returned by the previous page. |
cursor | JSON request bodybody | string | integer | No | Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. minimum: 0 |
duration | JSON request bodybody | string | No | Duration filter in minutes: any, under 1, 1 to 5, or over 5. enum: "0", "0-1", "1-5", "5-10000" |
ignoreSources | JSON request bodybody | array | No | Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.Nested fields and variants
|
preferLatencyUnderMs | JSON request bodybody | integer | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted. minimum: 1 |
publishedWithin | JSON request bodybody | integer | string | No | 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. enum: 0, 1, 7, 180, "0", "1", "7", "180" |
query | JSON request bodybody | string | Yes | Keyword to search for. minLength: 1 |
searchId | JSON request bodybody | string | No | Search ID returned by the previous page. |
sort | JSON request bodybody | string | No | Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted. enum: "relevance", "most-liked", "date-posted" |
source | JSON request bodybody | array | No | Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.
{
"output": {
"data": {
"backtrace": "eyJyZXFJZCI6ImV4YW1wbGUtc2VhcmNoLXRyYWNlLTEyMyJ9",
"hasMore": true,
"nextCursor": "20",
"searchId": "6890123457812345678",
"videos": [
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_robotwatcher_avatar~c5_300x300.jpeg",
"authorNickname": "机器人观察员",
"authorUniqueId": "robot_watcher_cn",
"authorUserId": "51923847610283746",
"authorVerified": true,
"caption": "国产人形机器人最新进展,已经能对话又能干活了 #机器人 #科技前沿",
"comments": 8900,
"createdUtc": 1758211200,
"durationMs": 58000,
"height": 1920,
"id": "7449028193746501234",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_humanoid_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 246000,
"region": "CN",
"saves": 41000,
"shares": 15200,
"url": "https://www.douyin.com/video/7449028193746501234",
"videoUrl": "https://v3-web.douyinvod.com/example_token_a1b2c3/video/tos/cn/tos-cn-ve-15/exampleHumanoidVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 3820000,
"width": 1080
},
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_geeklab_avatar~c5_300x300.jpeg",
"authorNickname": "极客实验室",
"authorUniqueId": "geek_lab_official",
"authorUserId": "40381927465102938",
"authorVerified": true,
"caption": "机器人舞蹈大赛总决赛现场,这个转圈太丝滑了",
"comments": 3400,
"createdUtc": 1757952000,
"durationMs": 73000,
"height": 1920,
"id": "7448611029384756123",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_robotdance_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 98000,
"region": "CN",
"saves": 12800,
"shares": 6200,
"url": "https://www.douyin.com/video/7448611029384756123",
"videoUrl": "https://v3-web.douyinvod.com/example_token_d4e5f6/video/tos/cn/tos-cn-ve-15/exampleRobotDanceVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 1560000,
"width": 1080
},
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_homegadgets_avatar~c5_300x300.jpeg",
"authorNickname": "居家好物研究所",
"authorUniqueId": "home_gadgets_lab",
"authorUserId": "29384756102938475",
"authorVerified": false,
"caption": "扫地机器人买贵的还是买便宜的?三款实测对比",
"comments": 2700,
"createdUtc": 1757520000,
"durationMs": 214000,
"height": 1920,
"id": "7447903384756019283",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_vacuumrobot_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 61000,
"region": "CN",
"saves": 22000,
"shares": 3100,
"url": "https://www.douyin.com/video/7447903384756019283",
"videoUrl": "https://v3-web.douyinvod.com/example_token_g7h8i9/video/tos/cn/tos-cn-ve-15/exampleVacuumRobotVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 987000,
"width": 1080
}
]
},
"found": true
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Douyin Video
Retrieve video with the Douyin API. Input fields and response shapes depend on the selected implementation. Use it in a video discovery or content monitoring workflow. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
anyapi · Douyin Video Search: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=aaa08efe-9a3a-4035-b87c-ec08099e3a44 · $0.012 / call
anyapi · Douyin Video Comments: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=dbd67237-eaf9-490f-82ce-d1057558eab3 · $0.0012 / call
tikhub · Get comment replies data of specified video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=014f63b7-1d1e-464e-92a0-3dd2ef112a40 · $0.001 / call
tikhub · Series Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=0520fc81-0438-4cd2-97e7-9cd519e5b181 · $0.001 / call
tikhub · Get single video data by sharing link: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=0c7240e9-8b5d-4d1b-a0a5-981eeca295a6 · $0.001 / call
tikhub · Get kol Video Performance V1: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=0d999649-06b4-42c2-bc55-d6f8cb3e9c39 · $0.02 / call
tikhub · Anime Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=14ef4441-c93e-4dde-8ead-b22b77db0ecc · $0.001 / call
tikhub · Get live video data of specified user by sec_uid: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=1aad7fba-50b6-49db-9c15-924a78924fee · $0.001 / call
tikhub · Fetch video search V5: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=1b02f649-8b8e-4e38-b256-a84979b3a420 · $0.01 / call
tikhub · Get user collection data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=1f1f2f9e-0c4d-4c14-a722-dd52f4bd058c · $0.001 / call
tikhub · Get Author Homepage Videos: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=200a0248-5e34-4d1d-8d30-699165888d5f · $0.002 / call
tikhub · Extract single video id: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=28457232-7ebb-4c8b-ab92-4f207ba38d32 · $0.001 / call
tikhub · Fetch video search V3: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=2a48255e-1992-4f82-81e7-26bd8aada66e · $0.01 / call
tikhub · Get user mix video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=333c8216-f429-4ba6-af5a-0bbaef0ea4a9 · $0.001 / call
tikhub · Food Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=3c10ac62-6fae-463b-9009-2b512a5d35d8 · $0.001 / call
tikhub · Fetch video search V1: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=42f5f269-73cd-4b5f-be06-5f1f672d490a · $0.01 / call
tikhub · Get single video comments data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=471714ec-ee3d-4038-8915-c11c3fcda83f · $0.001 / call
tikhub · Gets the live stream data of the specified user by room_id V2: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=583ae39c-2873-4dca-963c-19c12e9fae32 · $0.001 / call
tikhub · Get user live video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=5c399301-5a6f-4e53-8382-e557643a7ad6 · $0.001 / call
tikhub · Fetch video search V2: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=6d4e3251-0c03-4afb-b7ae-71f6c2c1c73f · $0.01 / call
tikhub · Get user homepage video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=7816cd6d-ff6a-463a-8a18-dd37eb1dcf4e · $0.001 / call
tikhub · Douyin video channel data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=787e487f-fc56-4922-b2a0-b3bebf6af149 · $0.001 / call
tikhub · Get user like video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=7e36b556-cc8f-464b-8769-438b28d9010f · $0.001 / call
tikhub · Knowledge Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=83c02d9f-9d81-410a-b9a0-dd27b56c5c8f · $0.001 / call
tikhub · Batch get the highest quality play URL of videos: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=877a24ec-67b6-4769-926f-e72a5197902b · $0.25 / call
tikhub · Get Author Spread Videos: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=912d9143-6d32-4ddc-813c-34b8121b558c · $0.002 / call
tikhub · Get single video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=9d59e439-5b89-4ac3-bc62-b4ddfbae27e4 · $0.001 / call
tikhub · Get kol Rec Videos V1: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=a6f003ab-0f05-4b08-9a99-420dc40d7bfd · $0.02 / call
tikhub · Get the highest quality play URL of the video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=aac917f5-9a82-4cf6-8966-0591993fe425 · $0.005 / call
tikhub · Get Author Homepage Videos V1: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=ae106a78-e1d5-422d-845e-14d7946c46f9 · $0.02 / call
tikhub · Fetch video search V4: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=b4ac1061-6297-47f9-ae03-1ba3d6130804 · $0.01 / call
tikhub · Batch Get Video Information: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=b614b77d-845b-41f0-a7f1-a73ca34f7511 · $0.05 / call
tikhub · Extract list video id: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=b792397f-6472-49bd-9abe-1a14257c308f · $0.001 / call
tikhub · Get user collection video data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=b877990c-e8cf-4d6a-ba6a-4fcf5d1fb0fe · $0.001 / call
tikhub · Get kol Convert Video Display V1: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=b9fa20eb-f1e5-444b-8386-eeed61e102c4 · $0.02 / call
tikhub · Game Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=be7547ea-1d03-4fdc-90e3-6a482b532864 · $0.001 / call
tikhub · Get single video danmaku data: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=c74a81c5-b8f8-4ac5-a110-85495f5727c0 · $0.001 / call
tikhub · Get Author Video Distribution: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=cfdc9d5b-487e-4594-8884-0cc2e56978f5 · $0.002 / call
tikhub · Get video list of specified hashtag: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=d9645424-6e69-4001-aca7-8871112ebf22 · $0.001 / call
tikhub · Get video audience profile: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=db3120b9-a178-483c-939f-86ba13e11794 · $0.001 / call
tikhub · Get Author Recommended Videos V2: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=ddc247eb-2991-422f-a094-067114a58888 · $0.002 / call
tikhub · Music Video: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=e8f1f236-aa9e-4b7c-b0bb-97df1a549552 · $0.001 / call
tikhub · 获取创作者转化视频/商品明细/Get Author Convert Videos or Products: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=ed04b67f-2459-4420-ac4f-27c270bde3f8 · $0.002 / call
tikhub · Get single video data V2: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca?offering=f9b0badc-6c26-4d50-8c84-fe1505e2f53f · $0.001 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/douyin-video-07cdcaca
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos
Price: $0.012 / call
Provider: anyapi
Contract revision: 7
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"duration": "0",
"publishedWithin": 0,
"query": "机器人",
"sort": "relevance"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Douyin Video Search",
"endpoint": "https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.",
"location": "query",
"minimum": "0",
"name": "max_items",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.",
"location": "query",
"name": "summary",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.",
"location": "query",
"name": "jq",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.",
"location": "query",
"name": "max_cost_usd",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.",
"location": "header",
"max_length": 255,
"min_length": 1,
"name": "Idempotency-Key",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Search public Douyin videos by keyword with sorting, time, duration, and content filters.",
"json_schema": {
"additionalProperties": false,
"example": {
"duration": "0",
"publishedWithin": 0,
"query": "机器人",
"sort": "relevance"
},
"properties": {
"allowFallbacks": {
"default": true,
"description": "Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.",
"type": "boolean"
},
"backtrace": {
"description": "Backtrace token returned by the previous page.",
"type": "string"
},
"cursor": {
"description": "Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted.",
"minimum": 0,
"type": [
"string",
"integer"
]
},
"duration": {
"default": "0",
"description": "Duration filter in minutes: any, under 1, 1 to 5, or over 5.",
"enum": [
"0",
"0-1",
"1-5",
"5-10000"
],
"type": "string"
},
"ignoreSources": {
"description": "Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.",
"items": {
"minLength": 1,
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"preferLatencyUnderMs": {
"description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.",
"minimum": 1,
"type": "integer"
},
"publishedWithin": {
"default": 0,
"description": "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.",
"enum": [
0,
1,
7,
180,
"0",
"1",
"7",
"180"
],
"type": [
"integer",
"string"
]
},
"query": {
"description": "Keyword to search for.",
"minLength": 1,
"type": "string"
},
"searchId": {
"description": "Search ID returned by the previous page.",
"type": "string"
},
"sort": {
"default": "relevance",
"description": "Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted.",
"enum": [
"relevance",
"most-liked",
"date-posted"
],
"type": "string"
},
"source": {
"description": "Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.",
"items": {
"minLength": 1,
"type": "string"
},
"type": "array",
"uniqueItems": true
}
},
"required": [
"query"
],
"title": "Douyin video search input",
"type": "object",
"x-anyapi-compat-values": {
"sort": {
"0": "relevance",
"1": "most-liked",
"2": "date-posted"
}
}
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "12000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example (output fragment; HTTP assumed)",
"request": {
"body": {
"duration": "0",
"publishedWithin": 0,
"query": "机器人",
"sort": "relevance"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"output": {
"data": {
"backtrace": "eyJyZXFJZCI6ImV4YW1wbGUtc2VhcmNoLXRyYWNlLTEyMyJ9",
"hasMore": true,
"nextCursor": "20",
"searchId": "6890123457812345678",
"videos": [
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_robotwatcher_avatar~c5_300x300.jpeg",
"authorNickname": "机器人观察员",
"authorUniqueId": "robot_watcher_cn",
"authorUserId": "51923847610283746",
"authorVerified": true,
"caption": "国产人形机器人最新进展,已经能对话又能干活了 #机器人 #科技前沿",
"comments": 8900,
"createdUtc": 1758211200,
"durationMs": 58000,
"height": 1920,
"id": "7449028193746501234",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_humanoid_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 246000,
"region": "CN",
"saves": 41000,
"shares": 15200,
"url": "https://www.douyin.com/video/7449028193746501234",
"videoUrl": "https://v3-web.douyinvod.com/example_token_a1b2c3/video/tos/cn/tos-cn-ve-15/exampleHumanoidVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 3820000,
"width": 1080
},
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_geeklab_avatar~c5_300x300.jpeg",
"authorNickname": "极客实验室",
"authorUniqueId": "geek_lab_official",
"authorUserId": "40381927465102938",
"authorVerified": true,
"caption": "机器人舞蹈大赛总决赛现场,这个转圈太丝滑了",
"comments": 3400,
"createdUtc": 1757952000,
"durationMs": 73000,
"height": 1920,
"id": "7448611029384756123",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_robotdance_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 98000,
"region": "CN",
"saves": 12800,
"shares": 6200,
"url": "https://www.douyin.com/video/7448611029384756123",
"videoUrl": "https://v3-web.douyinvod.com/example_token_d4e5f6/video/tos/cn/tos-cn-ve-15/exampleRobotDanceVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 1560000,
"width": 1080
},
{
"authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_homegadgets_avatar~c5_300x300.jpeg",
"authorNickname": "居家好物研究所",
"authorUniqueId": "home_gadgets_lab",
"authorUserId": "29384756102938475",
"authorVerified": false,
"caption": "扫地机器人买贵的还是买便宜的?三款实测对比",
"comments": 2700,
"createdUtc": 1757520000,
"durationMs": 214000,
"height": 1920,
"id": "7447903384756019283",
"image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_vacuumrobot_cover~tplv-dy-resize-origshort-autoq-75.jpeg",
"likes": 61000,
"region": "CN",
"saves": 22000,
"shares": 3100,
"url": "https://www.douyin.com/video/7447903384756019283",
"videoUrl": "https://v3-web.douyinvod.com/example_token_g7h8i9/video/tos/cn/tos-cn-ve-15/exampleVacuumRobotVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3",
"views": 987000,
"width": 1080
}
]
},
"found": true
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example (output fragment; HTTP assumed)
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 7
Review these request fields before running. Keep the published provider and request method unchanged.
fields- Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
max_items- Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
summary- Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
jq- Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
max_cost_usd- Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Idempotency-Key- Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
body- Search public Douyin videos by keyword with sorting, time, duration, and content filters.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/anyapi/v1/run/douyin.search_videos' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "duration": "0", "publishedWithin": 0, "query": "机器人", "sort": "relevance" }'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "output": { "data": { "backtrace": "eyJyZXFJZCI6ImV4YW1wbGUtc2VhcmNoLXRyYWNlLTEyMyJ9", "hasMore": true, "nextCursor": "20", "searchId": "6890123457812345678", "videos": [ { "authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_robotwatcher_avatar~c5_300x300.jpeg", "authorNickname": "机器人观察员", "authorUniqueId": "robot_watcher_cn", "authorUserId": "51923847610283746", "authorVerified": true, "caption": "国产人形机器人最新进展,已经能对话又能干活了 #机器人 #科技前沿", "comments": 8900, "createdUtc": 1758211200, "durationMs": 58000, "height": 1920, "id": "7449028193746501234", "image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_humanoid_cover~tplv-dy-resize-origshort-autoq-75.jpeg", "likes": 246000, "region": "CN", "saves": 41000, "shares": 15200, "url": "https://www.douyin.com/video/7449028193746501234", "videoUrl": "https://v3-web.douyinvod.com/example_token_a1b2c3/video/tos/cn/tos-cn-ve-15/exampleHumanoidVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3", "views": 3820000, "width": 1080 }, { "authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_geeklab_avatar~c5_300x300.jpeg", "authorNickname": "极客实验室", "authorUniqueId": "geek_lab_official", "authorUserId": "40381927465102938", "authorVerified": true, "caption": "机器人舞蹈大赛总决赛现场,这个转圈太丝滑了", "comments": 3400, "createdUtc": 1757952000, "durationMs": 73000, "height": 1920, "id": "7448611029384756123", "image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_robotdance_cover~tplv-dy-resize-origshort-autoq-75.jpeg", "likes": 98000, "region": "CN", "saves": 12800, "shares": 6200, "url": "https://www.douyin.com/video/7448611029384756123", "videoUrl": "https://v3-web.douyinvod.com/example_token_d4e5f6/video/tos/cn/tos-cn-ve-15/exampleRobotDanceVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3", "views": 1560000, "width": 1080 }, { "authorImage": "https://p3-pc.douyinpic.com/img/aweme-avatar/example_homegadgets_avatar~c5_300x300.jpeg", "authorNickname": "居家好物研究所", "authorUniqueId": "home_gadgets_lab", "authorUserId": "29384756102938475", "authorVerified": false, "caption": "扫地机器人买贵的还是买便宜的?三款实测对比", "comments": 2700, "createdUtc": 1757520000, "durationMs": 214000, "height": 1920, "id": "7447903384756019283", "image": "https://p3-pc.douyinpic.com/img/tos-cn-i-0813/example_vacuumrobot_cover~tplv-dy-resize-origshort-autoq-75.jpeg", "likes": 61000, "region": "CN", "saves": 22000, "shares": 3100, "url": "https://www.douyin.com/video/7447903384756019283", "videoUrl": "https://v3-web.douyinvod.com/example_token_g7h8i9/video/tos/cn/tos-cn-ve-15/exampleVacuumRobotVideoId/?a=6383&ch=0&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C3", "views": 987000, "width": 1080 } ] }, "found": true } }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use Douyin Video with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.