Skip to main content

Google Business Profile Analytics

warning

Analytics endpoints are not available on the Starter plan. Upgrade to Intermediate, Growth or Business plan to access these endpoints.

Google Business Profile analytics endpoints provide insights for your connected Google Business Profile accounts.

1. GET /api/gbp/overview

Returns account-level metrics with current vs. previous period comparison.

Sample Request

curl --location --request GET \
"https://analyze.oneupapp.io/api/gbp/overview?apiKey=YOUR_API_KEY&social_network_id=123&preset=last_30_days"

Sample Response

{
"success": true,
"data": {
"metrics": [
{
"key": "views",
"name": "Views",
"value_current_period": 25000,
"value_last_period": 22000,
"percentage_change": "+13.6%",
"description": "Total number of profile views"
},
{
"key": "search_appearances",
"name": "Search Appearances",
"value_current_period": 45000,
"value_last_period": 40000,
"percentage_change": "+12.5%",
"description": "Total number of times appeared in search"
},
{
"key": "interactions",
"name": "Interactions",
"value_current_period": 1200,
"value_last_period": 1050,
"percentage_change": "+14.3%",
"description": "Total number of interactions"
},
{
"key": "calls",
"name": "Calls",
"value_current_period": 180,
"value_last_period": 160,
"percentage_change": "+12.5%",
"description": "Total number of calls"
},
{
"key": "direction_requests",
"name": "Direction Requests",
"value_current_period": 450,
"value_last_period": 400,
"percentage_change": "+12.5%",
"description": "Total number of direction requests"
},
{
"key": "website_clicks",
"name": "Website Clicks",
"value_current_period": 570,
"value_last_period": 490,
"percentage_change": "+16.3%",
"description": "Total number of website clicks"
}
],
"reviews_summary": {
"average_rating": 4.7,
"total_reviews": 245,
"rating_distribution": {
"5_star": 180,
"4_star": 40,
"3_star": 15,
"2_star": 5,
"1_star": 5
}
}
}
}

Metrics

KeyNameDescription
viewsViewsTotal number of profile views
search_appearancesSearch AppearancesTotal number of times appeared in search
interactionsInteractionsTotal number of interactions
callsCallsTotal number of calls
direction_requestsDirection RequestsTotal number of direction requests
website_clicksWebsite ClicksTotal number of website clicks

2. GET /api/gbp/posts

Returns analytics for Google Business Profile posts.

Sample Request

curl --location --request GET \
"https://analyze.oneupapp.io/api/gbp/posts?apiKey=YOUR_API_KEY&social_network_id=123&preset=last_30_days"

Sample Response

{
"success": true,
"data": {
"stats": [
{
"key": "posts",
"name": "Posts",
"value_current_period": 10,
"value_last_period": 8,
"percentage_change": "+25.0%",
"description": "Total number of posts in this period"
},
{
"key": "views",
"name": "Views",
"value_current_period": 8500,
"value_last_period": 7000,
"percentage_change": "+21.4%",
"description": "Total number of views on your posts"
},
{
"key": "clicks",
"name": "Clicks",
"value_current_period": 420,
"value_last_period": 350,
"percentage_change": "+20.0%",
"description": "Total number of clicks on your posts"
}
],
"posts": [
{
"id": "post_gbp_123",
"page_id": "gbp_account_123",
"format": "image",
"text": "Special offer this week!",
"permalink": "https://business.google.com/posts/123",
"media_type": "IMAGE",
"media_url": "https://example.com/gbp.jpg",
"stats": {
"views": 850,
"clicks": 42
},
"timestamp": "2025-05-01 11:00:00"
}
]
}
}

Post Stats

FieldDescription
viewsNumber of views on the post
clicksNumber of clicks on the post

3. GET /api/gbp/reviews

Returns reviews data for Google Business Profile.

Sample Request

curl --location --request GET \
"https://analyze.oneupapp.io/api/gbp/reviews?apiKey=YOUR_API_KEY&social_network_id=123&preset=last_30_days"

Sample Response

{
"success": true,
"data": {
"reviews": [
{
"id": "review_123",
"reviewer_name": "John Doe",
"rating": 5,
"comment": "Great service and friendly staff!",
"timestamp": "2025-05-01 14:30:00",
"reply": null,
"reply_timestamp": null
},
{
"id": "review_124",
"reviewer_name": "Jane Smith",
"rating": 4,
"comment": "Good experience overall.",
"timestamp": "2025-04-30 10:15:00",
"reply": "Thank you for your feedback!",
"reply_timestamp": "2025-04-30 14:00:00"
}
],
"summary": {
"average_rating": 4.7,
"total_reviews": 245,
"rating_distribution": {
"5_star": 180,
"4_star": 40,
"3_star": 15,
"2_star": 5,
"1_star": 5
}
}
}
}

Review Data

FieldDescription
idUnique review ID
reviewer_nameName of the reviewer
ratingStar rating (1-5)
commentReview text
timestampWhen the review was posted
replyBusiness reply text
reply_timestampWhen the reply was posted

Summary Fields

FieldDescription
average_ratingAverage star rating
total_reviewsTotal number of reviews
rating_distributionCount of reviews by star rating

Result: You have successfully retrieved Google Business Profile analytics data!