n8n · MCP · HTTP
Douyin, Xiaohongshu and TikTok data in n8n
There are two ways in n8n. To let an AI decide what to look up, attach an MCP Client Tool node to your AI Agent and point it at https://xtikapi.com/v1/mcp. For a fixed job, such as pulling the same keywords every morning, call the endpoint from an HTTP Request node: cheaper and easier to debug. Both need only a Bearer key and no platform login.
Get an API keyOption 1: AI Agent + MCP Client Tool
For chatbots and agents that pick the platform and endpoint from the question.
- Under your AI Agent node, add an MCP Client Tool as a tool.
- Endpoint: https://xtikapi.com/v1/mcp. Server Transport: HTTP Streamable.
- Authentication: Bearer Auth. Create a credential with your key as the token (a plain value: n8n credentials do not take expressions).
- Tools to Include: All. The agent sees four tools: find, describe, call and account.
- Ask "What is trending on Douyin right now?" and check the agent log: find first, then call.
Option 2: HTTP Request node (scheduled jobs)
For fixed jobs: the same keywords, accounts or trending lists every day, sent to a sheet or a chat.
- Schedule Trigger: pick the time.
- HTTP Request: GET with the endpoint URL, such as the Xiaohongshu search below. Or use Import cURL and paste the curl command from the endpoint page.
- Authentication: Generic Credential Type → Header Auth, name Authorization, value Bearer followed by your key.
- Split Out on data.items to get one row per note. For the next page, send the fields in data.next with the next request.
- Send to Google Sheets, Slack, Notion or an AI node for a summary.
curl "https://xtikapi.com/v1/xiaohongshu/notes/search?keyword=camping" \
-H "Authorization: Bearer YOUR_API_KEY"What people build with it
New Xiaohongshu notes for your keywords, every morning
Schedule Trigger → HTTP Request (Xiaohongshu search) → Split Out → Google Sheets.
Endpoints: Xiaohongshu note search API ($0.02)
Cost: 5 keywords once a day: 150 calls a month, $3.
Douyin trending list posted to your team chat daily
Schedule Trigger → HTTP Request (Douyin trending) → first 10 items → Slack, Telegram or email.
Endpoints: Douyin trending topics API ($0.002)
Cost: Once a day: 30 calls a month, $0.06.
An agent that summarises the comments on any video
Chat Trigger → AI Agent with the MCP Client Tool. Paste a TikTok video link; the agent finds the comments endpoint and calls two or three pages before summarising.
Endpoints: TikTok comments API ($0.002)
Cost: About 3 calls per chat, $0.006. Model costs are separate.
Platforms it can read
- Douyin34 endpoints
- Xiaohongshu16 endpoints
- TikTok24 endpoints
- Kuaishou9 endpoints
- Bilibili10 endpoints
- Weibo12 endpoints
- Zhihu16 endpoints
- WeChat Official Accounts7 endpoints
- WeChat Channels10 endpoints
- YouTube12 endpoints
- Instagram9 endpoints
- X16 endpoints
- Reddit11 endpoints
- Threads5 endpoints
- Xingtu14 endpoints
- Pugongying15 endpoints
- WeChat Search1 endpoint
- Telegram5 endpoints
- LinkedIn3 endpoints
Questions
MCP Client Tool or HTTP Request?
If the steps are fixed, use HTTP Request: no model in the loop, no model cost, and a failed step is easy to spot. Use MCP when the AI should choose the platform and endpoint from the question. Both draw on the same balance at the same prices.
Does it work with self-hosted n8n?
Yes. Requests leave from your n8n server, so it only needs to reach https://xtikapi.com. The MCP Client Tool's HTTP Streamable transport needs a recent n8n; if your node has no such option, upgrade or use HTTP Request.
What does it cost in n8n?
n8n 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.
More about n8n
Sources
The steps follow n8n's own docs: