# Threads 热门话题 API (threads.trending)

- Canonical page: [https://everyinfra.com/threads-api/trending](https://everyinfra.com/threads-api/trending?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "trending", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 15 per target, no next_page_token (to read further, page one target at a time with the single-target action; limit is ignored)
- 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=trending

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|


## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 这一行在榜单或结果里的名次，从 1 开始；榜单口径（按什么排、统计多久）以能力说明为准。 |
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | trending：趋势的标题。 |
| summary | trending：平台给这个趋势写的一句话摘要。 |
| keyword | trending：这个趋势的搜索词，和 id 一起传给 trend_posts 看趋势下的帖子；search_suggest：请求里输入的词。 |
| post_count | 发布内容总数。null 表示不公开，不等于 0。 |
| post_count_label | trending：页面上显示的帖子数文字，如 11K posts。 |
| image_url | trending：趋势的配图地址，带签名，会过期。 |
| url | 该记录在原平台上的可访问链接。 |
| trend_type | trending：平台给的趋势类型原值，如 decoupled。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "threads",
  "action": "trending",
  "params": {}
}'
```

```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": "trending",
        "params": {},
    },
    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": "trending",
  "results": [
    {
      "rank": …,
      "id": …,
      "title": …,
      "summary": …,
      "keyword": …,
      "post_count": …,
      "post_count_label": …,
      "image_url": …,
      "url": …,
      "trend_type": …,
      "platform": …
    }
  ],
  "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
