# Douyin Works Crawler / douyin-works-crawler --- ## Overview A Douyin content data retrieval tool. Enter a Douyin ID (pure letters, letters+digits, or pure digits) to instantly fetch account basic info and recent works (pagination supported, up to 50 items per page) from the RedFox API wide-area database, including engagement data and direct video links—plus a TOP 3 engagement analysis and account feature summary to help you quickly understand the target account's content performance. Chinese nickname queries are not supported and will be blocked with guidance to use the Douyin ID instead. **Core Value** - **One-click works retrieval**: Enter a Douyin ID (pure letters, letters+digits, or pure digits) to automatically fetch account basic info (nickname, Douyin ID, UID, followers, total works) and recent work lists. - **Auto data highlight analysis**: TOP 3 engagement works analysis + account feature summary (posting frequency, content direction, engagement trends, viral patterns)—quickly identify content worth learning from. - **Direct work links**: Each work comes with a direct link—click to jump to the original video. **Intended Users** - 🏢 **Brands / marketing managers** — Monitor competitor Douyin account content performance and engagement data. - 🛍️ **MCN / operations staff** — Quickly evaluate creator account data performance and content direction. - 📝 **Douyin content creators** — Learn viral content patterns from top accounts in your niche. - 📊 **Data analysts** — Batch-fetch structured data for analysis reports. --- ## Features ### Core Capabilities - **Account info query**: Enter a Douyin ID to instantly fetch account basic data (nickname, Douyin ID, UID, followers, total works). - **Recent works retrieval**: Automatically fetch recent works (pagination supported, up to 50 items per page), including likes, comments, shares, collects, engagement counts, and direct work links. - **Data highlight analysis**: Output TOP 3 engagement works analysis + account feature analysis (posting frequency, content direction, engagement trends, viral patterns). ### Highlights - **Chinese nickname interception**: All queries use the uniqueName parameter; Chinese nickname input is blocked directly (no API call) with guidance to provide a Douyin ID. - **Direct links**: Nickname links to account homepage; each work provides a direct video link. - **Safe & secure**: Data service-based access—no Douyin account login required. --- ## API Key Acquisition & Security - This skill requires the environment variable: `REDFOX_API_KEY`. - `REDFOX_API_KEY` is issued by [RedFoxHub](https://redfox.hk/settings/api-keys?source=github) (`https://redfox.hk`) - Register at [RedFoxHub](https://redfox.hk?source=github) to obtain `REDFOX_API_KEY`. - Configure `REDFOX_API_KEY` on your device before using this skill. - Before providing your key, confirm its source, scope, validity period, and whether it can be reset or revoked. - Do not hard-code or expose keys in plain text in code, prompts, logs, or output files. --- ## Usage Guide Simply describe your query needs in natural language—no commands to memorize. ### Quick Reference | Intent | Example phrase | Result | | ------ | -------------- | ------ | | Query account works | "Crawl Douyin works for luoyonghao" | Fetch account basic info + recent work list + data highlight analysis | | Precise query | "Query works for Douyin ID cdjjc028" | Precise ID match | | Export data | "Export works data for luoyonghao" | Get structured works data | ### Output Example After querying, you will receive the following structured results: **Account Basic Info**: Nickname (clickable to homepage), Douyin ID, UID, followers, total works **Recent Works List** (pagination supported, up to 50 items per page, reverse chronological): | # | Publish Time | Title | Likes | Comments | Shares | Collects | Engagement | Link | | … | … | … | … | … | … | … | … | Clickable to original video | **Data Highlights**: TOP 3 engagement works analysis + Account features (posting frequency, content direction, engagement trends, viral patterns) --- --- ## Use Cases | Scenario | Role | Example question | Benefit | | -------- | ---- | ---------------- | ------- | | Brand competitor monitoring | Brand marketing manager | "Check the works data and engagement of this competitor Douyin account for me" | Stay on top of competitor content trends; optimize your own strategy | | MCN creator evaluation | MCN operations staff | "Show me this creator's followers and recent works data" | Quickly evaluate creator value; support signing decisions | | Content optimization learning | Douyin creator | "Check the works of top accounts in my niche and analyze viral patterns" | Find content optimization directions; boost account engagement | | Data analysis reports | Data analyst | "Export works data for these Douyin accounts for analysis" | Efficiently fetch structured data to support analysis reports | --- ## Important Data Notes - The work list shows recent works only—pagination supported (up to 50 items per page) in reverse chronological order, not the account's full historical works; the account's total historical works come from the API's `total` field. - Engagement counts are calculated manually: likes + comments + shares + collects. - Direct work links come from the API's `opusUrl` field. - Account basic info is extracted from the `author*` fields of each work item; there is no separate account info endpoint. - Number formatting: ≥10k displays as `x.xw` (e.g., 3.2w), ≥100M displays as `x.x亿`; <10k uses comma separators. - Chinese nickname queries are not supported (nicknames are not unique, and the wide-area database rarely covers nicknames). Use the Douyin ID instead—found via Douyin APP → target account homepage → below the nickname; supported types: pure letters (e.g., luoyonghao), letters+digits (e.g., 18561019369wn), and pure digits (e.g., 50734407794). - All data comes exclusively from the RedFox API wide-area database; the wide-area database only covers trending data, so some accounts may not be available. No third-party supplementation or estimation. If an account is not yet indexed, submit it at https://redfox.hk/account-storage — indexed once, queryable forever. > 💼 另外红狐配套全量数据库可提供完整详实数据,如需了解采购方案,可前往红狐hub[企业服务](https://redfox.hk/dashboard/enterprise)对接咨询 --- ## Query Miss Handling When no account is found, do not search the web and do not supplement data from third-party sources. Output the prompt below as-is: ``` No information was found for this account. Please check that the Douyin ID or nickname is correct. Try again with the Douyin ID for an exact match. Account not yet indexed: submit it at https://redfox.hk/account-storage — indexed once, queryable forever. ``` Inputs containing Chinese characters are blocked before any API call (Chinese nicknames are not unique), and the user is guided to provide the Douyin ID instead. --- ## Data Source - **Sole data source**: RedFox Data API (wide-area database) - **Query endpoint**: `POST https://redfox.hk/story/api/dy/data/listWorkByAccount` - **Authentication**: `X-API-KEY` request header (env var `REDFOX_API_KEY`, format `ak_xxx`) - **Data scope**: Recent works, pagination supported (up to 50 items per page); the wide-area database only covers trending data. If an account is not yet indexed, submit it at https://redfox.hk/account-storage — indexed once, queryable forever. ---