# Toutiao Scraper & API | EveryInfra (`blushing_parachute/everyinfra-toutiao-api`) Actor

Unofficial Toutiao data via one Actor: article, profile, user_posts, profile_search, comments, video. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-toutiao-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.30 / 1,000 profile requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Toutiao Scraper & API | EveryInfra

Retrieve Toutiao articles, videos and user updates to read post content, author details and engagement counts.

Provide a user ID that starts with MS4w or a complete profile URL. Profile search looks only inside that user's page.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `article` | Read a Toutiao article or video from its URL. Get title, body text, cover, read or play count, likes, comments, shares and author verification. Full text or a transcript appears only when the page shows it. | url | — | 1 | $0.0033 |
| `profile` | Pull up a Toutiao account's nickname, bio, avatar, profile link, and verification status with its description. `user_id` takes the account token, usually starting with MS4w, or a full profile URL, not a nickname or short numeric ID. | user_id | — | 1 | $0.0033 |
| `user_posts` | List a Toutiao author's articles, videos and short posts. Get title, text, reads or plays, likes, comments, shares and publish time. Pick a profile section with `tab`. A single batch may not cover the whole archive. | user_id | tab | 20 (up to 100) | $0.0520 |
| `profile_search` | Search inside the posts of one Toutiao account by keyword. Get matching articles and videos with text, reads or plays and engagement counts. Both `user_id` and `keyword` are required. It does not search for people or across the whole platform. | user_id, keyword | — | 20 (up to 100) | $0.0641 |
| `comments` | Read the top-level comments on a Toutiao article or video, 20 per page. Each comment has text, likes, reply count, time, the commenter's name, avatar, verification and IP region, and whether the author liked it. Pass an article or video link or its numeric ID, and page with `next_page_token`. Replies themselves are not returned; `reply_count` tells you how many there are. | url | page_token | all the source returns | $0.0006 |
| `video` | Look up one Toutiao video by link or numeric ID. Get title, length, plays, likes, comments, shares, saves, publish time, cover, a signed video file link and the author's name; landscape videos add impressions, the author's profile token and follower count. Vertical short videos are covered too. | url | — | 1 | $0.0033 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "profile",
  "user_id": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `article`: `id`, `url`, `type`, `title`, `text`, `content_text`, `cover`, `read_count`, `play_count`, `like_count`, `comment_count`, `share_count`, `source`, `author_name`, `author_id`, `author_verified`, `author_auth_info`, `region`, `posted_at`, `platform`, `duration_sec`, `duration_seconds`, `image_urls`
- `profile`: `user_id`, `nickname`, `bio`, `url`, `avatar_url`, `is_verified`, `verify_reason`, `platform`
- `user_posts`: `id`, `url`, `type`, `title`, `text`, `content_text`, `cover`, `read_count`, `play_count`, `like_count`, `comment_count`, `share_count`, `source`, `author_name`, `author_id`, `author_verified`, `author_auth_info`, `region`, `posted_at`, `platform`, `duration_sec`, `duration_seconds`, `image_urls`
- `profile_search`: `id`, `url`, `type`, `title`, `text`, `content_text`, `cover`, `read_count`, `play_count`, `like_count`, `comment_count`, `share_count`, `source`, `author_name`, `author_id`, `author_verified`, `author_auth_info`, `region`, `posted_at`, `platform`, `duration_sec`, `duration_seconds`, `image_urls`
- `comments`: `id`, `text`, `like_count`, `reply_count`, `posted_at`, `author_id`, `author_name`, `author_avatar_url`, `author_verified`, `author_auth_info`, `ip_location`, `liked_by_author`, `platform`
- `video`: `id`, `url`, `video_type`, `title`, `duration_sec`, `duration_seconds`, `play_count`, `like_count`, `comment_count`, `share_count`, `collect_count`, `impression_count`, `posted_at`, `cover_url`, `video_url`, `author_id`, `author_name`, `author_avatar_url`, `author_follower_count`, `author_verified`, `author_auth_info`, `platform`

#### Field notes

- `author_verified`: Whether the author is verified; on comments, the commenter.
- `author_auth_info`: Verification description, such as a field creator; on comments, the commenter's, such as an official account. Absent when there is none.
- `ip_location`: The commenter's IP region as Toutiao displays it, usually a province (comments).
- `liked_by_author`: Whether the article's or video's author liked this comment (comments).
- `author_avatar_url`: The commenter's avatar link (comments); on video, the author's.
- `video_type`: Kind of video (video): `video` for a landscape video, `short_video` for a vertical one. Short videos have no author_id, impression_count or author_follower_count.
- `impression_count`: Times the video was shown in feeds (video, landscape videos only); not plays.
- `author_follower_count`: The author's follower count (video, landscape videos only).
- `author_id`: The author's MS4w profile token (video, landscape videos only); pass it as `user_id` to profile or user_posts.
- `collect_count`: Times the video was saved (video).
- `video_url`: Video file URL of the highest bitrate offered (video; signed, expires after a few hours).

### Pricing

Pay per event, charged only when a run delivers data:

- `article`: $0.0033, one event per non-empty request, whatever the row count.
- `profile`: $0.0033, one event per non-empty request, whatever the row count.
- `user_posts`: $0.0520, one event per started block of 20 results.
- `profile_search`: $0.0641, one event per started block of 20 results.
- `comments`: $0.0006, one event per non-empty request, whatever the row count.
- `video`: $0.0033, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Toutiao or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `url` (type: `string`):

Used by `article` (required), `comments` (required), `video` (required). Full URL to a specific article or video for the `article` action. In user-scoped actions where both `url` and `user_id` are supplied, `url` takes precedence to identify the profile page.

## `user_id` (type: `string`):

Used by `profile` (required), `user_posts` (required), `profile_search` (required). Target user profile token or `secUid`, typically starting with `MS4w`. A full Toutiao profile URL can also be passed in this field. It does not accept display nicknames or short numeric UIDs.

## `tab` (type: `string`):

Used by `user_posts`. Selects the profile feed tab in `user_posts`. Allowed values are `all` (default), `article`, `video`, `ugc`, and `short_video`. It does not alter item detail types.

## `keyword` (type: `string`):

Used by `profile_search` (required). Search query string for searching posts specifically within the target profile specified by `user_id` in `profile_search`. It does not perform platform-wide Toutiao searches.

## `page_token` (type: `string`):

Used by `comments`. Page token for `comments`: pass back the previous response's `next_page_token` to get the next page; leave it out to start at the first. Keep `url` the same as on the call that returned the token. Tokens last 24 hours and each page is one call.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `user_posts` 20 (max 100); `profile_search` 20 (max 100). Billing: `user_posts` one event per started block of 20 results; `profile_search` one event per started block of 20 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "profile",
  "user_id": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw"
}
```

# Actor output Schema

## `records` (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 = {
    "user_id": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-toutiao-api").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 = { "user_id": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-toutiao-api").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 '{
  "user_id": "MS4wLjABAAAA3KU9ifwN12G41E6PJRpZgIfzVrXWQ4WPF66ns54c0uw"
}' |
apify call blushing_parachute/everyinfra-toutiao-api --silent --output-dataset

```

## MCP server setup

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

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/WzXe5nrZwYtKMhuWq/builds/IUYajKXgQgxDRMw7I/openapi.json
