Skip to main content
GET
/
v1
/
statistics
/
dashboard
Get dashboard metrics
curl --request GET \
  --url https://api.yalg.ai/v1/statistics/dashboard \
  --header 'x-api-key: <api-key>'
{
  "totalPosts": {
    "value": 24,
    "change": {
      "value": 12,
      "type": "increase"
    },
    "description": "from last month"
  },
  "engagementRate": {
    "value": "3.2%",
    "change": {
      "value": 8,
      "type": "increase"
    },
    "description": "vs last month"
  },
  "avgComments": {
    "value": 8.5,
    "change": {
      "value": 15,
      "type": "increase"
    },
    "description": "per post"
  },
  "impressions": {
    "value": "12.4K",
    "change": {
      "value": 22,
      "type": "increase"
    },
    "description": "this month"
  }
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Response

Dashboard metrics retrieved successfully