Read analytics
const url = 'https://postflow.biz.id/api/v1/analytics?days=7';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://postflow.biz.id/api/v1/analytics?days=7' \ --header 'Authorization: Bearer <token>'Published posts over 7, 30 or 90 days compared with the period before: totals, per day, per account, per content type, best times (90 days) and top posts. Metrics arrive 24 hours and 7 days after publishing.
MCP tool: get_analytics.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
object
object
How many posts reported each metric (platforms don’t all report every one).
object
Posts with metrics (they arrive 24 hours after publishing).
Likes + comments + shares + saves
object
How many posts reported each metric (platforms don’t all report every one).
object
Posts with metrics (they arrive 24 hours after publishing).
Likes + comments + shares + saves
object
object
How many posts reported each metric (platforms don’t all report every one).
object
object
object
object
How many posts reported each metric (platforms don’t all report every one).
object
Example
{ "accounts": [ { "platform": "facebook" } ], "byType": [ { "contentType": "fb_post", "platform": "facebook" } ], "topPosts": [ { "platform": "facebook", "contentType": "fb_post", "window": "24h" } ]}Missing, invalid, expired or deleted key or token.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}More than 120 requests in a minute with this key.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}