Ce guide est disponible en anglais.
Profile Analytics API Examples for Portfolios and Locations
Pull Google Business Profile analytics with the Synup API, portfolio-wide or per location, with views, actions, calls and direction requests.
En bref
- Ce que ce guide permet
- Read profile views, actions, calls and direction requests for a client or a single location.
- API utilisées
- get
/api/v1/analytics/summaryObtenir un résumé des statistiques de profil - get
/api/v1/analyticsObtenir les statistiques du profil
- get
- Référence
- Statistiques de profil
- Prérequis
- An API key
- A clientId, or a locationId for the per-location view
- Cas d'usage typiques
- Showing a performance tab in your dashboard
- Reporting monthly numbers to a business owner
- Comparing locations against each other
There are two analytics calls, one for the portfolio summary and one for per-location detail. Reach for the portfolio call first.
Portfolio summary
GET /api/v1/analytics/summary rolls up profile views, actions, website visits, calls, direction requests
and button clicks across a client's locations, with a per-location leaderboard, a period comparison and daily,
weekly or monthly granularity. One call covers a dashboard's overview and its per-location table.
curl "https://ai.synup.com/api/v1/analytics/summary?clientId=CLIENT_ID&comparison=previous_period&granularity=weekly" \
-H "Authorization: Bearer $SYNUP_API_KEY"Per-location detail
GET /api/v1/analytics returns analytics for one location. Use data.impressionSplit.maps and
data.impressionSplit.search for the Google Maps and Search breakdown when impressionSplit is available.
The same response can include Google search keywords for that location. For both calls, see
retrieve Google Business Profile analytics.
curl "https://ai.synup.com/api/v1/analytics?locationId=LOCATION_ID&clientId=CLIENT_ID" \
-H "Authorization: Bearer $SYNUP_API_KEY"Analytics only exist where a profile is connected and reporting, so a brand-new location shows nothing until Google starts returning metrics for it. Profile analytics is one of the six features in the local marketing guide; rank tracking is the SEO counterpart.