extract_spotify_id
Extract the 22-character Spotify entity ID from any URI, open.spotify.com URL, or bare reference without network calls, making the ID ready for API use.
Instructions
Extract the bare 22-char entity ID from any Spotify reference — URI, open.spotify.com URL (embed/intl forms ok), or bare ID — with zero network calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Any Spotify reference: URI, URL, or bare ID | |
| expected_kind | No | When set, the extracted kind is compared against this value |