---
id: "google_api_key"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/google_api_key"
---

# Google API key (`google_api_key`)

> **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.

API key for Google Cloud and Google Maps APIs: the prefix AIza followed by 35 letters, digits, hyphens or underscores.

- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^AIza[0-9A-Za-z_-]{35}$
```

## Mappings

- purview: `Google API key`, `All Credential Types`, `All credentials`

## Supported by tools

- `amazonmacie`
- `gitleaks`
- `microsoftpurview`
- `nightfall`
- `semgrep`
- `trufflehog`

## Sources

- doc: <https://learn.microsoft.com/en-us/purview/sit-defn-google-api-key>
- doc: <https://cloud.google.com/docs/authentication/api-keys>

## Quality

Score 75/100. Missing: examples, negative example, translation.

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