PeumeAPI

Social media data · Douyin

Douyin User Posts

List public posts from a Douyin user with normalized engagement data and pagination. `views` is always null, even on posts with many likes: the play count is not returned here, so do not read it as zero plays. Likes, comments, saves and shares are populated. For the play count, run `/api/v1/douyin/xingtu_v2/get_item_play_count` with a row's `id` as `item_id` and read `watch_cnt`. With `sort` `newest`, the first page starts with the account's pinned posts, which can be years old and come on top of `limit` (`limit` 10 has returned 13 rows); the rest of the page and the following pages run newest first. Sort on `createdUtc` before counting posts in a time window. Rows by another author can appear: compare `authorSecUserId` with the requested `secUserId`.

$0.0018 per call

Call it

curl https://api.peume.com/v1/call/douyin-user-posts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "limit": 20,
    "secUserId": "your secUserId",
    "sort": "newest"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: douyin-user-posts.

Parameters

cursorstring

Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.

routestring

Upstream source to run on; omit for "tiger". tiger ($0.0012 per call, 94.8% uptime).

tiger

limitinteger

Requested page size. Values up to 20 are recommended.

Example: 20

secUserIdRequiredstring

Douyin sec_user_id for the public account.

sortstring

Post order: newest, most-popular.

newest · most-popular

Example: newest

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.