GET /v1/douyin/stored/profile/posts

Douyin stored posts API: videos, likes and captions by sec_uid

Returns the posts we have stored for a Douyin profile, newest first, each with caption, likes, comments, shares, saves, post time, cover and video URLs. Send q as a sec_uid or profile URL and limit up to 100; pass next_cursor back as cursor while has_more is true. It reads our database only, so a profile we never stored is a 404 and never a crawl.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/douyin/stored/profile/posts?q=MS4wLjABAAAArDVBosPJF3eIWVEFp0szuJ-e1V_-rK0ieJeWwpE77E8' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/douyin/stored/profile/posts",
    params={
        "q": "MS4wLjABAAAArDVBosPJF3eIWVEFp0szuJ-e1V_-rK0ieJeWwpE77E8",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
q requiredquerystringA Douyin sec_uid, or the https://www.douyin.com/user/{sec_uid} profile URL. Example MS4wLjABAAAArDVBosPJF3eIWVEFp0szuJ-e1V_-rK0ieJeWwpE77E8.
limit queryintegerPosts per page. Default 30.
cursor querystringThe next_cursor of the previous page.

Example response

The example response of the API reference.

json
{
  "data": {
    "posts": [
      {
        "id": 23694,
        "aweme_id": "7664234621622282225",
        "caption": "主播玩原神投入的状态就是如此 #原神cos #兔娘",
        "likes": 167,
        "comments": 8,
        "shares": 77,
        "collected": 33,
        "posted_at": "2026-07-19T13:44:40Z",
        "cover_url": "https://api.virev.ai/v1/media/douyin_video/23694/video_thumbnail",
        "play_url": "https://api.virev.ai/v1/media/douyin_video/23694/video",
        "image_urls": [],
        "duration_ms": 11355,
        "width": 720,
        "height": 1280,
        "video_bytes": 1779411,
        "aweme_type": 0,
        "is_video": true,
        "plays": null
      }
    ],
    "next_cursor": "WzIzNjk0LCIyMDI2LTA3LTE5VDEzOjQ0OjQwKzAwOjAwIl0",
    "has_more": true
  },
  "meta": {
    "cost": "$0.0005",
    "balance": "$9.9995",
    "request_id": "req_aefdd36f17e1fb189f3ac1c2ac1dba81"
  }
}

How it works

One page of a stored Douyin profile’s posts, newest first, with counts, caption, cover and video. Pass next_cursor back as cursor for the next page; has_more is true exactly when it is set. Flat price per page. Strictly DB: a profile we never stored is a 404, never a crawl.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404The profile is not stored.
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.