Analytics
GET
http://localhost:4000/api/v1 /analytics/posts/{postId}/history One post's numbers over time
Every stored reading of each of the post's channels in the last days (7, 30 or 90), oldest first. Readings are lifetime totals.
Parameters
postIdstring
path
required
daysquery
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/analytics/posts/{postId}/history" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}GET
http://localhost:4000/api/v1 /analytics/posts/{id} The latest numbers of one post, per channel
One entry per channel the post went to. metrics is null until the first reading after publishing; inside it impressions and clicks are null when the platform does not report them.
Parameters
idstring
path
required
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/analytics/posts/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated