---
title: "Facebook Page metrics"
method: GET
path: "/api/v1/analytics/facebook/page-metrics"
tags: ["Analytics"]
---

# Facebook Page metrics

`GET /api/v1/analytics/facebook/page-metrics`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/analytics/facebook/page-metrics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/analytics/facebook/page-metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Pass profileId or accountId; accountId selects a specific Facebook connection.

## Query parameters

- `accountId` string, uuid
- `profileId` string, uuid

## Response `200`

Success

- object
  - `platform` 'facebook', required
  - `accountId` string, uuid, required
  - `profileId` string, uuid, required
  - `page` object, required
    - `id` string, required
    - `name` string, nullable, required
    - `username` string, nullable, required
    - `category` string, nullable, required
    - `link` string, nullable, required
  - `metrics` object, required
    - `followers` number, nullable, required
    - `fans` number, nullable, required
    - `recentPosts` integer, required
    - `recentPostLikes` integer, required
    - `recentPostComments` integer, required
    - `recentPostShares` integer, required
  - `insights` object, nullable, required
    - `periodDays` number, required
    - `views` number, nullable, required
    - `engagements` number, nullable, required
    - `pageViews` number, nullable, required
    - `followers` number, nullable, required
    - `daily` object[], required
      - `date` string, required
      - `value` number, required
  - `insightsUnavailable` 'permission_missing' | 'analyze_task_missing' | 'provider_error', nullable, required
  - `fetchedAt` string, date-time, required

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `403`: The connection lacks a permission or provider-confirmed resource
- `404`: Profile, account, or object not found
- `409`: The request conflicts with existing state
- `422`: The connected account cannot perform this operation
- `502`: Invalid request or provider failure

---

[API](https://skmtc.dev/adeli/apis/adeli-api.md) - [All operations](https://skmtc.dev/adeli/apis/adeli-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adeli/apis/adeli-api/revisions/ed680dfa9033?raw)
