This API project is not authorized to use this API
- Updated on: May 25, 2023
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.
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.