---
id: "google_kg_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["objectids"]
langs: ["common"]
quality: 73
url: "http://registry.apicrafter.io/datatype/google_kg_id"
---

# Google Knowledge Graph ID (`google_kg_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of an entity in the Google Knowledge Graph that did not come from Freebase: /g/ followed by letters and digits. Entities that came from Freebase keep their /m/ identifiers.

- Personal data (PII): no
- Categories: Objects identifiers (objectids)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^/g/1(?:[1258dhjnpqrstvwxyz][0-9b-df-hj-np-tv-z_]{6,8}|3b[013-9b-df-hj-np-tv-z_]{4}|3z[2356gmpqwz_]{6})$
```

## Examples

- `/g/11bwcf511s` — Alphabet Inc.

## Mappings

- wikidata: `P2671`

## Sources

- doc: <https://developers.google.com/knowledge-graph>
- wikidata: <https://www.wikidata.org/wiki/Property:P2671>

## Quality

Score 73/100. Missing: second example, negative example, translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/google_kg_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/objectids/google_kg_id.yaml>
