# Douyin Marketing Calendar Scraper (`toolzerhub/douyin-marketing-calendar-scraper`) Actor

Collect Douyin's official marketing-event calendar: seasonal and platform campaign moments for a date range, filtered by city and category, each with its status, tags, and related topics. Get full detail for any single event by its calendar ID. Plan content around Douyin's own campaign calendar.

- **URL**: https://apify.com/toolzerhub/douyin-marketing-calendar-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** Social media, Marketing, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Douyin Marketing Calendar Scraper

Collect Douyin's official marketing-event calendar: seasonal and platform campaign moments for a date range, filtered by city and category, each with its status, tags, and related topics. Get full detail for any single event by its calendar ID. Pick a mode with `scraperType`.

### Modes

| `scraperType` | Returns | Needs |
|---|---|---|
| `calendarEvents` (default) | Campaign events and related topics for a date range | — |
| `calendarEventDetail` | Full detail for one event | `calendar_id` |

### Input

| Field | Use it for |
|---|---|
| **`start_date`**, **`end_date`** | `calendarEvents` only, as `yyyyMMdd`. Left empty, the range defaults to today through six months out. |
| **`city_code`** | `calendarEvents` only. Narrows the calendar to one city. |
| **`category_code`** | `calendarEvents` only. Narrows the calendar to one category. |
| **`calendar_id`** | Required for `calendarEventDetail`. From a `calendarEvents` row's `id`. |

```json
{
  "scraperType": "calendarEvents",
  "start_date": "20260801",
  "end_date": "20261001"
}
```

### Output

| Field | Mode | Contents |
|---|---|---|
| **`id`**, **`hot_title`**, **`start_date`**, **`end_date`**, **`level_code`**, **`category_name`**, **`city_name`**, **`cover_url`**, **`event_status`**, **`tags`**, **`sentence`**, **`related_topics`**, **`calendar_list`** | `calendarEvents` | Each campaign event or related topic |
| **`id`**, **`hot_title`**, **`start_date`**, **`end_date`**, **`level_code`**, **`category_name`**, **`city_name`**, **`cover_url`**, **`event_status`**, **`publish_cnt`**, **`tags`**, **`related_topics`**, **`source_calendar_id`** | `calendarEventDetail` | Full detail for one event |

```json
{
  "id": "7449281002319847",
  "hot_title": "国庆黄金周",
  "start_date": "20261001",
  "end_date": "20261007",
  "event_status": "upcoming",
  "calendar_list": "event"
}
```

### Questions

**Why do I see rows that aren't campaign events?**
`calendarEvents` returns two lists in one request: the main event list, and a smaller list of related topics Douyin attaches alongside it. Both come back together rather than as separate modes; `calendar_list` tags each row `event` or `topic` so you can tell which list it came from.

**What happens if I leave `start_date` and `end_date` empty?**
The range defaults to today through six months out. Leaving the upstream endpoint's own dates blank causes it to fail server-side, so this Actor always fills a default rather than passing nothing through.

**Do dates need to be Unix timestamps?**
No — always `yyyyMMdd`, the same format every other board in this domain uses. Douyin's own calendar endpoint actually wants Unix seconds; the Actor converts internally so the input format stays consistent regardless of what the endpoint underneath expects.

**Where do I get a `calendar_id` for `calendarEventDetail`?**
From the `id` field on a row `calendarEvents` already returned.

### Related Actors

| Actor | Purpose |
|---|---|
| [Douyin Trending Scraper](https://apify.com/toolzerhub/douyin-billboard-scraper) | City codes for `city_code`, plus the reactive trend boards this calendar's planned events sit alongside |
| [Douyin Hot Search Scraper](https://apify.com/toolzerhub/douyin-hot-search-scraper) | What's trending right now, rather than what's scheduled ahead |

# Actor input Schema

## `scraperType` (type: `string`):

Choose the dataset for this run.

## `start_date` (type: `string`):

Range start, as yyyyMMdd.

## `end_date` (type: `string`):

Range end, as yyyyMMdd.

## `city_code` (type: `string`):

City to read, as returned by the city-codes endpoint.

## `category_code` (type: `string`):

Marketing-calendar category to read.

## `calendar_id` (type: `string`):

A marketing-calendar event ID.

## Actor input object example

```json
{
  "scraperType": "calendarEvents"
}
```

# Actor output Schema

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

Every record collected during this run

# 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 = {
    "start_date": "",
    "end_date": "",
    "city_code": "",
    "category_code": "",
    "calendar_id": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/douyin-marketing-calendar-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 = {
    "start_date": "",
    "end_date": "",
    "city_code": "",
    "category_code": "",
    "calendar_id": "",
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/douyin-marketing-calendar-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 '{
  "start_date": "",
  "end_date": "",
  "city_code": "",
  "category_code": "",
  "calendar_id": ""
}' |
apify call toolzerhub/douyin-marketing-calendar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolzerhub/douyin-marketing-calendar-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/uenvKbLvsyF0r0bAI/builds/E8WSDveS59H0x9xsJ/openapi.json
