Skip Navigation

[Resolved] REQUEST_DENIED – This API project is not authorized to use this API.

This thread is resolved. Here is a description of the problem and solution.

Problem:
A REQUEST_DENIED error message occurs trying to use Google Maps.

Solution:
The API key needs to be set up to use both the Maps and Places APIs. Also, it may be necessary to set up a second unrestricted key for server-to-server requests.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/#creating-an-api-key-for-google-maps

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by David 6 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1151753

I am trying to:Load a simple Google map on a page using the Toolset Maps plugin. In fact I am struggling to get my API key validated in settings, when using 'Check API' instead I get:

REQUEST_DENIED - This API project is not authorized to use this API.

#1151861

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

It sounds like you perhaps didn't enable the API key to work with both the Maps and Places APIs (see https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/#creating-an-api-key-for-google-maps).

Can you verify that.

Also note at the bottom of that same page a note about adding a second API key with Google.

The first key is used for client-based requests (i.e. from the browser), and so you would typically want to add a URL referrer restriction to that key (so that only requests from your site URL are accepted), but this is known to sometimes cause problems with the Google API, and it is advisable to add a second key without URL referrer restrictions. This is used for server-to-server requests and so is not exposed.

#1151870

My issue is resolved now. Thank you!

In fact you were right about the need to tick both the Maps and Places (I only had Maps ticked).

Also, I needed the 2nd key to make it work.