OverviewProductsPlatformsAPI ReferenceResources
Posting Analytics

Get Facebook Page demographics

GEThttps://zernio.com/api/v1/analytics/facebook/demographics

Returns the follower breakdown of a connected Facebook Page by country and/or city, from Meta's latest daily snapshot.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

The Zernio SocialAccount ID for the Facebook account

breakdownstring

Comma-separated list of demographic dimensions: country, city. Defaults to both if omitted.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Keys

  • Country keys are ISO 3166-1 alpha-2 codes.
  • City keys are "City, Region, Country" strings as Meta returns them.

Limits

Meta removed age and gender demographics for Pages (page_fans_gender_age) on November 15 2025 with no replacement, so only country and city are available.

Meta reports small counts at a privacy floor, so the long tail can show identical low values.

GET/v1/analytics/facebook/demographics
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getFacebookDemographics({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "success": true,  "accountId": "64e1a2b3c4d5e6f7a8b9c0d1",  "platform": "facebook",  "metric": "follower_demographics",  "snapshotDate": "2026-10-03",  "demographics": {    "country": [      {        "dimension": "MA",        "value": 145      },      {        "dimension": "IN",        "value": 105      }    ],    "city": [      {        "dimension": "Casablanca, Morocco",        "value": 21      },      {        "dimension": "Johannesburg, South Africa",        "value": 3      }    ]  },  "note": "Followers by country and city from Meta's latest daily snapshot. Meta removed age and gender for Pages in November 2025."}
OpenAPI specification
Was this page helpful?