List cached official account/profile metrics for connected accounts. The exact metric keys depend on the platform and granted scopes, and can include followers, reach, views, engagement, public metrics, page statistics and video profile stats.
/v1/analytics/accountsList cached official account/profile metrics for connected social accounts.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.
accountIdstringqueryFilter by connected account id.
platformstringqueryFilter by platform: instagram, facebook, x, linkedin or tiktok.
refreshbooleanqueryWhen true, bypass fresh cache and ask the platform again.
limitintqueryPage size, 1 to 100 (default 100).
itemsobject[]One row per connected account; each row has the fields below.
account_idstringConnected account id.
platformstringSocial network.
handlestringoptionalAccount handle/username.
platform_account_idstringoptionalNative account id on the platform.
metricsobjectOfficial account metrics. 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 on sync errors.
last_updated_atstringoptionalLast refresh time.
stale_afterstringoptionalWhen the cache becomes stale.
totalintegerNumber of accounts returned.
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.
follower_countintegerFollowers of the account.
reachintegerUnique accounts reached.
viewsintegerContent views.
accounts_engagedintegerAccounts that engaged.
total_interactionsintegerAll interactions across content.
likes / comments / shares / saves / repliesintegerInteraction breakdown.
profile_views / website_clicks / profile_links_tapsintegerProfile activity.
followers_countintegerPage followers.
talking_about_count / were_here_count / checkinsintegerPage profile counters.
page_post_engagements / page_consumptions / page_actions_post_reactions_total / page_video_views / page_views_total / page_total_actionsintegerPage insight metrics.
followers_countintegerFollowers of the account.
following_countintegerAccounts followed.
tweet_countintegerPosts published.
listed_countintegerLists the account appears on.
like_countintegerLikes given.
verified_followers_countintegeroptionalVerified followers, when available.
page_statistics_* / follower_statistics_*integerPage and follower totals flattened from LinkedIn statistics. Exact keys are derived from the API response.
follower_countintegerFollowers of the account.
following_countintegerAccounts followed.
likes_countintegerTotal likes received.
video_countintegerVideos published.
Error codes
401Missing or invalid API key / JWT.
const response = await fetch("https://api.dravo.dev/v1/analytics/accounts", { method: "GET", headers: { "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);{ "items": [ { "account_id": "acc_8f2c1d", "platform": "x", "handle": "@dravo", "platform_account_id": "1234567890", "metrics": { "followers_count": 2400, "following_count": 180, "tweet_count": 320, "listed_count": 14, "like_count": 900 }, "warnings": [], "sync_status": "synced", "error_message": null, "last_updated_at": "2026-06-29T09:00:00Z", "stale_after": "2026-06-29T15:00:00Z" }, { "account_id": "acc_4b9e07", "platform": "facebook", "handle": "Dravo", "platform_account_id": "1122334455", "metrics": { "followers_count": 12000, "talking_about_count": 84, "page_video_views": 3200 }, "warnings": [ "Facebook Page insight metrics unavailable." ], "sync_status": "partial", "error_message": null, "last_updated_at": "2026-06-29T09:00:00Z", "stale_after": "2026-06-29T15:00:00Z" } ], "total": 2}