---
title: "Python guide: Douyin trending, video comments and Xingtu creator rates | FeedMCP"
description: "Query Douyin trending topics, video comments and Xingtu creator rates in Python without a_bogus signing."
canonical: "https://feedmcp.com/guides/douyin-api-python/"
---
<p class="crumbs"><a href="/guides/">Guides</a></p>

# 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](/apis/douyin/trends/list/) | `GET /v1/douyin/trends/list` | $0.002 |
| [Douyin video comments](/apis/douyin/videos/comments/list/) | `GET /v1/douyin/videos/comments/list` | $0.002 |
| [Douyin account search](/apis/douyin/users/search/) | `GET /v1/douyin/users/search` | $0.002 |
| [Douyin account to Xingtu ID](/apis/douyin/xingtu/creators/lookup/) | `GET /v1/douyin/xingtu/creators/lookup` | $0.002 |
| [Xingtu creator rates](/apis/douyin/xingtu/creators/rates/get/) | `GET /v1/douyin/xingtu/creators/rates/get` | $0.04 |

## Steps

### 1. Fetch live Douyin trends

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

```python
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](/mcp/) in Claude, Cursor or Cherry Studio and run the same workflow in plain language.

## More guides

- [Python guide: search Xiaohongshu notes and export comments to CSV](/guides/xiaohongshu-api-python/)
- [Python guide: fetch WeChat Official Account articles, stats and comments](/guides/wechat-mp-articles-python/)
- [Extract video transcripts from YouTube, TikTok, Instagram, X & Meta Ads for LLMs](/guides/tiktok-youtube-transcripts-ai/)
- [Monitor competitor ads across Meta, Google, LinkedIn & TikTok in one script](/guides/competitor-ad-library-monitor/)
- [Mine product pain points across TikTok, Reddit, Xiaohongshu & Douyin with MCP](/guides/social-comment-pain-point-mining/)
- [Low-cost X (Twitter) monitoring with per-item pricing ($0.0003/item)](/guides/x-twitter-pay-per-item-guide/)
- [Production guardrails for AI agents: spend caps, X-Max-Price & idempotency](/guides/ai-agent-cost-control/)

---

HTML version: https://feedmcp.com/guides/douyin-api-python/
