FeedMCP

Guides

Python guide: Douyin trending, video comments and Xingtu creator rates

Standard Douyin endpoints cost $0.002/call, Xingtu creator analytics $0.004/call, and rate cards $0.04/call. Here is a clean Python template covering all three.

Endpoints used

Endpoint Path Price
Douyin trending list GET /v1/douyin/trends/list $0.002
Douyin video comments GET /v1/douyin/videos/comments/list $0.002
Douyin account search GET /v1/douyin/users/search $0.002
Douyin account to Xingtu ID GET /v1/douyin/xingtu/creators/lookup $0.002
Xingtu creator rates GET /v1/douyin/xingtu/creators/rates/get $0.04

Steps

Call GET /v1/douyin/trends/list ($0.002) for current trending topics.

2. Pull video comments

Call GET /v1/douyin/videos/comments/list ($0.002/page) for viewer feedback.

3. Resolve Xingtu ID and rates

Map a creator with douyin.xingtu.creators.lookup ($0.002), then query douyin.xingtu.creators.rates.get ($0.04).

Complete code

import os, requests

API = "https://api.feedmcp.com"
AUTH = {"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"}

trends = requests.get(f"{API}/v1/douyin/trends/list", headers={**AUTH, "X-Max-Price": "0.002"}, timeout=30).json()
for item in trends["data"]["items"][:5]:
    print(item["rank"], item["title"], item.get("score"))

# 查达人:先搜抖音用户拿 sec_uid,再换星图 ID
users = requests.get(
    f"{API}/v1/douyin/users/search",
    params={"query": "户外露营"},
    headers={**AUTH, "X-Max-Price": "0.002"},
    timeout=30,
).json()
first = users["data"]["items"][0]
print("Found creator:", first["name"], first["id"], "followers:", first.get("followers"))

Cost estimate

Fetching trends plus searching creators costs $0.004 total; looking up one creator's Xingtu rate card adds $0.04.

Questions

How much does it cost to run this guide?

Fetching trends plus searching creators costs $0.004 total; looking up one creator's Xingtu rate card adds $0.04.

Can I do this without writing code?

Yes. Install the FeedMCP MCP server in Claude, Cursor or Cherry Studio and run the same workflow in plain language.