# Toutiao Scraper (`istmobot/toutiao-scraper-cheap`) Actor

Scrape Toutiao (今日头条) with no login. Input: article, video, post or profile URLs, with profile tab, in-profile search and a published-after date. Output: one row per item with title, full content, cover, images, publish time, author, stats and video stream URL.

- **URL**: https://apify.com/istmobot/toutiao-scraper-cheap.md
- **Developed by:** [Istmobot](https://apify.com/istmobot) (community)
- **Categories:** News, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.76 / 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/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

### What is Toutiao Scraper?

**A cheaper drop-in alternative for scraping Toutiao (今日头条), with the same input and output fields as the popular Toutiao scraper on the Store.** Paste article, video, post (微头条) or profile URLs and get one clean JSON row per item: title, full HTML content, abstract, cover, images, publish time, author, engagement statistics and, for videos, the MP4 stream URL. No login, no cookies, no Chinese phone number.

Toutiao is ByteDance's news and content app, one of the largest information feeds in China. Its creators include state media, provincial news outlets, brands and millions of independent writers and video makers.

Use it to:

- 📰 **Monitor Chinese media**: follow official accounts (新闻, government, brands) and get every new article or video on a schedule.
- 📈 **Measure content performance**: reads, impressions, likes, comments, shares and favourites per item, per account.
- 🔍 **Search inside an account**: every post of one profile that mentions a keyword (e.g. a company or a city).
- 🎬 **Collect video metadata and streams**: duration, resolution, bitrate, size and a direct playable URL.
- 🧠 **Feed research and AI pipelines**: full article HTML and plain-text abstracts ready for NLP, translation or summarisation.

### What data can I get?

| Field | Meaning |
|---|---|
| `url` | Canonical item URL (`/article/…`, `/video/…` or `/w/…` for posts) |
| `itemId` | Toutiao item (group) ID |
| `type` | `article`, `video` or `ugc` (微头条 post) |
| `title` | Title (for posts: the first line of the text) |
| `abstract` | First paragraph of an article, or the text of a post |
| `publishTime` | Publish time in Beijing time, `"2024-12-19 21:31"` (same format as the original) |
| `publishedAt` | The same moment as ISO 8601 UTC, handy for filtering |
| `content` | Full article HTML (articles), post text (posts) |
| `cover` | Cover image URL |
| `imageList` | Image URLs inside the article or post |
| `source` | Publisher name shown by Toutiao |
| `firstFrame` | First frame image of a video (profile feeds) |
| `authorData` | `name`, `userId`, `secUserId` (profile token), `userVerified`, `avatarUrl`, `description`, `userAuthType`, `userAuthInfo`, `followerCount` |
| `statistics` | `playCount` (videos), `commentCount`, `buryCount`, `diggCount`, `shareCount`, `readCount`, `showCount`, `repinCount`, `forwardCount`, `danmuCount` |
| `videoData` | `duration`, `height`, `width`, `size`, `bitrate`, `codecType`, `playUrl` |
| `localCityInfo` | Kept for compatibility; always `null` (see FAQ) |
| `scrapedAt` | When the row was scraped |

A value Toutiao does not publish for that kind of input is `null` rather than a made-up `0`.

### How much does it cost?

You pay per result, plus a small start fee per run. **Failed items (error rows) are free.**

| | This Actor | Market leader |
|---|---|---|
| Per 1,000 results | **$2.20** | $4.00 |
| Per run start | $0.005 | ~$0.00005 |
| Login or cookies needed | No | No |

Worked examples:

- 1,000 articles from a news account ≈ **$2.21**.
- A daily check of 10 accounts with `publishedAfter: "1 day"`, about 30 new items each ≈ 300 results ≈ **$0.67 per day**.
- One article URL ≈ $0.0072.

Apify platform usage is included in the price; you do not pay compute or proxy separately.

### How to use Toutiao Scraper

From the Apify Console:

1. Open the Actor and click **Try for free**.
2. Paste one or more Toutiao URLs into **Start URLs**: articles, videos, posts or profiles.
3. For profiles, choose a **Profile tab** (all, article, video, ugc, short_video) and the **Max items** per profile. Optionally type a **Profile search query**.
4. Click **Start**. Results appear in the **Output** tab. Download them as JSON, CSV, Excel or HTML.
5. To monitor accounts, save the input as a **Task**, set **Only items published after** to `"1 day"` and add a daily **Schedule**.

Through the API: send the same JSON input to `POST https://api.apify.com/v2/acts/istmobot~toutiao-scraper-cheap/run-sync-get-dataset-items?token=YOUR_TOKEN` and you get the rows back in the response (see the snippets below).

### ⬇️ Input

```json
{
  "startUrls": [
    "https://www.toutiao.com/article/7450114952884503059",
    "https://www.toutiao.com/video/7464576063700468260/",
    "https://www.toutiao.com/c/user/token/MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw/"
  ],
  "profileTab": "article",
  "maxItems": 100
}
```

| Field | Type | Description |
|---|---|---|
| `startUrls` | array of strings | Article (`/article/ID`), video (`/video/ID`), post (`/w/ID`) or profile (`/c/user/token/MS4wLjAB…/`) URLs. Mobile links (`m.toutiao.com`, `m.toutiaoimg.cn/a…`) and bare item IDs work too. `{ "url": "…" }` objects are accepted. |
| `maxItems` | integer | Items per profile. Default `100`. `0` = no limit (capped at 10,000 per profile). |
| `profileTab` | string | `all`, `article`, `video`, `ugc` (微头条 posts) or `short_video`. Default `all`. |
| `profileSearchQuery` | string | Search inside each profile for this keyword. When set, the tab is ignored. |
| `publishedAfter` | string | Keep only items published after `"2026-11-01"` (Beijing time), an ISO date-time, or a window like `"7 days"` / `"24 hours"`. For scheduled monitoring. |
| `proxyConfiguration` | object | Apify Proxy (datacenter) by default. Only change it if you see many `FETCH_FAILED` rows. |

The input field names (`startUrls`, `maxItems`, `profileTab`, `profileSearchQuery`) match the original Actor, so you can switch by changing only the Actor ID.

### ⬆️ Output

One article (content shortened here):

```json
{
  "url": "https://www.toutiao.com/article/7450114952884503059/",
  "itemId": "7450114952884503059",
  "type": "article",
  "title": "“海阳船”再发“海阳箭”——谷神星一号海遥四运载火箭发射成功",
  "abstract": "齐鲁网·闪电新闻12月19日讯 12月19日下午，万众瞩目之下，由海阳总装出厂的谷神星一号海遥四运载火箭搭乘“东方航天港”号发射船……发射任务取得圆满成功。",
  "publishTime": "2024-12-19 21:31",
  "content": "<img src=\"https://p3-sign.toutiaoimg.com/…\" …><p>齐鲁网·闪电新闻12月19日讯 …</p>",
  "cover": "https://p3-sign.toutiaoimg.com/tos-cn-i-tjoges91tu/0db73b409bfcbc388e7995c7460eff7a~tplv-tt-large.image?…",
  "imageList": ["https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/3f3872e7c89e4f2baccea3632c7077bf~tplv-tt-large.image?…"],
  "source": "闪电新闻",
  "firstFrame": null,
  "authorData": {
    "name": "闪电新闻",
    "userId": "51050126444",
    "secUserId": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw",
    "userVerified": true,
    "avatarUrl": "https://sf3-cdn-tos.toutiaostatic.com/img/user-avatar/14194628f142c924cb14b638f6b04d91~300x300.image",
    "description": "闪电新闻，先声夺人。山东广播电视台倾力打造的融媒体客户端。",
    "userAuthType": "5",
    "userAuthInfo": "闪电新闻官方账号",
    "followerCount": 19038536
  },
  "statistics": {
    "commentCount": 1,
    "buryCount": null,
    "diggCount": 4,
    "shareCount": null,
    "readCount": 95,
    "showCount": null,
    "repinCount": 1,
    "forwardCount": 0,
    "danmuCount": null
  },
  "videoData": null,
  "localCityInfo": null,
  "publishedAt": "2024-12-19T13:31:15.000Z",
  "scrapedAt": "2026-11-15T05:08:59.000Z"
}
```

Video rows carry `videoData`, for example `{ "duration": 18.552, "height": 720, "width": 1280, "size": 3357052, "bitrate": 1447629, "codecType": "h264", "playUrl": "https://v26-cha.toutiaovod.com/…" }`, and `statistics.playCount`. Items that come from a profile feed also fill `buryCount`, `shareCount` and `showCount`.

### Error items

When an input cannot give a result, you get one row with `errorCode` and `error` instead, and **it is not charged**:

```json
{
  "startUrl": "https://www.toutiao.com/article/7000000000000000001/",
  "itemId": "7000000000000000001",
  "errorCode": "NOT_FOUND",
  "error": "Toutiao has no public item with this ID (deleted, private or never existed). Not charged.",
  "scrapedAt": "2026-11-15T05:12:20.000Z"
}
```

Codes: `INVALID_INPUT` (not a Toutiao link, bad date), `NOT_FOUND` (deleted or private item), `NO_RESULTS` (empty profile tab or no search match), `FETCH_FAILED` (Toutiao did not answer after retries).

### Integrations & API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("istmobot/toutiao-scraper-cheap").call(run_input={
    "startUrls": ["https://www.toutiao.com/c/user/token/MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw/"],
    "profileTab": "video",
    "maxItems": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publishTime"], item["title"], item["statistics"].get("playCount"))
```

**Node.js**

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('istmobot/toutiao-scraper-cheap').call({
    startUrls: ['https://www.toutiao.com/article/7450114952884503059'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].title, items[0].authorData.name);
```

**curl**

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~toutiao-scraper-cheap/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":["https://www.toutiao.com/video/7464576063700468260/"]}'
```

**No-code**: connect the Actor to Make, Zapier, n8n, Google Sheets, Slack, Airbyte and more through [Apify integrations](https://apify.com/integrations). Use [webhooks](https://docs.apify.com/integrations/webhooks) to get a call when a run finishes, for example to push new articles into your CMS or a Slack channel.

**Scheduled monitoring example**: a Task with

```json
{
  "startUrls": ["https://www.toutiao.com/c/user/token/MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw/"],
  "profileTab": "all",
  "maxItems": 0,
  "publishedAfter": "1 day"
}
```

and a daily schedule gives you only the last day's items each run.

### 🤖 Use with AI agents (MCP)

Add the Apify MCP server to Claude, Cursor or any MCP client with `https://mcp.apify.com?tools=istmobot/toutiao-scraper-cheap`. Example prompt: *"Get the last 20 videos of this Toutiao account and list their titles, play counts and durations: https://www.toutiao.com/c/user/token/MS4wLjAB…/"*.

### Want other data from Chinese platforms?

- [Weibo Scraper](https://apify.com/istmobot/weibo-scraper-cheap): keyword search, hot search board, posts, comments and profiles from Weibo (微博).
- [WeChat Articles Scraper](https://apify.com/istmobot/wechat-articles-scraper): WeChat Official Account (公众号) articles by keyword, account or URL, with full text.

### ❓ FAQ

**Is it legal to scrape Toutiao?** This Actor only reads public pages that anyone can open without logging in. It does not collect private data. You are responsible for how you use the data, especially personal data, under the laws that apply to you (GDPR, PIPL and others) and Toutiao's terms.

**Do I need a Toutiao account, cookies or a Chinese IP?** No. Everything works logged out, from Apify's default datacenter proxy.

**How many items can I get from one profile?** As many as the profile tab shows publicly. Set `maxItems` to `0` for all (capped at 10,000 per profile per run). Very old items can stop appearing deep in a feed; that is Toutiao's limit.

**Why are some statistics `null`?** For an article or video URL, Toutiao's item page does not publish share, bury and impression counts, so they are `null`. Items scraped from a profile feed carry them.

**Why is `localCityInfo` always null?** On Toutiao's website that field is the city Toutiao guesses for the *visitor* from their IP, not a property of the article, so it carries no information about the content. It stays in the output so code written for the original Actor keeps working.

**How fresh are video `playUrl` links?** They are signed and expire after a few hours. Download the video soon after the run, or re-run to get a fresh link.

**How often can I run it?** As often as you like. For monitoring, a daily or hourly schedule with `publishedAfter` keeps each run small and cheap.

**Which formats can I export?** JSON, CSV, Excel, XML, HTML table and RSS, from the Output tab or the dataset API.

**A profile URL has only a number (`/c/user/51050126444/`). Does it work?** For verified accounts, yes: the Actor finds the profile token itself. For others, open the profile on www.toutiao.com and paste the URL with `/c/user/token/MS4wLjAB…/`.

### Your feedback

Found a bug or need a field we don't return yet? Open an issue on the **Issues** tab of this Actor. We usually answer within a day.

# Actor input Schema

## `startUrls` (type: `array`):

Toutiao (今日头条) links. Article: https://www.toutiao.com/article/7450114952884503059. Video: https://www.toutiao.com/video/7464576063700468260/. Post (微头条): https://www.toutiao.com/w/1841585417630729/. Profile: https://www.toutiao.com/c/user/token/MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw/. Mobile links (m.toutiao.com) and bare item IDs work too.

## `maxItems` (type: `integer`):

Maximum number of items to scrape from each profile URL, e.g. 100. Set 0 for no limit (capped at 10,000 per profile). Article, video and post URLs always give one item each.

## `profileTab` (type: `string`):

Which tab of the profile to scrape: all, article, video, ugc (微头条 posts) or short_video.

## `profileSearchQuery` (type: `string`):

Search inside each profile for items matching this keyword, e.g. "山东". When set, the profile tab is ignored. Leave empty to list the tab.

## `publishedAfter` (type: `string`):

For scheduled monitoring of profiles: keep only items published after this date. Use "2026-11-01" (Beijing time), an ISO date-time, or a relative window like "7 days" or "24 hours". Leave empty for all items.

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

Apify Proxy is used by default (datacenter). Switch to residential only if you see many FETCH_FAILED rows.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.toutiao.com/article/7450114952884503059"
  ],
  "maxItems": 100,
  "profileTab": "all",
  "profileSearchQuery": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.toutiao.com/article/7450114952884503059"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/toutiao-scraper-cheap").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 = {
    "startUrls": ["https://www.toutiao.com/article/7450114952884503059"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/toutiao-scraper-cheap").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 '{
  "startUrls": [
    "https://www.toutiao.com/article/7450114952884503059"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call istmobot/toutiao-scraper-cheap --silent --output-dataset

```

## MCP server setup

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

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/qcD9hYw1NsPcp9K2e/builds/iBhIjKkluCv1HEQbc/openapi.json
