How do I export Douyin data into an analysis table?
How do I export Douyin data into an analysis table? Follow concrete contracts, examples and reviewable steps using Douyin.
Copy the agent prompt manually
Answer
Start by inspecting the contracts and local samples for Douyin video search, Douyin video detail. Establish the input for douyin.videos.search, then check whether its post object contains the fields your task needs.
Produce a structured local result before mapping fields to table columns or document sections. Deduplicate by platform and content ID and retain source and observation time. Downloading a file and writing to another application are separate actions; this exercise sends nothing externally.
Relevant contracts
| Capability | Object | Shape | Pagination |
|---|---|---|---|
| douyin.videos.search | Post | items | Explicit cursor |
| douyin.videos.get | Post | item | No cursor |
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.
{
"capability": "douyin.videos.search",
"method": "GET",
"params": {
"query": "露营"
}
}Clear inputs. Inspectable output.
Each click runs a local fixture. Advanced JSON inputs are checked against the selected method. Editing does not execute a request.
Copying does not execute. CLI quote is read-only and needs a local customer TEST key. Configure MCP in demo mode first. GET and POST batches both return only fictional local fixtures.
Download contract example (no execution) ↗For TEST budgets, Key scopes or failure scenarios, open the account console. Customer sandbox ↗