OverviewProductsPlatformsAPI ReferenceResources
WhatsApp

Get pricing analytics

GEThttps://zernio.com/api/v1/whatsapp/pricing-analytics

Message volume and approximate cost for one connected WhatsApp number. Read live from Meta's pricing_analytics on the WhatsApp Business Account and scoped to that account's phone number.

Meta's figures are approximate and can lag; Meta bills from its own invoice.

Meta limits how far back and how fine the data goes (for example HALF_HOUR only over short ranges), and answers out-of-range requests with an error.

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

accountIdstringRequired

WhatsApp account ID

startstring (date-time)Required

Range start, ISO 8601 date or date-time.

endstring (date-time)Required

Range end, ISO 8601 date or date-time. Must be after start.

granularitystringRequiredOne of HALF_HOUR | DAILY | MONTHLY

Size of each data point. Use DAILY for short or month-to-date ranges.

Meta refuses MONTHLY when the range is too short for a monthly bucket (for example a range that starts at the beginning of the current month and ends today). That is a 400 with param: granularity and Meta's reason in error.

dimensionsstring

Comma-separated breakdowns: COUNTRY, PHONE, PRICING_CATEGORY, PRICING_TYPE, TIER. Without it each data point is a total for the interval.

metricTypesstring

Comma-separated: COST, VOLUME. Defaults to both.

pricingTypesstring

Comma-separated filter: REGULAR, FREE_CUSTOMER_SERVICE, FREE_ENTRY_POINT.

pricingCategoriesstring

Comma-separated filter of Meta pricing categories, for example MARKETING, MARKETING_LITE, UTILITY, AUTHENTICATION, AUTHENTICATION_INTERNATIONAL, SERVICE, REFERRAL_CONVERSION.

countryCodesstring

Comma-separated ISO 3166-1 alpha-2 country codes to filter on.

Responses

Success· the request worked

Errors· the request failed

GET/v1/whatsapp/pricing-analytics
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappphonenumbers.getWhatsAppPricingAnalytics({  query: {    accountId: 'account_abc123',    start: '2026-01-15T10:00:00Z',    end: '2026-01-15T10:00:00Z',    granularity: 'HALF_HOUR',  },});console.log(data);
{  "accountId": "66e000000000000000000001",  "phoneNumber": "34600000000",  "granularity": "DAILY",  "start": "2026-09-01T00:00:00.000Z",  "end": "2026-09-30T00:00:00.000Z",  "dataPoints": [    {      "start": "2026-09-01T00:00:00.000Z",      "end": "2026-09-02T00:00:00.000Z",      "phoneNumber": null,      "country": "ES",      "tier": null,      "pricingType": null,      "pricingCategory": "MARKETING",      "volume": 12,      "cost": 0.73    }  ]}
OpenAPI specification
Was this page helpful?