Coze · OpenAPI

Douyin and Xiaohongshu data in Coze

Coze can create a plugin from an OpenAPI file. Import a per-platform file such as https://xtikapi.com/openapi/xiaohongshu.json, choose Service auth with your key in a header, and every endpoint becomes a tool your bots and workflows can call.

Get an API key

Import as a plugin

Steps follow the Coze docs on coze.cn.

  1. In your workspace library, create a plugin and choose Import.
  2. Choose URL and enter https://xtikapi.com/openapi/xiaohongshu.json (or another platform).
  3. Auth: Service → Service token / API key. Location: Header. Parameter name: Authorization. Service token: Bearer, a space, then your key.
  4. Imported tools start disabled and must pass a debug run before you publish: run each with a real parameter, check data comes back, then enable it.
  5. Publish the plugin and add it to your bot or workflow.
Auth settings
Location:         Header
Parameter name: Authorization
Service token:  Bearer YOUR_API_KEY

What people build with it

  • A bot that summarises the comments on a link

    A bot with the Xiaohongshu comments tool. Send a note link and it reads two pages of comments before summarising.

    Endpoints: Xiaohongshu comments API ($0.02)

    Cost: 2 calls per request, $0.04.

  • Morning trending-list workflow

    Workflow: Douyin trending + Weibo hot search → LLM picks what matters to your industry → morning brief.

    Endpoints: Douyin trending topics API ($0.002), Weibo hot search API ($0.002)

    Cost: 2 calls a day: $0.12 a month.

OpenAPI file for each platform

  • Douyin34 endpointshttps://xtikapi.com/openapi/douyin.json
  • Xiaohongshu16 endpointshttps://xtikapi.com/openapi/xiaohongshu.json
  • TikTok24 endpointshttps://xtikapi.com/openapi/tiktok.json
  • Kuaishou9 endpointshttps://xtikapi.com/openapi/kuaishou.json
  • Bilibili10 endpointshttps://xtikapi.com/openapi/bilibili.json
  • Weibo12 endpointshttps://xtikapi.com/openapi/weibo.json
  • Zhihu16 endpointshttps://xtikapi.com/openapi/zhihu.json
  • WeChat Official Accounts7 endpointshttps://xtikapi.com/openapi/wechat_mp.json
  • WeChat Channels10 endpointshttps://xtikapi.com/openapi/wechat_channels.json
  • YouTube12 endpointshttps://xtikapi.com/openapi/youtube.json
  • Instagram9 endpointshttps://xtikapi.com/openapi/instagram.json
  • X16 endpointshttps://xtikapi.com/openapi/x.json
  • Reddit11 endpointshttps://xtikapi.com/openapi/reddit.json
  • Threads5 endpointshttps://xtikapi.com/openapi/threads.json
  • Xingtu14 endpointshttps://xtikapi.com/openapi/xingtu.json
  • Pugongying15 endpointshttps://xtikapi.com/openapi/pugongying.json
  • WeChat Search1 endpointhttps://xtikapi.com/openapi/wechat.json
  • Telegram5 endpointshttps://xtikapi.com/openapi/telegram.json
  • LinkedIn3 endpointshttps://xtikapi.com/openapi/linkedin.json

Questions

Why one file per platform?

229 endpoints in one plugin is too many, and bots pick wrong more often. Each file holds at most 30 endpoints, so import only the platforms you need. One file per platform: https://xtikapi.com/openapi/douyin.json, /openapi/xiaohongshu.json and so on. Platforms with more than 30 endpoints continue in -2.json.

Debugging returns 401. Why?

The service token must read "Bearer <key>" with a space after Bearer; the bare key gets a 401. Also check the key has not been deleted or hit its spend limit.

Can Coze add the MCP server directly?

We have not verified an external-MCP route in Coze yet, so this page only covers plugin import. ChatGPT, Claude, Cursor, Dify and n8n use the MCP server directly; see the MCP page.

What does it cost in Coze?

Coze bills you as usual; XTikAPI charges per call, from $0.002 depending on the endpoint. You pay only when the platform answers; errors and timeouts are free. New accounts get $0.50 of trial credit with no card.

Do I need a Douyin or Xiaohongshu account?

No. No platform login, cookie or QR scan, only an XTikAPI API key. It reads public data, so none of your own accounts can be banned for automation.

Can a runaway workflow drain my balance?

Give this tool its own key with a spend limit in the console; at the limit that key stops and your other keys keep working. The balance is prepaid, so it stops at zero and never runs into debt.

Which platforms can it read?

19 platforms and 229 endpoints: Douyin, Xiaohongshu, TikTok, Kuaishou, Bilibili, Weibo, WeChat, Zhihu, YouTube, Instagram, X, Reddit and more. Posts, comments, accounts and trends come back in one shape, so switching platforms does not break the steps after it.

Sources

The steps follow Coze's own docs:

Other integrations