List cached official analytics for posts published through Dravo. Use postId
to fetch a single Dravo post id or platform post id, or filter by account,
platform and publish date.
/v1/analytics/postsList cached official analytics for posts published through Dravo. Missing or stale rows are refreshed from the platform API.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.
postIdstringqueryFilter to one Dravo post id or platform post id.
accountIdstringqueryFilter by connected account id.
platformstringqueryFilter by platform: instagram, facebook, x, linkedin or tiktok.
fromDatestring (ISO 8601)queryOnly include published results created at or after this date.
toDatestring (ISO 8601)queryOnly include published results created at or before this date.
refreshbooleanqueryWhen true, bypass fresh cache and ask the platform again.
pageintqueryPage number, starting at 1 (default 1).
limitintqueryPage size, 1 to 100 (default 25).
itemsobject[]Analytics rows on this page; each row has the fields below.
post_idstringDravo post id. Groups every publication of the same content across networks; aggregate a post by summing items that share this id.
account_idstringoptionalConnected account these metrics come from.
platformstringSocial network: instagram, facebook, x, linkedin or tiktok.
platform_post_idstringNative id of the post on the platform.
platform_post_urlstringoptionalDirect link to the published post.
textstringoptionalText of the published post.
created_atstring (ISO 8601)When the publish result was recorded by Dravo.
published_atstringoptionalWhen the post went live on the network.
metricsobjectOfficial metrics for this post. Keys depend on the platform — see Metrics by platform below.
warningsstring[]Non-fatal notices raised while syncing.
sync_statusstringsynced, partial, pending, failed or requires_reconnect.
error_messagestringoptionalFailure detail when sync_status is failed or requires_reconnect.
last_updated_atstringoptionalLast time the metrics were refreshed from the platform.
stale_afterstringoptionalAfter this timestamp the cached metrics are refreshed on the next read.
totalintegerTotal rows matching the query.
pageintegerCurrent page (1-based).
limitintegerPage size.
overviewobjectAggregated metrics across the rows on this page.
Metrics by platform
Keys inside metrics vary per platform. Instagram, Facebook and TikTok return a fixed set; X and LinkedIn return keys straight from their APIs, so the exact set can vary with the access level and scopes granted to your app.
viewsintegerTimes the post was played or displayed.
reachintegerUnique accounts that saw the post.
likesintegerLikes on the post.
commentsintegerComments on the post.
sharesintegerTimes the post was shared.
savedintegerTimes the post was saved.
total_interactionsintegerSum of likes, comments, shares and saves.
post_engaged_usersintegerUnique users who engaged with the post.
post_clicksintegerClicks anywhere on the post.
post_reactions_by_type_totalintegerTotal reactions across all reaction types.
impression_countintegerTimes the post was seen.
like_countintegerLikes on the post.
retweet_countintegerReposts of the post.
reply_countintegerReplies to the post.
quote_countintegerQuote posts of the post.
bookmark_countintegerTimes the post was bookmarked.
share_statistics_*integerEngagement totals flattened from LinkedIn share statistics (impressions, clicks, likes, comments, shares, engagement). Exact keys are derived from the API response.
view_countintegerVideo views.
like_countintegerLikes on the video.
comment_countintegerComments on the video.
share_countintegerShares of the video.
Error codes
401Missing or invalid API key / JWT.
const response = await fetch("https://api.dravo.dev/v1/analytics/posts", { method: "GET", headers: { "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);{ "items": [ { "post_id": "post_2a7f93", "account_id": "acc_8f2c1d", "platform": "instagram", "platform_post_id": "18000000000000000", "platform_post_url": "https://www.instagram.com/p/example/", "text": "Shipping Dravo: one API for every social network.", "created_at": "2026-06-23T10:15:30Z", "published_at": "2026-06-23T10:16:02Z", "metrics": { "views": 1240, "reach": 980, "likes": 84, "comments": 6, "shares": 12 }, "warnings": [], "sync_status": "synced", "error_message": null, "last_updated_at": "2026-06-29T09:00:00Z", "stale_after": "2026-06-29T15:00:00Z" } ], "total": 1, "page": 1, "limit": 25, "overview": { "posts": 1, "metrics": { "views": 1240, "reach": 980, "likes": 84, "comments": 6, "shares": 12 } }}