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

# Spotify URI (`spotify_uri`)

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

Resource identifier of the Spotify app and Web API: spotify:, the kind of resource (artist, album, track, playlist, show or episode), a colon and the 22-character Spotify ID (spotify_id). The Spotify app opens such URIs directly.

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

## Detection

Regular expression (Python `re`):

```
^spotify:(?:artist|album|track|playlist|show|episode):[0-9A-Za-z]{22}$
```

## Examples

- `spotify:track:6rqhFgbbKwnb9MLmUQDhG6` — Example of the Spotify Web API documentation
- `spotify:artist:3WrFJ7ztbogyGnTHbHJFl2` — The Beatles
- `https://open.spotify.com/track/6rqhFgbbKwnb9MLmUQDhG6` (invalid example) — Web address of the same track

## Translations

- ru: URI Spotify

## Sources

- doc: <https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids>

## Quality

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

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