# Douyin Index Scraper (`blueskyscraper/douyin-index-scraper`) Actor

Get Douyin Index (抖音指数) data: daily interest series per keyword back to 2024, related words, available dates and regions. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/blueskyscraper/douyin-index-scraper.md
- **Developed by:** [BlueskyScraper](https://apify.com/blueskyscraper) (community)
- **Categories:** Social media, Marketing, SEO tools
- **Features:** Limited permissions
- **Stats:** 19 total users, 9 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.60 / 1,000 keyword series

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

Douyin Index (抖音指数) and the Toutiao index as data: the daily composite interest series for a keyword **back to 2019-01-01**, an optional split into search / content / consumption index, related words, the available date range and the list of regions. No login, no browser — the data comes from an API.

![Douyin Index scraper input: what you fill in](https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/douyin-index-scraper/input.png)

![Douyin Index scraper output: real rows from a run](https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/douyin-index-scraper/output.png)

### Tested head-to-head on 6 November 2026

The same two keywords and a 30-day window went through this Actor and the two other Douyin Index Actors in the Store.

| | This Actor | Others |
|---|---|---|
| Price per keyword, Free plan | $0.01384 | $0.025–$0.03 |
| Daily series for every keyword | Yes | Yes |
| Time | 17 s | 20–23 s |

### What you get

| Mode | What it returns |
|---|---|
| `trend` (default) | One row per keyword: the full daily series (`points[]`), first/last date, count, peak, average, lag |
| `trend` + `fullHistory: true` | The same row with everything the source has — from 2019-01-01 or from the day the keyword first appeared |
| `trend` + `includeIndexBreakdown: true` | Adds `indexBreakdown`: search, content and consumption index for the window, the window before it and the change vs last year |
| `trend` + `flat: true` | One row per point — handy for loading into a warehouse |
| `related` | Content-related and search-related words with scores, rank, growth and the queries behind them |
| `dates` | The latest date the publisher reports for each data type |
| `areas` | Regions (with levels) and categories |

### Coverage measured on 09 November 2026

- **History starts on 2019-01-01.** One call for 狗粮 (dog food) with the window `2018-01-01 … 2026-11-08` returned **2 869 daily points from 2019-01-01**, no gaps; every day before 2019 came back as 0, i.e. not covered. For 美食 (food) the series starts on 2021-01-01 — each keyword starts when the source began tracking it, and the row says so in `sourceCoverageStart` / `daysBeforeSourceCoverage`.
- Windows are comparable: the same dates requested in three different windows came back with identical values, so you can stitch a daily tail onto an old export.
- Toutiao works the same way (`appName: "toutiao"`), from 2019-01-01 as well. It is a separate index — `platform` tells you which one a row belongs to.
- One API call returns up to **5 keywords at once** — that is why batching is the default.
- The last available day is normally yesterday; the row carries `lagDays` and `isPartialLastPeriod`.
- Related words: **83 content-related + 91 search-related** on the demo keyword (狗粮, dog food).

### Example row (`trend`)

```json
{
  "type": "keyword_series",
  "keyword": "狗粮",
  "granularity": "daily",
  "unit": "douyin_index_points",
  "platform": "douyin",
  "metricType": "index",
  "indexType": "composite",
  "metricDefinitionVersion": "douyin_index.composite.daily.v1",
  "definition": "composite interest index (综合指数) … — relative, not a count of people, posts or sales",
  "requestedStart": "2026-09-01",
  "requestedEnd": "2026-11-02",
  "points": [{ "date": "2026-09-01", "value": 131982 }],
  "pointsCount": 63,
  "expectedPoints": 63,
  "missingPoints": 0,
  "firstDate": "2026-09-01",
  "lastDate": "2026-11-02",
  "lastValue": 151604,
  "peakDate": "2026-09-27",
  "peakValue": 224133,
  "averageValue": 150924,
  "lagDays": 0,
  "lagDaysFromCollection": 1,
  "isPartialLastPeriod": false,
  "requestWindowDays": 63,
  "windowComparability": "values do not depend on the requested window …",
  "revisionNote": "… re-fetch the last 3 days on a daily schedule",
  "provenance": { "source": "douyin_index", "collectedAt": "…", "availableAt": null, "availableAtReason": "the_index_publisher_does_not_expose_a_data_version", "checksum": "sha256:…" },
  "metrics": { "index": { "unit": "douyin_index_points", "type": "index", "history": "native_historical", "completeness": "complete" } }
}
```

### What this actor deliberately does not do

- **The index is not people, posts or sales.** It is a relative interest figure that the platform normalises. Do not compare two different windows as if they were absolute numbers.
- **No invented data.** A day without a value stays `null` with a reason; a gap is counted in `missingPoints`, never filled with a zero.
- **No history before 2019.** The source starts on 2019-01-01 (proved by direct requests for 2018–2019; days before that come back as 0 and are dropped, not passed on as data).
- **No glued indexes.** `points[]` is the daily composite index (综合指数). Search, content and consumption index are separate whole-window figures in `indexBreakdown`; they are never added up or mixed into the series. The change shares `changeVsPreviousPeriod` / `changeVsSamePeriodLastYear` are published by Douyin Index on its own base and often differ from a plain ratio of the figures shown; `changeVsPreviousPeriodComputed` is that plain ratio (current / previous − 1).
- **Extra operations only when you ask.** Related words and the index split each need their own switch.
- **Related words need a Sunday.** The source refuses any other end date, so the actor snaps the window back to the nearest Sunday and says so in `endDateRule`.
- **No personal data.** Only aggregate keyword interest — no creators, no viewers.

### Input

| Field | Default | Meaning |
|---|---|---|
| `mode` | `trend` | `trend`, `related`, `dates` or `areas` |
| `keywords` | demo `狗粮` | Chinese keywords as people search them in Douyin |
| `dateFrom` / `dateTo` | last 30 days | Window, `YYYY-MM-DD`; `dateFrom: "max"` = whole history |
| `fullHistory` | `false` | Whole history from 2019-01-01, same price per keyword |
| `appName` | douyin | `douyin` or `toutiao` |
| `region` | empty | Optional region filter |
| `includeRelated` | `false` | Add a related-words row per keyword |
| `includeIndexBreakdown` | `false` | Add search / content / consumption index for the window |
| `flat` | `false` | One row per point instead of one row per keyword |
| `maxKeywords` | `20` | Upper bound on keywords |

### Daily tail update

Load the whole history once with `fullHistory: true`, then schedule the Actor daily with the default 30-day window and replace the overlapping dates: the source publishes a day with a 1–2 day delay (`lagDays`), and the newest days are the only ones that can still change.

### Price

Pay per event, no subscription.

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Keyword series | $0.01384 | $0.01246 | $0.01107 | $0.0076 |
| Index point (`flat` mode) | $0.00001 | $0.00001 | $0.00001 | $0.00001 |
| Related words | $0.003 | $0.0027 | $0.0024 | $0.0021 |
| Dates or regions lookup | $0.002 | $0.0018 | $0.0016 | $0.0014 |
| Run start | $0.009 | $0.009 | $0.009 | $0.009 |

Failed lookups and empty answers are not charged.

On the Apify Free plan a run returns up to 20 rows, because every row is bought from a paid source. Paid plans have no such limit.

### FAQ

**Do I need a login, cookies or my own proxy?** No. Paste your input and press Start.

**How do I use the data elsewhere?** Export the dataset as JSON, CSV or Excel, schedule the Actor, or call it through the Apify API, n8n, Make and the Apify MCP server for AI agents.

**What if there is no data for my input?** You get a free row with type `error` or `notice` that explains why. Data rows are the only rows you pay for, plus the small run start fee.

**Something looks wrong?** Open an issue on the Issues tab with the run link. We read every one.

# Actor input Schema

## `mode` (type: `string`):

What to fetch. Interest over time: the daily index series for each keyword. Related words: words linked by content and by search. Available dates: the last date with data. Regions and categories: the region and category codes the source knows.

## `keywords` (type: `array`):

Keywords in Chinese, the way people search on Douyin (for example 狗粮). Up to 5 words go into one source call, so several words per run cost less per word.

## `dateFrom` (type: `string`):

Start of the window (YYYY-MM-DD), or "max" for the whole history. Empty = the last 30 days. The source has data from 2019-01-01 (each keyword from the day it first appeared).

## `dateTo` (type: `string`):

End of the window (YYYY-MM-DD). Empty = today. The latest available date is usually yesterday.

## `fullHistory` (type: `boolean`):

Ignore From date and ask the source for everything it has: from 2019-01-01, or from the day the keyword first appeared. Same price per keyword — one call returns the whole series.

## `appName` (type: `string`):

Whose index to read: douyin (抖音, default when empty) or toutiao (今日头条). The two are separate indexes — every row says which one in `platform`; do not mix them in one series.

## `region` (type: `string`):

Region code from the "Regions and categories" mode. Empty = all of China.

## `includeRelated` (type: `boolean`):

Adds a separate row with related words for every keyword. Charged as a separate event.

## `includeIndexBreakdown` (type: `boolean`):

Adds `indexBreakdown` to every series row: the search index, content index and consumption index for the whole window, the same window just before it and the change vs last year. These are whole-window figures from the source, not daily points. One extra source call per 5 keywords, no extra charge.

## `flat` (type: `boolean`):

By default you get one row per keyword with the whole series inside. Turn this on for one row per date, which is easier to load into a database or spreadsheet.

## `maxKeywords` (type: `integer`):

The most keywords to take from the list. The rest are ignored.

## `proxyConfiguration` (type: `object`):

Not needed: the data comes from an API, not from the website.

## Actor input object example

```json
{
  "mode": "trend",
  "keywords": [
    "狗粮",
    "猫粮"
  ],
  "fullHistory": false,
  "includeRelated": false,
  "includeIndexBreakdown": false,
  "flat": false,
  "maxKeywords": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "狗粮",
        "猫粮"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blueskyscraper/douyin-index-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keywords": [
        "狗粮",
        "猫粮",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("blueskyscraper/douyin-index-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "狗粮",
    "猫粮"
  ]
}' |
apify call blueskyscraper/douyin-index-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blueskyscraper/douyin-index-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rCSj6Na52gziDAgY0/builds/TiG8QNFRVpJfZeWz2/openapi.json
