Get GBP performance metrics
Returns daily performance metrics for a Google Business Profile location. Metrics include impressions (Maps/Search, desktop/mobile), website clicks, call clicks, direction requests, conversations, bookings, and food orders. Data may be delayed 2-3 days. Max 18 months of historical data. Requires the Analytics add-on.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
The Zernio SocialAccount ID for the Google Business Profile account.
Comma-separated metric names. Defaults to all available metrics. Valid values: BUSINESS_IMPRESSIONS_DESKTOP_MAPS, BUSINESS_IMPRESSIONS_DESKTOP_SEARCH, BUSINESS_IMPRESSIONS_MOBILE_MAPS, BUSINESS_IMPRESSIONS_MOBILE_SEARCH, BUSINESS_CONVERSATIONS, BUSINESS_DIRECTION_REQUESTS, CALL_CLICKS, WEBSITE_CLICKS, BUSINESS_BOOKINGS, BUSINESS_FOOD_ORDERS, BUSINESS_FOOD_MENU_CLICKS
Start date (YYYY-MM-DD). Defaults to 30 days ago. Max 18 months back.
dateEnd date (YYYY-MM-DD). Defaults to today.
dateResponse 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.getGoogleBusinessPerformance({ query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"accountId": "69300690f43160a0bc999e07",
"platform": "googlebusiness",
"dateRange": {
"startDate": "2026-03-01",
"endDate": "2026-03-31"
},
"metrics": {
"WEBSITE_CLICKS": {
"total": 42,
"values": [
{
"date": "2026-03-01",
"value": 3
},
{
"date": "2026-03-02",
"value": 1
}
]
},
"CALL_CLICKS": {
"total": 7,
"values": [
{
"date": "2026-03-01",
"value": 1
}
]
},
"BUSINESS_IMPRESSIONS_MOBILE_SEARCH": {
"total": 156,
"values": [
{
"date": "2026-03-01",
"value": 8
}
]
}
},
"dataDelay": "Data may be delayed 2-3 days"
}{
"error": "Invalid metrics: INVALID_METRIC",
"validMetrics": [
"string"
]
}{
"error": "Unauthorized"
}{
"error": "Analytics add-on required",
"code": "analytics_addon_required"
}{
"error": "Access denied to this account"
}Get TikTok account-level insights GET
Returns account-level TikTok insights from /v2/user/info/ (live) plus historical time series joined from Zernio's daily snapshotter (AccountStats). Response shape matches /v1/analytics/instagram/account-insights. Max 89 days, defaults to last 30 days. Requires the Analytics add-on and the user.info.stats scope on the account (412 if missing). Scope intentionally narrow. TikTok's public API exposes only the four counter metrics below. The deep metrics that live in TikTok Studio are NOT available on any public TikTok API, even for Business accounts: - profile_views - account-level impressions / reach - follower inflow / outflow breakdown - video watch time, average watch time, full-watched rate - impression_sources (FYP / Following / Hashtag / Search / Personal profile) TikTok's Research API doesn't expose those fields either, and is restricted to non-commercial academic use per TikTok's eligibility policy. There is no public API workaround. Post-level metrics (views, likes, comments, shares per video) are available via /v1/analytics?postId=... from TikTok's /v2/video/query/.
Get GBP search keywords GET
Returns search keywords that triggered impressions for a Google Business Profile location. Data is aggregated monthly. Keywords below a minimum impression threshold set by Google are excluded. Max 18 months of historical data. Requires the Analytics add-on.