Google My Business API Web Demo

This demonstration illustrates how to perform OAuth 2.0 authorization, sign in/out and call the Google My Business API using JavaScript and CORS.

The API Key and OAuth 2.0 Client ID values from Google APIs & Services must be added to the JavaScript source for this page.

OAuth2 Authorization and Sign Out

Successful OAuth2 authorization grants this script access to the Google My Business API and enables you to view and manage business locations on Google.

A one-time acknowledgement is required to grant this script access to the Google account holding the API Key and OAuth 2.0 client ID credentials.

You may verify current grant status and revoke active grants at any time using My Account Permissions (also available from Settings and Sign-in & Security when signed into your Google account).

API Requests

API Responses