# Track Douyin Trends and Popular Videos

**Use case:** 

Track Douyin trends and popular videos by keyword using recent posts, hashtags, creators, publishing times, and engagement metrics.

## Input

```json
{
  "keywords": [
    "国潮",
    "新能源汽车",
    "咖啡"
  ],
  "maxPostsPerKeyword": 100,
  "sortBy": "latest",
  "publishTime": "one_week",
  "duration": "unlimited",
  "enrichProfiles": false,
  "videoUrls": [],
  "maxCommentsPerUrl": 100,
  "maxCommentsPerVideo": 0,
  "maxRepliesPerComment": 0
}
```

## Output

```json
{
  "id": {
    "label": "Record ID",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "keyword": {
    "label": "Search keyword",
    "format": "string"
  },
  "position": {
    "label": "Search position",
    "format": "integer"
  },
  "diggCount": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "shareCount": {
    "label": "Shares",
    "format": "integer"
  },
  "collectCount": {
    "label": "Saves",
    "format": "integer"
  },
  "durationMs": {
    "label": "Duration",
    "format": "integer"
  },
  "videoWidth": {
    "label": "Video width",
    "format": "integer"
  },
  "videoHeight": {
    "label": "Video height",
    "format": "integer"
  },
  "videoFormat": {
    "label": "Video format",
    "format": "string"
  },
  "isSlideshow": {
    "label": "Slideshow",
    "format": "boolean"
  },
  "postType": {
    "label": "Post type",
    "format": "string"
  },
  "isAd": {
    "label": "Advertisement",
    "format": "boolean"
  },
  "hasGoods": {
    "label": "Has goods",
    "format": "boolean"
  },
  "allowDownload": {
    "label": "Downloads allowed",
    "format": "boolean"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "string"
  },
  "videoFileUrl": {
    "label": "Stored video",
    "format": "string"
  },
  "imageUrls": {
    "label": "Slideshow images",
    "format": "array"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Douyin Scraper 2026](https://apify.com/devcake/douyin-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/devcake/douyin-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/devcake/douyin-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
