agentleFS
TikHubTikHub/tikhub-plugin/skills/douyin/SKILL.md

douyin

Skill7 starsChanged 5 months agoMITView on GitHub

Work with Douyin (抖音) data via TikHub — fetch videos, user profiles and post lists, video comments, and run video/user/general search via Douyin's dedicated search series. Use when the task targets Douyin. Covers App-V3 and the Douyin Search series.

  • Reads credentials
  • Sends data out

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Douyin / 抖音 (via TikHub)

Deep coverage of Douyin. Exhaustive endpoints: tikhub-find-endpoint "<goal>" --platform douyin.

Setup gate

[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."

Coverage: App-V3 (video/user/comments) and the dedicated Douyin Search series. (Douyin-Web, Douyin-Creator, Douyin-Index, Xingtu, and Billboard are de-scoped — reach them via discovery.)

Search note: Douyin has its own specialized search series (/douyin/search/..., POST with a JSON body). Prefer it over the App-V3 search endpoints.

Key endpoints

GoalMethod + pathKey params
One videoGET /api/v1/douyin/app/v3/fetch_one_video_v2aweme_id
Video by share URLGET /api/v1/douyin/app/v3/fetch_one_video_by_share_urlshare_url
User profileGET /api/v1/douyin/app/v3/handler_user_profilesec_user_id
User's videosGET /api/v1/douyin/app/v3/fetch_user_post_videossec_user_id, max_cursor, count
Video commentsGET /api/v1/douyin/app/v3/fetch_video_commentsaweme_id, cursor, count
Video searchPOST /api/v1/douyin/search/fetch_video_search_v2body: keyword, cursor, sort_type, publish_time
User searchPOST /api/v1/douyin/search/fetch_user_search_v2body: keyword, cursor
General searchPOST /api/v1/douyin/search/fetch_general_search_v2body: keyword, cursor, sort_type

Example

# Video search — POST with a JSON body
curl -s -X POST "https://api.tikhub.io/api/v1/douyin/search/fetch_video_search_v2" \
  -H "Authorization: Bearer $TIKHUB_API_KEY" -H "Content-Type: application/json" \
  -d '{"keyword": "美食"}'

# One video by id
curl -s "https://api.tikhub.io/api/v1/douyin/app/v3/fetch_one_video_v2?aweme_id=7637462264047710705" \
  -H "Authorization: Bearer $TIKHUB_API_KEY"

Pagination

App-V3 user/video lists use max_cursor + count; comments use cursor + count; the Search series pages via a cursor field in the JSON body. Loop on the returned cursor/has_more. Cap pages — each is billed.

Hand off to task skills

  • Download videos → social-media-downloader
  • Analyze an account → creator-analytics
  • Competitor benchmarking → competitor-analysis
  • Hashtag/keyword work → hashtag-research
  • Comment mining → comments-analysis
  • Large pulls → bulk-data-export

Red flags

  • The Search series is POST with a JSON body (keyword, cursor) — not GET query params.
  • User endpoints need sec_user_id; resolve it first if you only have a share URL/nickname.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.