# Douyin Scraper — TikTok China API & Video Downloader A social media tool your agent can run on one prepaid apifare key. Page: https://apifare.com/tools/sian.agency/douyin-scraper ## What you need An apifare key with credits (sign up: POST https://apifare.com/v1/signup {"email": "..."}; new accounts get 500 free credits). No other account or key. ## Inputs - `operation` (string): Operation — what do you want to scrape? (e.g. "searchVideo") - `videoId` (string): Video ID (for Video Detail / Comments / Sub-Comments) (e.g. "7615930241370348219") - `commentId` (string): Comment ID (for Video Sub-Comments) (e.g. "7615932448664650533") - `secUid` (string): Sec UID (for User Profile / User Videos) (e.g. "MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ") - `sortType` (string): Sort order (for User Videos) (e.g. "LATEST") - `keyword` (string): Search Keyword (for Search Videos / Search Users) (e.g. "美食") The most relevant fields; the search result's input_schema lists all of them. ## Price 5 credits reserved per run, settled to the run's true cost, never more than 20 credits (1 credit = $0.01). Failed runs are refunded. Exact numbers: https://apifare.com/capabilities ## Run it 1. Find it: MCP search_apis, or GET https://apifare.com/v1/search?q=Douyin%20Scraper%20%E2%80%94%20TikTok%20China%20API%20%26%20Video%20Downloader with Authorization: Bearer . Take the result named "Douyin Scraper — TikTok China API & Video Downloader"; it carries a proxy_route. 2. Run it: MCP proxy_call with that proxy_route and the input JSON (apifare-mcp over stdio), or POST the proxy_route over HTTP with the input JSON as the body and the same Authorization header. 3. On HTTP 402, relay the body's human_readable field to your human verbatim, wait, then retry the same call. Every other error and its fix: https://apifare.com/errors.md