The quickest way to find a KGMID is the share button on a Google knowledge panel. Open the shared link and the KGMID is in the address bar. Below are that method and four others (all but the last are free), plus how to check an ID you already have.
For a local business, the quickest route is our free Google Maps KGMID finder: press Share on its Business Profile, paste the link, and it returns the ID.
If you’re new to KGMIDs, start with What is a KGMID?
1. Use the knowledge panel’s share button
- Search Google for the business or person so its knowledge panel shows.
- Open the panel’s menu and choose Share.
- Copy the link, paste it into your address bar and open it.
- The page it redirects to has a
kgmid=parameter. The value starting/g/or/m/is the ID.
Both Kalicube and SerpApi recommend this as the simplest method.
2. Search the page source
- With the knowledge panel showing, open the page source (Ctrl+U, or Cmd+Option+U on a Mac).
- Search for
/g/or/m/. - Check that the entity’s name appears next to the ID you find, so you know you have the right one.
3. Inspect an unclaimed panel’s claim link
This only works when the panel shows a “Claim this knowledge panel” option. Right-click that option and choose Inspect. The ID appears after /claim/?mid=. Clicking through to claim the panel also puts the ID in the URL.
4. Look it up on Wikidata
Well-known entities often have a Wikidata page listing a Google Knowledge Graph ID (for /g/ IDs) or a Freebase ID (for /m/ IDs). Most local businesses won’t have a Wikidata page, so this is more useful for brands, people and places.
5. Use a search API
If you’re checking many entities, SERP APIs such as SerpApi return the kgmid inside the knowledge graph section of their results. That’s handy for bulk checks, but it’s a paid service.
Check what a KGMID belongs to
Once you have an ID, you can go the other way:
- Search by ID. Open
https://www.google.com/search?kgmid=/g/XXXXXXXX. SerpApi notes that thekgmidparameter overrides the normal query, though it doesn’t work for every ID. - Use Kalicube’s free explorers. Search a business or person by name in the Knowledge Graph Explorer to see its ID and type, or paste an ID into the Reverse Explorer to see what it belongs to. Both ask Google’s Knowledge Graph Search API.
The API has limits. As Kalicube notes, it only returns entities in Google’s main Knowledge Graph, so many local business IDs won’t show up there even though they exist. Google also says the API “is not suitable for use as a production-critical service” and is migrating it to Cloud Enterprise Knowledge Graph. An empty API result doesn’t mean the business has no entity.
That gap is why we built our own Google Maps KGMID finder for local businesses. It reads the ID from the Business Profile’s own Maps link, so it works for businesses the API never returns.
Skip the lookup
Every Unfair Links placement shows the KGMID of the business behind it on the delivered page. You can open it in Google with one click, alongside its Google Maps listing, reviews and social profiles.
