extract_spotify_id
Extract a bare 22-character Spotify entity ID from any URI, URL, or bare ID without network calls.
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 |