# Threads Engagement statistics API (threads.engagement)

- Canonical page: [https://everyinfra.com/en/threads-api/engagement](https://everyinfra.com/en/threads-api/engagement?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "engagement", "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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Specifies the Threads handle (with or without @) for profile, user_posts, followers, user_replies, user_media, user_reposts, followers_list, following_list and engagement. The profile and user_posts actions do not accept full profile URLs; user_replies, user_media, user_reposts, followers_list, following_list and engagement also accept a profile link such as `https://www.threads.com/@mosseri`. The followers action returns aggregate follower counts; use followers_list and following_list for the accounts themselves. |
| posts | integer | no | not declared | How many of the account's latest posts `engagement` uses: an integer from 3 to 50, default 20. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | Username (@handle). |
| display_name | Display name; can differ from username. |
| url | Link to the record on the platform. |
| follower_count | Followers. null means not disclosed, not 0. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| sample_size | engagement: how many posts went into the calculation. Only posts the account wrote count: replies and reposts are left out, pinned posts are in. |
| period_start | engagement: publish time (UTC) of the earliest post that went into the calculation. |
| period_end | engagement: publish time (UTC) of the latest post that went into the calculation. |
| posts_per_week | engagement: average number of posts per week over this period. |
| avg_like_count | engagement: average likes per post. |
| avg_comment_count | engagement: average replies per post. |
| avg_repost_count | engagement: average reposts per post. |
| avg_quote_count | engagement: average quotes per post. |
| avg_share_count | engagement: average shares per post. |
| median_like_count | engagement: median likes per post. |
| avg_interactions | engagement: average interactions per post; interactions are likes, replies, reposts, quotes and shares added together. |
| median_interactions | engagement: median interactions per post. |
| engagement_rate | engagement: engagement rate in percent: avg_interactions ÷ follower_count × 100. 0.17 means 0.17%. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| posts_by_hour_utc | engagement: posts per UTC hour, 24 numbers; the first is hour 0. |
| top_hours_utc | engagement: the hours (UTC, 0 to 23) with the most posts, most first. |
| posts_by_weekday_utc | engagement: posts per weekday (UTC), 7 numbers, Sunday first. |
| media_mix | engagement: how many posts of each kind: text (text only), image (one image), video, and carousel (several images, or images and videos mixed). |
| top_posts | engagement: the posts with the most interactions (up to 3), each with url, text, posted_at, interactions, like_count, comment_count, repost_count, quote_count and share_count. |

## 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": "engagement",
  "params": {
    "username": "zuck"
  }
}'
```

```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": "engagement",
        "params": {
            "username": "zuck",
        },
    },
    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": "engagement",
  "results": {
    "username": …,
    "display_name": …,
    "url": …,
    "follower_count": …,
    "is_verified": …,
    "sample_size": …,
    "period_start": …,
    "period_end": …,
    "posts_per_week": …,
    "avg_like_count": …,
    "avg_comment_count": …,
    "avg_repost_count": …,
    "avg_quote_count": …,
    "avg_share_count": …,
    "median_like_count": …,
    "avg_interactions": …,
    "median_interactions": …,
    "engagement_rate": …,
    "platform": …,
    "posts_by_hour_utc": …,
    "top_hours_utc": …,
    "posts_by_weekday_utc": …,
    "media_mix": …,
    "top_posts": …
  },
  "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
