Threads Post activity API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
List who liked, reposted or quoted a Threads post, from the post url. type is like, repost or quote; leave it out or pass all for the three mixed. Each row has type, username, display_name, user_id, url, is_private, avatar_url and acted_at, plus quote_text and quote_url for a quote. Every row carries post_stats, the post's exact view, like, repost, quote and comment totals. Threads shows only the most recent activity, so the list is partial; use post_stats for totals. Each call returns one page of up to 100 rows, and the row count varies, so a short page is not the end. limit has no effect. For the next page, pass the response's next_page_token back as page_token; the last page has none.
Send POST https://api.everyinfra.com/api/v1/social with platform set to threads and action set to post_activity. Price $1.26 per 1,000 requests ($0.001264 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Threads Post activity endpoint (threads/post_activity).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to threads and action to post_activity, and put the parameters inside params.
- Required parameters:
- url: Specifies the full post URL (e.g., https://www.threads.com/@username/post/POST_CODE) for post_detail, comments, thread and post_activity actions.
- Optional parameters:
- page_token: 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.
- type: Which activity post_activity returns: like, repost or quote. Leave it out or pass all to get the three mixed together. (allowed: all / like / quote / repost)
- Returns a list of records. Main fields of each record: type (post_activity: which kind of activity t…), username, display_name, user_id, url, acted_at (post_activity: when the like, repost or…), is_private (Whether the account is private), avatar_url, quote_text (post_activity, when type is quote: the…), quote_url (post_activity, when type is quote: the…), post_stats (post_activity: the exact totals for the…).
- Example request body:
{
"platform": "threads",
"action": "post_activity",
"params": {
"url": "https://www.threads.com/@openai/post/DW7RXR7EnRC"
}
}
- Price: $1.26 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | threads | Platform identifier, fixed value. |
action | body | string | Yes | post_activity | Capability identifier, fixed value. |
url | body.params | string | Yes | - | 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 | body.params | string | No | - | 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 | body.params | string (enum) | No | - | Which activity post_activity returns: like, repost or quote. Leave it out or pass all to get the three mixed together.Allowed valuesalllikequoterepost |
Code samples
#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"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| 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. |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.