# Threads Post activity API (threads.post_activity)

- Canonical page: [https://everyinfra.com/en/threads-api/post_activity](https://everyinfra.com/en/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 | Specifies the full post URL (e.g., https://www.threads.com/@username/post/POST_CODE) for post_detail, comments, thread and post_activity actions. threads.net links and short links such as `https://www.threads.com/t/<post code>` also work for thread and post_activity; for thread, the URL of any post in the thread returns the whole thread. The comments action does not guarantee extraction of all nested comment threads. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 100 rows; the row count varies, so a short page is not the end. `limit` has no effect. Tokens last 24 hours; the last page has no `next_page_token`. |
| type | enum: all / like / quote / repost | no | not declared | Which activity `post_activity` returns: `like`, `repost` or `quote`. Leave it out or pass `all` to get the three mixed together. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| type | post_activity: which kind of activity this row is: like, repost or quote. |
| username | Username (@handle). |
| display_name | Display name; can differ from username. |
| user_id | User's unique ID on the platform. |
| url | Link to the record on the platform. |
| acted_at | post_activity: when the like, repost or quote happened. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| is_private | Whether the account is private. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| quote_text | post_activity, when type is quote: the text of the quoting post. |
| quote_url | post_activity, when type is quote: the link to the quoting post. |
| post_stats | post_activity: the exact totals for the post, the same on every row: url (post link), view_count (views), like_count, repost_count, quote_count and comment_count (replies). The list holds only the most recent activity Threads shows on the web; for totals use this field. |

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