Google place ID vs CID: which identifier to keep in a lead list

By TrustScrap team · · 9 min read

What a place ID, a CID, the 0x…:0x… code and a Maps URL are, which to key a lead list on, how to keep IDs current and how to build links that last.

The short answer

Key the list on the place ID: it is the identifier Google documents, it works in the Places API and several other Maps Platform APIs, and Google's API customers may store it indefinitely. Store the CID as text if you keep it at all, let the 0x…:0x… code go, and refresh place IDs more than 12 months old.

Merge two exports of dentists in Leeds and the sheet can end up with four columns that each claim to identify the same practice: a place_id beginning with ChIJ, a long number labelled cid, a code of the form 0x…:0x… and a Google Maps link. Make the place ID your key. It is the identifier Google documents: the same ID works in the Places API and several other Maps Platform APIs, and Google's API customers may store it indefinitely.

Build the links people click from the place ID, store the CID as text if you keep it at all, and let the hex pair go.

Four columns, one listing

Google documents only some of them. The fifth row comes from the owner's side.

Examples from Google's developer documentation: the place ID and the CID belong to one example place, the hex pair to another.
ColumnExampleWhat Google says about itUse it as
Place IDChIJN1t_tDeuEmsRUsoyG83frY4A textual identifier that uniquely identifies a placeThe key
CID10281119596374313554Nothing directly: it sits inside the ?cid= link that the Places API returns as the official Google page for the placePart of a link, stored as text
Hex pair0x808f778c55555555:0xa4f25c571acded3fNothing: it sits inside the data= part of the long links the Places API returns, such as the one for writing a reviewNothing
Maps linkgoogle.com/maps/place/…Not a format for building links: Google documents Maps URLs for thatA link to click; build your own from the place ID
Business Profile IDIn the profile's advanced settingsThe listing's unique identifier, for the owner to give Google supportNothing, unless you manage the profile

Key the list on the place ID

Google says a place ID's length varies and has no maximum, and its own examples start in different ways (ChIJ…, GhIJ…, Eic…). So never validate IDs by their first letters or their length, and never let anything trim them, change their case or squeeze them into a fixed-width field. An ID that has been “truncated or otherwise modified” can come back as INVALID_REQUEST: a damaged ID isn't roughly right, it simply stops working.

De-duplicate in two passes, and date every row:

  1. Match rows on the place ID, exactly as exported.
  2. Compare what is left on the name plus one more field: the street address, the phone number or the website's domain. Never on the name alone. A service-area business, which Google's guidelines tell to hide its address, has to match on its phone number or website.
  3. Give each row the date it was collected or last checked, so you can see when it passes 12 months, the age at which Google recommends refreshing an ID.

The second pass is there because the place ID is a good key, not a perfect one. Google says the same place can have several place IDs and that IDs change over time, so a row without a match isn't proof of a new business.

Rows that look like duplicates but aren't

Some listings share an address by design. Google's guidelines tell individual practitioners, doctors, dentists and lawyers among them, to have their own Business Profile when they are public-facing and can be contacted at the location, with a separate profile for the practice. So that dental practice in Leeds can appear once for the practice and once for each dentist with a profile: one address, several place IDs.

Chains are the mirror case: one name at many addresses. The same guidelines give each location no more than one page, so each branch with a page has its own place ID and survives de-duplication. That suits a call list; before an e-mail campaign, check whether the branches share one head-office e-mail address, or one inbox gets your message ten times.

What to do with the CID and the hex pair

The CID is the number in links of the form maps.google.com/?cid=…, and Google's APIs hand it out without explaining it. In the legacy Place Details API, the url field holds “the URL of the official Google page for this place”, and Google's example pairs place ID ChIJN1t_tDeuEmsRUsoyG83frY4 with https://maps.google.com/?cid=10281119596374313554. Places API (New) returns the same kind of link as googleMapsUri.

We found no Google page that says what “cid” stands for or documents it as an input: what Google's APIs take is the place ID. Treat the CID as part of a link, not as a key.

The hex pair is even less official. In Google's Places API (New) example, the links for directions, reviews, photos and writing a review all carry 0x808f778c55555555:0xa4f25c571acded3f in their data= part. Its second half, converted to decimal, is 11885663895765773631, the CID in the same example's place link. That is our own arithmetic; Google documents neither the pair nor the match, so don't build a converter on it.

Google documents a conversion in each direction, but neither starts from a CID. A place ID gets you that link: Places API (New) returns it as googleMapsUri, a Pro field. A link gets you a place ID through the Resolution API, which takes standard /maps/place/ links, maps.app.goo.gl short links and location names, up to 20 per request. As of November 2026 it is billed at US$0 under the Text Search Essentials (IDs Only) SKU, but it needs a Google Cloud project with billing enabled, and ?cid= links aren't among the formats it lists.

Links that open the right listing

For links you build yourself, Google documents a cross-platform format, Maps URLs. They work on phones and computers, need no API key, and for one business take this form:

https://www.google.com/maps/search/?api=1&query=PLACE_NAME&query_place_id=PLACE_ID

Three rules decide whether it works. The URL must contain api=1, or Maps ignores every other parameter. A query is required even with the place ID, but when both are present Maps uses the query only if it can't find the ID; Google calls the place ID “the best guarantee that you will link to the right place”. And the name must be URL-encoded (a comma becomes %2C), with the whole URL no longer than 2,048 characters.

