skip to Main Content
Google API – Requests To This API Must Be Over SSL

Google API – Requests to this API must be over SSL

When we are using the Google API many times we are getting “Requests to this API must be over SSL” error like

{
    "destination_addresses": [ ],
    "error_message": "Requests to this API must be over SSL.",
    "origin_addresses": [ ],
    "rows": [ ],
    "status": "REQUEST_DENIED"
}

I am trying to fetch the lat and long from address using Google geolocation API.

http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA

I used SSL certified website and create the call from the SSL certified website on the “http://” So for that, i am getting this kind of error from google.

Just I need to change the “https://” instead of “http://” that is the solution  for this like

https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA

Now, it’s working fine.

If you face any kind of issue on geolocation API write the comment below.

Saroj

I am a web designer and developer part-time blogger. Write something on some free time. Find my every day thought here :)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top