Analytics

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-analytics"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/f500219d-a504-43b5-8eb6-e48c25f66f34/social-card.svg?v=3e7ae33eec8b" alt="Analytics" width="600" height="315"></a>
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

postId
string
path
required
days
query
= 30

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

id
string
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