# Threads 帖子互动名单 API (threads.post_activity)

- Canonical page: [https://everyinfra.com/threads-api/post_activity](https://everyinfra.com/threads-api/post_activity?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "post_activity", "params": {...}}
- Price: $0.001264 per call ($1.26 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 100 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=threads&action=post_activity

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 帖子链接，如 https://www.threads.com/@zuck/post/DfaNgswkQPG；threads.net 的链接和 https://www.threads.com/t/帖子码 这种短链也认。 |
| page_token | not declared | no | not declared | 翻页令牌。第一页不传；响应有 next_page_token 时原样作 page_token 传回，其他参数不变。一页最多 100 条，limit 不起作用。每页算一次调用；令牌 24 小时有效。没有 next_page_token 就是翻不下去了。 |
| type | enum: all / like / quote / repost | no | not declared | 只要哪一种互动：like 点赞、repost 转发、quote 引用；不传或 all 是三种混在一起。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| type | post_activity：这一行是哪种互动，like 点赞、repost 转发、quote 引用。 |
| username | 用户名（@handle）。 |
| display_name | 显示名，可能与 username 不同。 |
| user_id | 用户在原平台的唯一 ID。 |
| url | 该记录在原平台上的可访问链接。 |
| acted_at | post_activity：这次点赞、转发或引用的时间。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| is_private | 账号是否私密。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| quote_text | post_activity 里 type 为 quote 时：引用帖的正文。 |
| quote_url | post_activity 里 type 为 quote 时：引用帖的链接。 |
| post_stats | post_activity：这条帖子准确的总数，每行相同：url（帖子链接）、view_count（浏览量）、like_count、repost_count、quote_count、comment_count（回复数）。名单只有 Threads 网页给的最近那些，总数以这里为准。 |

## 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_activity",
  "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_activity",
        "params": {
            "url": "https://www.threads.com/@openai/post/DW7RXR7EnRC",
        },
    },
    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": "threads",
  "action": "post_activity",
  "results": [
    {
      "type": …,
      "username": …,
      "display_name": …,
      "user_id": …,
      "url": …,
      "acted_at": …,
      "platform": …,
      "is_private": …,
      "avatar_url": …,
      "quote_text": …,
      "quote_url": …,
      "post_stats": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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