Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9073223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:22:01+00:00 2026-06-16T18:22:01+00:00

I’m stuck trying to get an API call to Google Places working. I’m using

  • 0

I’m stuck trying to get an API call to Google Places working. I’m using a server-side PHP proxy for the request – not because I want to, but because it’s part of JQuery-POI-Mapper.

The server I’m using is an Amazon EC2 server without a static IP address. I’m out of stactic IP addresses at the moment, but I’ll take the time to request more if people think that’s the problem. I identified the current public IP address of my EC2 server by running this command on the server:

curl http://169.254.169.254/latest/meta-data/public-ipv4

Next, I went to https://code.google.com/apis/console and created a new API key. I selected a server-side API key and used my EC2 server’s public IP address.


enter image description here


Under the services tab, I enabled every related API I could think of, including:

  • Google Maps API v2
  • Google Maps API v3
  • Google Maps Gelolocation API
  • Places API
  • Static Maps API

Here’s a screen capture of my Services:

enter image description here

The proxy code running on the EC2 server is part of a commercial package, so I shouldn’t post the entire code, but it’s very short, and the important part is:

$json = file_get_contents($url);

The $url variable in my case was:

https://maps.googleapis.com/maps/api/place/search/json?location=-37.7133771,145.14891620000003&radius=2000&types=bakery&sensor=false&key=AIzaSyCCUV...

The response I get is:

{
   "html_attributions" : [],
   "results" : [],
   "status" : "REQUEST_DENIED"
}

I checked to see if I had gone over my quota already, but everything looks OK. What’s interesting is that Google is showing that I had made requests to the Places API today, so Google definitely knows that the requests are coming from me.

Here’s a screen capture of my API Traffic Report, which is all from testing:

enter image description here

Any advice would be much appreciated.

Thanks,
Bret

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:22:02+00:00Added an answer on June 16, 2026 at 6:22 pm

    You need a Static IP address to successfully use IP Locking with a Server API Key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm making a simple page using Google Maps API 3. My first. One marker
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am using JSon response to parse title,date content and thumbnail images and place

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.