GET /v1/douyin/aweme_post

Douyin user videos API: an account's newest posts by sec_uid

Returns a Douyin account's newest posts, up to 42, each with caption, hashtags, likes, comments and author. Send sec_uid. Douyin holds back every later page from a logged-out reader, so a longer feed stops with stop_reason cursor_stalled and no next_cursor.

Price
$0.0005 per 42 results
Billing
$0.0005/42
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/douyin/aweme_post?sec_uid=MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4&max_pages=1' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/douyin/aweme_post",
    params={
        "sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4",
        "max_pages": "1",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
sec_uid requiredquerystringA Douyin sec_uid, or the https://www.douyin.com/user/{sec_uid} profile URL. Example MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4.
since querystringStop at this date. 2025-09-21 means midnight UTC (2025-09-21T00:00:00Z). Datetimes must use RFC3339 with a timezone, for example 2025-09-21T09:00:00+09:00. 365d means 365 days before submission. Invalid calendar dates return 400. With max_pages, the first boundary reached stops the walk. since alone creates a job.
max_pages queryintegerMaximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. Example 1.
cursor querystringOpaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native Douyin cursor from a raw page answers 400. Result download cursors belong to the results route.
page_size queryintegerNative count, default 42. Douyin answers at most 42. Billed per 42 unique returned items, one native page. Default 42.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Douyin (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as Douyin answered it instead of the normalized Page[Post]. Default false.
Idempotency-Key headerstringReuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "items": [
      {
        "id": "7699846003989499170",
        "shortcode": null,
        "taken_at": "2026-10-23T12:55:11+00:00",
        "kind": "video",
        "product_type": "0",
        "caption": "新版本终极“警告”:不要轻信里世界!莫奈主题外观抢先看! 10月30日,中式民俗季【苗疆蛊事】正式开启。您眼前那些看似熟悉的事物,或许藏着来自另一个“世界”的面孔…… #逆水寒手游  #逆水寒表里世界",
        "hashtags": [
          "逆水寒手游",
          "逆水寒表里世界"
        ],
        "mentions": [],
        "accessibility_caption": null,
        "likes": 8731,
        "comments": 1142,
        "views": null,
        "counts_hidden": null,
        "comments_disabled": null,
        "is_pinned": true,
        "is_paid_partnership": null,
        "owner": {
          "id": "97523645652",
          "username": null,
          "full_name": "网易逆水寒",
          "is_verified": true,
          "is_private": null,
          "avatar_url": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-23auat310x_4944ebf6f11d4cefb393fc1c135d0b76.jpeg?from=327834062",
          "latest_story_at": null,
          "extra": {
            "sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4"
          }
        },
        "coauthors": [],
        "sponsors": [],
        "tagged": [],
        "location": null,
        "audio": {
          "id": "7699846203294829350",
          "title": "@网易逆水寒创作的原声",
          "artist": "网易逆水寒",
          "is_original": false
        },
        "thumbnail_url": "https://p3-pc-sign.douyinpic.com/tos-cn-i-dy/3d49f53a1b874836b3a6899627f14491~tplv-dy-cropcenter:323:430.jpeg?lk3s=138a59ce&x-expires=2109495600&x-signature=q7av9zE3pETSHc2sIunQ24c6aLE%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=true&sh=3…",
        "video_duration": 504.067,
        "media": [
          {
            "kind": "video",
            "url": "https://v26-webf.douyinvod.com/dd50599696ec3a3c144792823bc9853c/6af08fad/video/tos/cn/tos-cn-ve-15/oQ0BPwjfTbDqiAA6Ifp19X8BgiRADnSRjQ2qEH/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2325&bt=2325&cs=0&ds=6&ft=zkMrh76a99xx~o-sd…",
            "width": 2560,
            "height": 1440,
            "duration": 504.067
          }
        ],
        "media_urls": [
          "https://v26-webf.douyinvod.com/dd50599696ec3a3c144792823bc9853c/6af08fad/video/tos/cn/tos-cn-ve-15/oQ0BPwjfTbDqiAA6Ifp19X8BgiRADnSRjQ2qEH/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2325&bt=2325&cs=0&ds=6&ft=zkMrh76a99xx~o-sd…"
        ],
        "extra": {
          "url": "https://www.douyin.com/video/7699846003989499170",
          "shares": 2042,
          "saves": 359,
          "region": null
        }
      },
      {
        "id": "7697607804957265190",
        "shortcode": null,
        "taken_at": "2026-10-17T12:09:48+00:00",
        "kind": "video",
        "product_type": "0",
        "caption": "【新地图月见岭】月光光,心慌慌。10月30日, 走进月见岭,一桩牵系你身世的苗疆蛊事,正待你亲手揭开真相。#逆水寒手游  #逆水寒表里世界  #逆水寒月见岭",
        "hashtags": [
          "逆水寒手游",
          "逆水寒月见岭",
          "逆水寒表里世界"
        ],
        "mentions": [],
        "accessibility_caption": null,
        "likes": 19098,
        "comments": 1095,
        "views": null,
        "counts_hidden": null,
        "comments_disabled": null,
        "is_pinned": true,
        "is_paid_partnership": null,
        "owner": {
          "id": "97523645652",
          "username": null,
          "full_name": "网易逆水寒",
          "is_verified": true,
          "is_private": null,
          "avatar_url": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-23auat310x_4944ebf6f11d4cefb393fc1c135d0b76.jpeg?from=327834062",
          "latest_story_at": null,
          "extra": {
            "sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4"
          }
        },
        "coauthors": [],
        "sponsors": [],
        "tagged": [],
        "location": null,
        "audio": {
          "id": "7697607893790509866",
          "title": "@网易逆水寒创作的原声",
          "artist": "网易逆水寒",
          "is_original": false
        },
        "thumbnail_url": "https://p3-pc-sign.douyinpic.com/tos-cn-i-dy/07b1d3fcfb0b4541b4a24627348ee5b9~tplv-dy-cropcenter:323:430.jpeg?lk3s=138a59ce&x-expires=2109495600&x-signature=qppbYR2RpdsjvTgFtv%2FOj39DY4Q%3D&from=327834062&s=PackSourceEnum_PUBLISH&se=true&sh…",
        "video_duration": 184.8,
        "media": [
          {
            "kind": "video",
            "url": "https://v26-webf.douyinvod.com/9286b24283f6de9f2d0781bf132fb044/6af08e6d/video/tos/cn/tos-cn-ve-15/oQIFjsSqGR9fgObTAQLDE97FvCefVXBgINAGBp/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2384&bt=2384&cs=0&ds=6&ft=zkMrh76a99xx~o-sd…",
            "width": 3118,
            "height": 1440,
            "duration": 184.8
          }
        ],
        "media_urls": [
          "https://v26-webf.douyinvod.com/9286b24283f6de9f2d0781bf132fb044/6af08e6d/video/tos/cn/tos-cn-ve-15/oQIFjsSqGR9fgObTAQLDE97FvCefVXBgINAGBp/?a=6383&ch=10010&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2384&bt=2384&cs=0&ds=6&ft=zkMrh76a99xx~o-sd…"
        ],
        "extra": {
          "url": "https://www.douyin.com/video/7697607804957265190",
          "shares": 2513,
          "saves": 578,
          "region": null
        }
      }
    ],
    "pages": [
      {
        "cursor": null,
        "fetched_at": "2026-11-08T11:57:01.010529+00:00",
        "count": 41,
        "signed_in": false
      }
    ],
    "next_cursor": null,
    "has_more": false,
    "stop_reason": "cursor_stalled",
    "coverage": {
      "since": null,
      "oldest_at": "2026-10-07T10:00:01+00:00",
      "since_reached": false
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-11-08T11:57:01.010529+00:00",
    "cost": "$0.0005",
    "balance": "$424.0699",
    "request_id": "req_b39cc65c0d4a1082b79c37f3ef5fc2b6"
  }
}

How it works

The account's newest posts, up to 42. Douyin withholds every later page from a logged-out reader, so a longer feed stops with stop_reason cursor_stalled and no next_cursor. With max_pages=1, returns Page[Post] under data; with get_raw=true returns the upstream JSON.

The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs.

A field Douyin does not carry is null, a list it does not carry is [], and Douyin-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Billing: $0.0005 per 42 unique returned items (one native page), rounded up to a minimum of one billing unit. Jobs settle once after successful completion.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Douyin account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.