How to fix: “This api project is not authorized to use this API”?

This documentation provides specific instructions to address the “This API Project is Not Authorized to Use This API” error for various Google APIs, including Geocoding, JavaScript Maps, Direction, and Place APIs. The error message indicates that a particular API is not enabled for your project. This guide will help you identify which API is causing the issue and how to enable the required libraries accordingly.

1. Geocoding API Not Enabled #

Scenario: If you encounter the error message during the import or integration phase, it likely indicates that the Geocoding API is not enabled for your project.

Solution:

  1. Log in to the Google Cloud Console.
  2. Go to the “APIs & Services” > “Library” section.
  3. Search for “Geocoding API” and select it.
  4. Click the “Enable” button to enable the Geocoding API for your project.

2. Google JavaScript Maps API Not Enabled #

Scenario: If you see the error message on a store locator page or when embedding a map using JavaScript, it suggests that the Google JavaScript Maps API is not enabled for your project.

Solution:

  1. Access the Google Cloud Console.
  2. Navigate to “APIs & Services” > “Library.”
  3. Search for “Google Maps JavaScript API” and select it.
  4. Click the “Enable” button to enable the JavaScript Maps API for your project.

3. Place API Not Enabled #

Scenario: If the error occurs during a search API function, it indicates that the Place API is not enabled for your project.

Solution:

  1. Sign in to the Google Cloud Console.
  2. Proceed to “APIs & Services” > “Library.”
  3. Search for “Places API” and select it.
  4. Click the “Enable” button to enable the Place API for your project.

4. Google Direction API Not Enabled #

Scenario: If the error appears while rendering directions, it suggests that the Google Direction API is not enabled for your project.

Solution:

  1. Log in to the Google Cloud Console.
  2. Go to “APIs & Services” > “Library.”
  3. Search for “Directions API” and select it.
  4. Click the “Enable” button to enable the Direction API for your project.

Conclusion #

By identifying the specific API causing the “This API Project is Not Authorized to Use This API” error and following the relevant solution provided in this documentation, you can successfully enable the required libraries and resolve the issue. Always ensure that you refer to the official Google Cloud Console for enabling APIs and consult the API documentation for integration details.

Guide Tutorial Video #