# Toutiao Video details API (toutiao.video)

- Canonical page: https://everyinfra.com/en/toutiao-api/video
- Endpoint: POST /api/v1/social with {"platform": "toutiao", "action": "video", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=toutiao&action=video

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | A Toutiao video link (https://www.toutiao.com/video/<ID>/; /item/<ID>/ and /group/<ID>/ links also work), or the numeric ID in it. An article ID returns an empty result. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| 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. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| duration_sec | platform-native meaning |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| play_count | platform-native meaning |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| collect_count | Times the video was saved (video). |
| impression_count | Times the video was shown in feeds (video, landscape videos only); not plays. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| cover_url | platform-native meaning |
| video_url | Video file URL of the highest bitrate offered (video; signed, expires after a few hours). |
| author_id | The author's MS4w profile token (video, landscape videos only); pass it as `user_id` to profile or user_posts. |
| author_name | Author's display name. |
| author_avatar_url | The commenter's avatar link (comments); on video, the author's. |
| author_follower_count | The author's follower count (video, landscape videos only). |
| 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. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "toutiao",
  "action": "video",
  "params": {
    "url": "https://www.toutiao.com/video/7702252318212817451/"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "toutiao",
        "action": "video",
        "params": {
            "url": "https://www.toutiao.com/video/7702252318212817451/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "toutiao",
  "action": "video",
  "results": {
    "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": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=toutiao
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
