How do I get a Google Places API key for my Android App

20,050

Please Follow below steps

Visit the Google APIs Console at https://code.google.com/apis/console and log in with your Google account.

A default project called API Project is created for you when you first log in to the APIs Console. You can use the project, or create a new one by clicking the API Project button at the top of the window and selecting Create. Maps API for Business customers must use the API project created for them as part of their Places for Business purchase.

Click the Services link in the left-hand navigation panel.

Click the status switch (the on/off button) next to the Places API entry. The switch slides to ON.

Click API Access in the left-hand navigation panel.

Click Create new Server key. Enter one or more server IP addresses if you wish to restrict the servers that can send API requests.

Click Create. Your API key appears under the heading Key for server apps (with IP locking).

Share:
20,050
PGMacDesign
Author by

PGMacDesign

Love to learn new things.

Updated on July 05, 2020

Comments

  • PGMacDesign
    PGMacDesign almost 4 years

    I've spent the last 48 hours pulling my hair out trying to find the answer to this question. The person who asked this question: how can I make API KEY for Google Places api? Is experiencing the same issue I am having, but never got an answer.

    Basically, I need help getting a Google PLACES api key. I already have a maps api key which works fine, but I cannot get a places API key. I have followed every single tutorial I could find including (To name a couple: (http://wptrafficanalyzer.in/blog/showing-nearby-places-using-google-places-api-and-google-map-android-api-v2/) , (http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/#) , (https://www.youtube.com/watch?v=8PVK1Ue5rvk) But absolutely nothing has worked.

    I added some screenshots below here to illustrate the problem:

    1) 1

    2) 2

    3) 3

    4) 4

    Everyone I ask keeps telling me that it is just located somewhere on the https://console.developers.google.com website, but 2 solid days of looking has gotten me nowhere. Can someone please help me to find the EXACT location to obtain a places api? (Again, NOT a maps api, I already have that and am getting only REQUEST_DENIED errors due to my lack of a secondary key.

    Thanks in advance all

    -Silmarilos

  • PGMacDesign
    PGMacDesign almost 10 years
    You have no idea how grateful I am to see not only the correct answer, but one that was written quickly and effectively. The issue no one ever clarified for me was that you merely had to enter no specific IP address in the field, which would allow all incoming requests. If I could upvote this about 4,000 times, I would. Thanks a million!
  • user2163298
    user2163298 over 9 years
    UPVOTE A 4,001 times!!! - spent a good couple hours or so myself on this. ridiculous
  • WISHY
    WISHY about 9 years
    Are server IP address mandatory even though I have use it in my android application?