# Douyin data APIs for AI agents > morigraph has 5 Douyin data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including profile, user posts, video and video comments. You need no Douyin developer account or API key, only one morigraph connection. Calls cost from 0.02 credits, about $2.00 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is Douyin Profile. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's Douyin Profile data API with {"secUserId":"MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"douyin.profile","input":{"secUserId":"MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"douyin.profile","input":{"secUserId":"MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"}}' ``` ## Douyin Profile `douyin.profile` · 0.02 credits a call (about $2.00 for 1,000), at most 0.024 Look up a public Douyin profile by sec_user_id and return normalized profile statistics. | Argument | Type | Required | What it is | |---|---|---|---| | `secUserId` | string | yes | Douyin sec_user_id for the public account. | Returns: `bio`, `followers`, `following`, `image`, `likes`, `nickname`, `posts`, `secUserId`, `shortId`, `uniqueId`, `userId` ``` data_api({"api":"douyin.profile","input":{"secUserId":"MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"}}) ``` ## Douyin User Posts `douyin.user_posts` · 0.024 credits a call (about $2.40 for 1,000) List public posts from a Douyin user with normalized engagement data and pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string or integer | no | Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. | | `limit` | integer | no | Requested page size. Values up to 20 are recommended. | | `secUserId` | string | yes | Douyin sec_user_id for the public account. | | `sort` | newest \| most-popular | no | Post order: newest, most-popular. | Returns: `authorImage`, `authorNickname`, `authorSecUserId`, `authorUniqueId`, `authorUserId`, `authorVerified`, `caption`, `comments`, `createdUtc`, `durationMs`, `hasMore`, `height`, `id`, `image`, `likes`, `nextCursor`, `posts`, `region`, `saves`, `shares`, `url`, `views`, `width` ``` data_api({"api":"douyin.user_posts","input":{"limit":20,"secUserId":"MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE","sort":"newest"}}) ``` ## Douyin Video `douyin.video` · 0.02 credits a call (about $2.00 for 1,000), at most 0.024 Fetch a public Douyin video by share URL with normalized author and engagement data. | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | Public Douyin video share URL. | Returns: `authorImage`, `authorNickname`, `authorSecUserId`, `authorUniqueId`, `authorUserId`, `authorVerified`, `caption`, `comments`, `createdUtc`, `durationMs`, `height`, `id`, `image`, `likes`, `region`, `saves`, `shares`, `url`, `videoUrl`, `views`, `width` ``` data_api({"api":"douyin.video","input":{"url":"https://www.douyin.com/video/6894784055775071503"}}) ``` ## Douyin Video Comments `douyin.video_comments` · 0.024 credits a call (about $2.40 for 1,000) List public comments on a Douyin video with author and engagement data. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string or integer | no | Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. | | `videoId` | string | yes | Douyin aweme_id for the video. | Returns: `authorImage`, `authorNickname`, `authorSecUserId`, `authorUniqueId`, `authorUserId`, `comments`, `createdUtc`, `hasMore`, `id`, `ipLabel`, `likes`, `nextCursor`, `replyCount`, `text`, `total`, `videoId` ``` data_api({"api":"douyin.video_comments","input":{"videoId":"7448118827402972455"}}) ``` ## Douyin Video Search `douyin.search_videos` · 0.24 credits a call (about $24 for 1,000) Search public Douyin videos by keyword with sorting, time, duration, and content filters. | Argument | Type | Required | What it is | |---|---|---|---| | `backtrace` | string | no | Backtrace token returned by the previous page. | | `cursor` | string or integer | no | Pagination cursor: pass the previous response's nextCursor; omit for the first page. A raw integer cursor is still accepted. | | `duration` | 0 \| 0-1 \| 1-5 \| 5-10000 | no | Duration filter in minutes: any, under 1, 1 to 5, or over 5. | | `publishedWithin` | 0 \| 1 \| 7 \| 180 \| 0 \| 1 \| 7 \| 180 | no | Publication window in days. Use the canonical JSON integer 0 for any time, 1 for one day, 7 for seven days, or 180 for 180 days; legacy numeric strings remain accepted. | | `query` | string | yes | Keyword to search for. | | `searchId` | string | no | Search ID returned by the previous page. | | `sort` | relevance \| most-liked \| date-posted | no | Sort order: relevance (Douyin's comprehensive ranking), most-liked, date-posted. | Returns: `authorImage`, `authorNickname`, `authorUniqueId`, `authorUserId`, `authorVerified`, `backtrace`, `caption`, `comments`, `createdUtc`, `durationMs`, `hasMore`, `height`, `id`, `image`, `likes`, `nextCursor`, `region`, `saves`, `searchId`, `shares`, `url`, `videoUrl`, `videos`, `views`, `width` ``` data_api({"api":"douyin.search_videos","input":{"duration":"0","publishedWithin":0,"query":"机器人","sort":"relevance"}}) ``` ## Do I need a Douyin API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 5 APIs on this page. ## What does Douyin data cost through morigraph? Between 0.02 and 0.24 credits a call depending on the API, where a credit is about 10 cents. That is from about $2.00 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get Douyin data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. ## Which Douyin data APIs are available? Douyin Profile, Douyin User Posts, Douyin Video, Douyin Video Comments and Douyin Video Search. --- Canonical page: https://morigraph.com/tools/data/douyin/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt