DEV Community

OpenGMB
OpenGMB

Posted on

How to find a Google Place ID (and why you should check it again later)

If you build review links, QR codes, Maps widgets or anything on top of the Google Places API, you will need a Place ID sooner or later. Here is what it is, how to find one in a minute, and the two mistakes that break links later.

What a Place ID is

A Place ID is the code Google uses to identify one place on Maps. You need it for review links, QR codes, widgets and API calls. It is not the same as a CID: they are different identifiers, and the CID is the number in some Maps URLs.

How to find one

  1. Type the business name and city, or paste a long Google Maps link, into a Place ID lookup.
  2. Pick the right listing from the results.
  3. Copy the Place ID, then open the place on Google Maps to check you picked the right one.

We built a free lookup for this in OpenGMB, the open-source Google Business Profile manager we work on: Google Place ID finder. It needs no API key and no account, and nothing you type is saved.

Mistake 1: pasting a short maps.app.goo.gl link

A short link hides the business name behind a redirect. Open it in your browser first and copy the long address from the address bar, or just type the name and city.

Mistake 2: storing the ID forever

A Place ID can change. Google says a Place ID may change over time, for example when a business closes or moves. If you keep IDs in a database or print them into review links, refresh them now and then, and look the ID up again if a link stops working.

The service-area business catch

A service-area business with no public address often does not show up in search results. In that case, use Google's own Place ID Finder on the map.

What to do with the ID

  • Build a Google review link and a QR code from it
  • Use it in Maps and Places API calls, widgets and reports
  • Store it with your location records, with a date, so you know when it was last checked

One lookup, one check on Maps, and a reminder to refresh it once in a while. That is all a Place ID needs.

Written by the OpenGMB team at Synectus.

Top comments (0)