List Google Analytics (GA4) dimensions and metrics
Every dimension and metric the connected GA4 property accepts in a report, including its custom definitions. Cached for one hour.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Zernio account ID of the Google Analytics connection.
Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getGoogleAnalyticsMetadata({ query: { accountId: 'account_abc123', },});console.log(data);{ "accountId": "string", "propertyId": "string", "dimensions": [ { "apiName": "string", "uiName": "string", "description": "string", "category": "string", "customDefinition": true } ], "metrics": [ { "apiName": "string", "uiName": "string", "description": "string", "type": "string", "category": "string", "customDefinition": true } ]}Get Facebook Page demographics
Returns the follower breakdown of a connected Facebook Page by country and/or city, from Meta's latest daily snapshot. Country keys are ISO 3166-1 alpha-2 codes; city keys are "City, Region, Country" strings as Meta returns them. 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. Requires the Analytics add-on.
Get Instagram online followers
Returns how many of an Instagram account's followers were online in each hour, for every day of the last 30 days that Meta has data for. Hour keys are "0" to "23" as Meta returns them. endTime is the end_time Meta returns for that day. Meta does not document the timezone of the hour keys. Data is delayed up to 48 hours, so the most recent days are left out until Meta fills them. Requires at least 100 followers; for smaller accounts days is empty. Requires the Analytics add-on.