# How do I connect Douyin data through MCP?

How do I connect Douyin data through MCP? Follow concrete contracts, examples and reviewable steps using Douyin.

Canonical page: https://datanavoapi.com/en/answers/douyin-mcp/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Answer

Start by inspecting the contracts and local samples for Douyin video search, Douyin video comments. Establish the input for douyin.videos.search, then check whether its post object contains the fields your task needs.

First validate discovery, description and calls through the local CLI or stdio MCP, then verify that the target client supports the same transport. Cloud clients cannot directly access this computer’s 127.0.0.1 address; a local HTTP endpoint is not a public MCP service.

## Relevant contracts

| Capability | Object | Shape | Pagination |

| --- | --- | --- | --- |

| douyin.videos.search | Post | items | Explicit cursor |

| douyin.videos.comments.list | Comment | items | Explicit cursor |

- [Douyin video search](https://datanavoapi.com/en/apis/douyin/videos/search/)
- [Douyin video comments](https://datanavoapi.com/en/apis/douyin/videos/comments/list/)

## Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

- Only send fields defined for this method; unknown fields are rejected before execution.

| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |

| --- | --- | --- | --- | --- | --- | --- |

| GET | query | string | Required | Search terms | — | "露营" |

| GET | sort | string | Optional / conditional | Order: the platform's ranking, newest first, most liked first. Douyin does not serve most liked within a day; with that pair, a day's results come with each page in order of likes | ["relevance","latest","popular"] | — |

| GET | published_within | string | Optional / conditional | Only videos posted within the last day, week or half year; any time when left out | ["day","week","half_year"] | — |

| GET | cursor | string | Optional / conditional | The `next_cursor` of the previous page. A new page is a new call. | — | — |

| GET | view | string | Optional / conditional | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |

| GET | fields | array | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## Complete one verification

Run one local fixture for a listed capability and inspect the object structure. Then filter, classify or export according to the question. A local sample cannot replace evidence for a real-platform conclusion.

```json
{
  "capability": "douyin.videos.search",
  "method": "GET",
  "params": {
    "query": "露营"
  }
}
```

## Related pages

- [Douyin video search](https://datanavoapi.com/en/apis/douyin/videos/search/)
- [Douyin video comments](https://datanavoapi.com/en/apis/douyin/videos/comments/list/)
- [Douyin APIs](https://datanavoapi.com/en/apis/douyin/)
- [Douyin MCP](https://datanavoapi.com/en/mcp/douyin/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [Query Douyin videos and accounts with Python](https://datanavoapi.com/en/guides/douyin-api-python/)
- [Read comments and replies for a Douyin video](https://datanavoapi.com/en/guides/douyin-video-comments/)
- [Comment theme research workflow](https://datanavoapi.com/en/skills/comments/)
- [Competitor content research workflow](https://datanavoapi.com/en/skills/competitors/)

[中文](https://datanavoapi.com/answers/douyin-mcp/)
