Libraries

  • The 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.

  • Users new to the Google My Business API can utilize the Get Started guides and code samples for guidance and practical examples.

  • Client 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.

  • For more comprehensive error messages, include the header X-GOOG-API-FORMAT-VERSION: 2 in your requests, and consult the ErrorCode, ErrorDetail, InternalError, and ValidationError pages in the Shared.Types section for further details on error responses.

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.

API Client library Client library reference Code samples
Account Management API
Discovery doc
Java Reference docs View on GitHub
Python Reference docs View on GitHub
.NET Reference docs View on GitHub
PHP View on GitHub
Node.js
Go
Lodging API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
Place Actions API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
Notifications API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
Verifications API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
Business Information API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
My Business Q&A API
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
My Business Business Calls
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go
Business Profile Performance
Discovery doc
Java Reference docs
Python Reference docs
.NET Reference docs
PHP
Node.js
Go

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.