---
id: "spotify_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["media"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/spotify_id"
---

# Spotify ID (`spotify_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.

Base-62 identifier of a Spotify resource, such as an artist, album, track, playlist, show or episode: 22 letters and digits. It is the last part of a Spotify URI (spotify_uri) and of an open.spotify.com address. The ID does not tell the kind of resource; the records spotify_artist_id, spotify_album_id and spotify_track_id name one kind.

- Personal data (PII): no
- Categories: Media and entertainment (media)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9A-Za-z]{22}$
```

## Examples

- `6rqhFgbbKwnb9MLmUQDhG6` — Track ID from the Spotify Web API documentation
- `3WrFJ7ztbogyGnTHbHJFl2` — The Beatles (artist)
- `spotify:track:6rqhFgbbKwnb9MLmUQDhG6` (invalid example) — Spotify URI (spotify_uri)

## Translations

- ru: Идентификатор Spotify

## Sources

- doc: <https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids>
- wikipedia: <https://en.wikipedia.org/wiki/Spotify>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

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