# Threads 内容详情 API (threads.post_detail)

- Canonical page: https://everyinfra.com/threads-api/post_detail
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "post_detail", "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

Threads 内容详情按帖子的完整链接 `url` 读取一条帖子，返回正文 `text`、作者的用户名、昵称、`author_id` 和是否认证，以及点赞、评论、转发、引用转发、分享、浏览这几项计数。它回答「这条帖子写了什么、传播得怎么样」，适合复盘一条帖子的表现、核对广告标注，或者把一批链接转成可以分析的记录。

`is_paid_partnership` 标出帖子是否标注为付费合作内容，识别广告时用它。`image_urls` 是帖子的全部图片地址，`image_count` 是张数，`hashtags` 按出现顺序列出正文里的话题标签，帖子没有话题标签时不出现。`code` 是帖子短码，可以拼链接。帖子下的评论正文要用评论接口读。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | post_detail / comments 的帖子完整链接，例如 https://www.threads.com/@用户名/post/帖子短码；comments 不保证返回所有嵌套层级。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| code | 内容短码，用于拼 URL。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_name | 作者昵称（显示名）。 |
| author_is_verified | 作者是否已认证。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| quote_count | 引用转发数。 |
| share_count | 分享/转发数。null 表示不公开，不等于 0。 |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| is_paid_partnership | 是否标注为付费合作内容。识别广告用。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_avatar_url | 作者头像图片链接（多数平台带签名、会过期）。 |
| image_count | 图片张数。 |
| image_urls | 帖子的全部图片地址。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| media_url | platform-native meaning |
| hashtags | 正文里的话题标签数组，按出现顺序；没有时不出现这个字段。 |

## 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": "threads",
  "action": "post_detail",
  "params": {
    "url": "https://www.threads.com/@openai/post/DW7RXR7EnRC"
  }
}'
```

```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": "threads",
        "action": "post_detail",
        "params": {
            "url": "https://www.threads.com/@openai/post/DW7RXR7EnRC",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "threads",
  "action": "post_detail",
  "results": {
    "url": "https://www.threads.com/@openai/post/DW7RXR7EnRC",
    "text": "Aw shit MIGHT have to downgrade Claude for that 10x plus. @openai help convince me haha. Make it irrefutable",
    "author_username": "•••",
    "author_name": "•••",
    "author_is_verified": true,
    "like_count": 5,
    "comment_count": 0,
    "repost_count": 0,
    "quote_count": 0,
    "posted_at": "2026-04-09T21:37:07+00:00",
    "is_paid_partnership": false,
    "platform": "threads"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 怎么判断一条帖子是不是广告？

先看 `is_paid_partnership`：为真表示这条帖子标注为付费合作内容，这个字段就是用来识别广告的。它反映的是帖子上的标注，不是对内容的判断。

### 转发数、引用转发数和分享数有什么区别？

三个数分开记：普通转发看 `repost_count`，引用转发单独算在 `quote_count`，`share_count` 是分享或转发数。`repost_count`、`share_count` 和 `view_count` 为 null 表示不公开，不等于 0，几项相加前要先排除 null。

### 帖子里的图片和作者头像怎么取？

图片看 `image_urls`，它给出全部图片地址，`image_count` 是张数，可以对照核对。作者头像是 `author_avatar_url`，多数平台上这类链接带签名、会过期，要留存请及时下载。

## Also

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