Google Business Performance API has a
NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the
deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
Libraries
Stay organized with collections
Save and categorize content based on your preferences.
The Google My Business API client libraries support the functionality of the
Google My Business API. They provide functionality that's common to all Google APIs, such
as HTTP transport, error handling, authentication, JSON parsing, and
support for protocol buffers.
If you are new to the Google My Business API, check out the Get Started guides and code samples. For additional information on the client libraries, see Google API Client Libraries.
Prior versions of the client libraries and discovery documents are available on the Previous Versions page.
Detailed error responses
To enable more detailed error messages in responses, such as absent required
fields, add the following additional header to your requests:
X-GOOG-API-FORMAT-VERSION: 2
For additional information on error message responses, see the ErrorCode
,
ErrorDetail
, InternalError
, and ValidationError
pages in the
Shared.Types section.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe Google My Business API client libraries provide functionalities common to all Google APIs, including HTTP transport, error handling, and authentication, in addition to the specific features of the Google My Business API.\u003c/p\u003e\n"],["\u003cp\u003eUsers new to the Google My Business API can utilize the Get Started guides and code samples for guidance and practical examples.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries for the Google My Business API are available in various programming languages, including Java, Python, .NET, PHP, Node.js, and Go, supporting different Google My Business APIs such as Account Management, Lodging, and Place Actions.\u003c/p\u003e\n"],["\u003cp\u003eFor more comprehensive error messages, include the header \u003ccode\u003eX-GOOG-API-FORMAT-VERSION: 2\u003c/code\u003e in your requests, and consult the ErrorCode, ErrorDetail, InternalError, and ValidationError pages in the Shared.Types section for further details on error responses.\u003c/p\u003e\n"]]],[],null,[]]