With the place ID in column A and the name in column B, one formula builds each row's link:

=HYPERLINK("https://www.google.com/maps/search/?api=1&query="&ENCODEURL(B2)&"&query_place_id="&A2, "Open in Maps")

It works in Google Sheets, which has ENCODEURL, and in Excel for Windows. Microsoft says ENCODEURL is not available in Excel for the web or Excel for Mac.

The same format can open a shortlist of up to 20 places from their place IDs, which the viewer can save to Google Maps or share: handy for sending a client the competitors you discussed.

Short maps.app.goo.gl links in a list should last: Google's notice on the end of its URL shortener (July 2024, updated August 2025) says that goo.gl links generated via Google apps (such as Maps sharing) will continue to function. Still, a short link is only a redirect: resolve it to a place ID and keep that.

An owner gets their review link from Google Business Profile, under Read reviews, then Get more reviews. Places API (New) returns one per place as writeAReviewUri, inside googleMapsLinks, a Pro field. If review links end up in a pitch, leave incentives out: Google treats offering free or discounted goods or services in exchange for reviews as fake engagement, and strictly prohibits it.

Keeping place IDs current

Google recommends refreshing place IDs that are more than 12 months old, and the refresh is free if you ask for nothing but IDs. Send each stored ID to Place Details (New) with the field mask id,movedPlaceId. Both fields fall under the Place Details Essentials (IDs Only) SKU, which has an unlimited free usage cap on Google's price list (as of November 2026). Each answer means one of four things:

  • the same ID: keep the row;
  • a different ID, which Google says can happen with some kinds of place ID: store the new one;
  • a movedPlaceId: the business has moved, and that is its next location; the field points only to the next one, so a business that moved twice needs a second lookup;
  • NOT_FOUND: the ID is obsolete, because the business closed, because it moved, or because an update to the Maps database gave the place a new ID. It doesn't prove a closure.

A closed business can also come back with a working ID. Spotting it takes businessStatus, which then reads CLOSED_PERMANENTLY, but that is a Pro field, and a request is billed at the highest SKU among the fields it asks for. Place Details Pro is free for the first 5,000 requests a month, then US$17.00 per 1,000 (as of November 2026).

Say you collected 8,000 roofers, plumbers and electricians around Denver in November 2025. A year later, the ID check on all 8,000 rows costs nothing. Add businessStatus and every request becomes a Pro request: 5,000 free, then 3,000 at US$17.00 per 1,000, or US$51, provided nothing else on the same billing account has used that month's free allowance. Our guide to Places API pricing covers the other requests.

For the IDs that came back NOT_FOUND, Google's advice is to store the request that produced each one and send it again, billed at the usual rate. For a list from a scraper, that means running the same search over the same area and matching the new export against the old one, place ID first.

TrustScrap's details for a restaurant in Hamburg: street, house number, postcode, city, region and country; phone and phone type, website, e-mail, Facebook, Instagram, LinkedIn, YouTube and TikTok; a Google rating of 4.5 from 19,260 reviews; and the place's Google Maps URL.
One place's details in TrustScrap, its Google Maps URL among them; phone numbers and e-mail addresses are blurred.

What Google's storage rule covers

“Store place IDs indefinitely” is easy to stretch, so read it where it is written.

Before the next export goes into your CRM

  1. Set any cid column to Text on import, or drop it.
  2. Make place_id the unique key and keep it exactly as exported.
  3. Add the date each row was collected or last checked.
  4. Build the links you share with api=1 and query_place_id.
  5. Set a reminder 12 months out: run the free ID check, then search again for whatever came back NOT_FOUND.

Sources

  1. Google for Developers: Place IDs (Places API)
  2. Google for Developers: Places API policies
  3. Google for Developers: Place Details (Legacy)
  4. Google for Developers: Link to Google Maps (Places API)
  5. Google for Developers: Get started with Maps URLs
  6. Google Business Profile Help: Manage advanced profile settings
  7. Google Business Profile Help: Guidelines for representing your business on Google
  8. Google for Developers: Places API SKU details
  9. Google for Developers: Maps Tools Resolution API
  10. Microsoft Support: Keeping leading zeros and large numbers (Excel)
  11. MDN Web Docs: Number.MAX_SAFE_INTEGER
  12. PostgreSQL Documentation: Numeric types
  13. Google Docs Editors Help: ENCODEURL function
  14. Microsoft Support: ENCODEURL function
  15. Google Developers Blog: Google URL Shortener links will no longer be available (18 July 2024, updated 1 August 2025)
  16. Google Business Profile Help: Create a Google link or QR code to request reviews
  17. Google for Developers: Google Maps Platform core services pricing list
  18. Google for Developers: Place Details (New), Get place details for a moved place
  19. Google Maps Platform Service Specific Terms
  20. Google Maps Platform Terms of Service
  21. Google Maps Platform EEA Terms of Service
  22. Google: Google Maps End User Additional Terms of Service
  23. EUR-Lex: Regulation (EU) 2016/679 (General Data Protection Regulation)
  24. Gesetze im Internet: § 7 UWG, Unzumutbare Belästigungen