# 今日头条 文章详情 API (toutiao.article)

- Canonical page: [https://everyinfra.com/toutiao-api/article](https://everyinfra.com/toutiao-api/article?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "toutiao", "action": "article", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

今日头条文章详情按 `url` 读取一篇内容的完整公开信息：标题、正文 `text` 和 `content_text`、封面、配图 `image_urls`、阅读量、点赞评论分享数、来源 `source`、作者认证、发布地区和时间。它回答「这篇文章写了什么、反响怎样」，适合给单篇做复盘、核对被引用的稿件，或者把账号内容列表里的条目补成完整语料。

`url` 填具体文章或视频的完整链接，示例里的 <ARTICLE_ID> 要换成真实文章；它不接收关键词。返回的是单个对象，不是列表。视频的展示次数和视频地址只在视频详情那一页有。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | article 的具体文章或视频完整链接；在用户类接口中若同时提供 url 与 user_id，url 优先用于定位主页。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| type | 记录类型，取值随能力而定（如 video / image / text）。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| content_text | 正文文本。 |
| cover | 封面图。 |
| read_count | 阅读量。 |
| play_count | 播放量。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| source | 来源。 |
| author_name | 作者昵称（显示名）。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_verified | 作者是否认证（comments 上是评论者）。 |
| author_auth_info | 认证信息（如「XX领域创作者」；comments 上是评论者的，如「…官方账号」）；没认证时没有，多数评论者没有。 |
| region | 地区。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| duration_sec | platform-native meaning |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |

## 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": "article",
  "params": {
    "url": "https://www.toutiao.com/article/<ARTICLE_ID>/"
  }
}'
```

```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": "article",
        "params": {
            "url": "https://www.toutiao.com/article/<ARTICLE_ID>/",
        },
    },
    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": "article",
  "results": {
    "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": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `url` 可以填什么？

填具体文章或视频的完整链接，文章形如 https://www.toutiao.com/article/<ARTICLE_ID>/，把 <ARTICLE_ID> 换成真实文章。填关键词不行，这一页不接收搜索词；手里没有链接时，先用账号搜索或用户内容读出列表，行里的 `url` 就是要填的链接。

### 这一页和账号搜索、用户内容怎么分工？

那两页返回的是列表，这一页返回的是单个对象。常见做法是先用用户内容或账号搜索找到条目，再把行里的 `url` 填进这一页取详情，把列表补成完整的一条。三页的字段名一致，补全时按 `id` 对上即可。

### 怎么核对作者的身份和内容所在地区？

看 `author_verified` 是否认证，`author_auth_info` 是认证信息，例如「某领域创作者」，没认证时没有这个字段。`source` 是内容来源，`region` 是地区。要确认账号真实性，把这几项和 `author_name` 一起对照。

## 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
