Schema markup generator tool by Marco Ilardi

Schema.org without a kgmid: is it a problem?

A kgmid is the identifier Google gives an entity in its Knowledge Graph. Learn when your markup needs it, how to find it and how to add it.
Illustration of a key and chain link connecting two nodes

Many guides about schema.org markup mention the kgmid. It is short for Knowledge Graph machine ID, the identifier Google assigns to an entity in its Knowledge Graph. It looks like a short code that starts with /g/ or /m/. This article explains what it is for, whether your markup can live without it and how to add it when you have one.

Is a schema without a kgmid a problem?

No. Schema markup works without a kgmid, and most websites do not have one because their brand is not yet in the Knowledge Graph. The identifier is not a requirement for any rich result. What it adds is an explicit link: it tells Google that the entity on your page is exactly the one it already knows, which removes doubt when the name is shared with other entities.

When it becomes useful

  • Your brand or name is already shown in a Knowledge Panel and you want your markup to point to it.
  • Your name is common, or identical to another entity, and you need to avoid confusion.
  • You are building linked schemas for a person, a company and a book and want each to reference the right entity.

How to find your kgmid

  1. Search for the entity on Google and open its Knowledge Panel, if one exists.
  2. Look at the address of the search results page, or at the link behind the panel, for a parameter called kgmid.
  3. Alternatively, query Google’s Knowledge Graph Search API with the name of the entity, which returns the identifier of each match.

If no panel and no API result exist, the entity is not in the graph yet. In that case, work on the signals described in why your brand has no Google Knowledge Panel.

How to add it to your markup

The usual practice is to add the Knowledge Graph address of the entity to the sameAs property, next to your official profiles. In our generators, the Knowledge Panel identifier field of the Organization and Person forms is meant for this value. Validate the result afterwards with the schema markup validator.

Sviluppato con Micro WP da Micropedia