What Is a KGMID? Google's Entity ID and How to Find Yours

What Is a KGMID? Google's Entity ID and How to Find Yours

A KGMID (Knowledge Graph Machine ID, sometimes written KG MID or KGID) is the unique identifier Google assigns to every entity in its Knowledge Graph — people, companies, places, products. It looks like /g/11kqx7vt0_ or an /m/ code, and it's how Google tells your entity apart from every other thing that shares your name.

If you care about entity disambiguation in AI search, the KGMID is the anchor: it's the stable ID you point your structured data at so Google and AI systems are certain which "you" they're describing.

How to find your KGMID

There are three reliable ways, easiest first.

1. From your Knowledge Panel URL. Search your name, click into your Knowledge Panel, and use the share option — the generated link contains your kgmid= parameter. That string is your ID.

2. From a Google search. Search your entity, open the page source, and search it for kgmid or /g/ — Google embeds the machine ID in the results markup for recognized entities.

3. From the Knowledge Graph Search API. Query the entity by name and the API returns its @id — the canonical Knowledge Graph identifier. Best when you need it programmatically or want to confirm the exact match.

The fastest check of all: the free Knowledge Panel & entity checker resolves what entity — and ID — Google currently holds for a name in about thirty seconds.

Why your KGMID matters for AI search

Two reasons it's worth knowing.

Disambiguation. If you share a name with other people or brands, Google needs a way to keep the entities separate. Referencing your KGMID in your schema markup (via sameAs and a stable @id) is one of the strongest signals that "this content is about that entity" — which is exactly what AI engines rely on to describe you correctly.

Stability. Names, titles, and URLs change; the KGMID doesn't. Anchoring your entity to it gives Google and AI systems a fixed point to attach facts to, which is the foundation of a durable Knowledge Panel and entity authority.

No KGMID yet?

If Google hasn't assigned you one, you don't have a resolved entity in the Knowledge Graph yet — the fix is building the entity: consistent structured data, authoritative references, and profiles Google can corroborate. Once it recognizes you, the KGMID follows, and the whole of generative engine optimization gets easier because there's finally a stable "you" for AI to describe.

Frequently asked questions

What is a KGMID?

A KGMID (Knowledge Graph Machine ID) is the unique identifier Google assigns to every entity in its Knowledge Graph — people, companies, places, products. It looks like /g/11kqx7vt0_ or an /m/ code and distinguishes your entity from everything else that shares your name.

How do I find my KGMID or Google Knowledge Graph ID?

Three ways: (1) open your Knowledge Panel and use Share — the link contains a kgmid= parameter; (2) view the page source of a Google results page for your entity and search for 'kgmid' or '/g/'; (3) query the Knowledge Graph Search API and read the entity's @id. A free Knowledge Panel checker can also resolve it in about thirty seconds.

What's the difference between a KGMID and a knowledge graph ID?

They're the same thing. 'KGMID,' 'KG MID,' 'KGID,' and 'Google Knowledge Graph ID' all refer to the machine identifier Google uses for an entity in its Knowledge Graph — typically a /g/ or /m/ string.

Why does my KGMID matter for AI search?

It's the anchor for entity disambiguation. Referencing your KGMID in your schema markup (a stable @id plus sameAs) tells Google and AI engines exactly which entity your content is about, so they describe the right 'you.' It's also stable — names and URLs change, the KGMID doesn't.

What if I don't have a KGMID?

It means Google hasn't resolved you as an entity in its Knowledge Graph yet. The fix is building the entity — consistent structured data, authoritative references, and corroborating profiles. Once Google recognizes you, it assigns the KGMID automatically.

References

  1. Google — Knowledge Graph Search API
  2. Google — About Knowledge Panels
Cory Maki
About the author

Cory Maki is an AI search strategist based in Taichung, Taiwan, specializing in GEO, AI reputation management, and AI branding for SaaS founders. Author of Reddit, AI Overviews & GEO and creator of the ARC Method. Read more →