Stats

View .md

Overview metrics for the dashboard.


Overview metrics for the dashboard (posts this month, connected platforms, queue, success rate).

GET/v1/stats
API key (dra_…) or dashboard JWT

Dashboard overview metrics for the current user.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.

posts_this_monthinteger

Posts published in the current month.

connected_platformsinteger

Connected social accounts.

total_platformsinteger

Platforms Dravo supports.

queue_processinginteger

Jobs currently being delivered.

success_ratefloat

Share of successful finished jobs as a percentage (0-100).

const response = await fetch("https://api.dravo.dev/v1/stats", {  method: "GET",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "posts_this_month": 42,  "connected_platforms": 4,  "total_platforms": 6,  "queue_processing": 1,  "success_rate": 98}