This API project is not authorized to use this API

Table of Contents

If you encounter the error message “This API project is not authorized to use this API,” it indicates that the API project associated with your store locator does not have the necessary authorization to access the required APIs. To resolve this issue, please follow these steps:

Access the Google Cloud Console: Go to the Google Cloud Console website (console.cloud.google.com) and log in with your Google account.

Select your project: From the project drop-down menu at the top of the page, ensure that you have selected the correct project associated with your store locator.

Enable the required APIs: Navigate to the “API Library” section within the Google Cloud Console. Search for the following APIs: Geocoding, JavaScript Maps, Directions, and Places. Enable each of these APIs for your project by clicking on the respective “Enable” button.

Configure referrers for your API key: Go to the “Credentials” section within the Google Cloud Console. Locate your API key that is being used for the store locator. Click on the edit icon or create a new API key if needed. Under the “Application restrictions” section, add the appropriate referrers by following the specified format.

domain.com
domain.com/*
*.domain.com
*.domain.com/*

Please replace domain.com with your domain name.

Save and test: After enabling the required APIs and configuring the referrers, save the changes. Test your store locator to ensure that the “This API project is not authorized to use this API” error no longer occurs.

Video Tutorial #