The Threads Insights API allows you to read the insights from users' own Threads.
The Threads Insights API requires an appropriate access token and permissions based on the node you are targeting. While you are testing, you can easily generate tokens and grant your app permissions by using the Graph API Explorer.
threads_basic
— Required for making any calls to all Threads API endpoints.threads_manage_insights
— Required for making GET
calls to insights endpoints.since
and until
parameters do not work for dates before April 13, 2024 (Unix timestamp 1712991600
).To retrieve the available insights metrics, send a GET
request to the /{threads-media-id}/insights
endpoint with the metric
parameter containing a comma-separated list of metrics to be returned.
Note:
REPOST_FACADE
posts because they are posts made by other users.Name | Description |
---|---|
| The number of times your post was played or displayed. Note: This metric is in development. |
| The number of likes on the post. |
| The number of replies on the post. Note: When the requested media is a root post, this number includes total replies. If the media is itself a reply, this number includes only direct replies. |
| The number of times the post was reposted. |
| The number of times the post was quoted. |
| The number of shares of your Threads posts. Note: This metric is in development. |
curl -s -X GET \ -F "metric=likes,replies" \ -F "access_token=<THREADS_ACCESS_TOKEN>" "https://graph.threads.net/v1.0/<THREADS_MEDIA_ID>/insights"
{ "data": [ { "name": "likes", "period": "lifetime", "values": [ { "value": 100 } ], "title": "Likes", "description": "The number of likes on your post.", "id": "<media_id>/insights/likes/lifetime" }, { "name": "replies", "period": "lifetime", "values": [ { "value": 10 } ], "title": "Replies", "description": "The number of replies on your post.", "id": "<media_id>/insights/replies/lifetime" } ] }
To retrieve the available user insights metrics, send a GET
request to the /{threads-user-id}/threads_insights
endpoint with the metric
parameter, and optionally, the since
and until
parameters.
User insights are not guaranteed to work before June 1, 2024.
Name | Description |
---|---|
| Optional. Format: Unix Timestamp |
| Optional. Format: Unix Timestamp |
| Required. |
Name | Response Type | Description |
---|---|---|
| Time Series | The number of times your profile was viewed. |
| Total Value | The number of likes on your posts. |
| Total Value | The number of replies on your posts. Note: This number includes only top-level replies. |
| Total Value | The number of times your posts were reposted. |
| Total Value | The number of times your posts were quoted. |
| Total Value | Your total number of followers on Threads. Note:
|
| Total Value | The demographic characteristics of followers, including countries, cities, and gender distribution. Note:
|
curl -s -X GET \ -F "metric=views" \ -F "access_token=<ACCESS_TOKEN>" \ "https://graph.threads.net/v1.0/<THREADS_USER_ID>/threads_insights"
{ "data": [ { "name": "views", "period": "day", "values": [ { "value": 10, "end_time": "2024-07-12T08:00:00+0000" }, { "value": 20, "end_time": "2024-07-15T08:00:00+0000" }, { "value": 30, "end_time": "2024-07-16T08:00:00+0000" } ], "title": "views", "description": "The number of times your profile was viewed.", "id": "37602215421583/insights/views/day" } ] }
{ "data": [ { "name": "views", "period": "day", "total_value" : { “value”: 1 } "title": "views", "description": "The number of times your profile was viewed.", "id": "37602215421583/insights/views/day" } ] }