Music Tracks
Music Tracks
Event Kind
36787: Music Track (addressable)
Music Track Event
A music track is an addressable event containing metadata about an audio file.
Format
The .content field MAY contain lyrics and production credits in plain text or Markdown.
Tags
Required:
d- Unique identifier for this tracktitle- Track titleartist- Artist nameurl- Direct URL to the audio filet- At least one tag with value"music"
Optional:
alt- Human-readable description (NIP-31)image- URL to album artworkvideo- URL to music video filealbum- Album nametrack_number- Position in albumreleased- ISO 8601 date (YYYY-MM-DD)t- Additional genre/category tagslanguage- ISO 639-1 language codeexplicit- Set to"true"for explicit contentduration- Track length in secondsformat- Audio format (mp3, flac, m4a, ogg)bitrate- Audio bitrate (e.g., “320kbps”)sample_rate- Sample rate in Hzzap- Lightning address for zap splits (multiple allowed, see Zap Splits)
Example
{
"kind": 36787,
"content": "Lyrics:\n[Verse 1]\n...\n\nCredits:\nProducer: John Doe",
"tags": [
["d", "summer-nights-2024"],
["title", "Summer Nights"],
["url", "https://cdn.blossom.example/audio/abc123.mp3"],
["image", "https://cdn.blossom.example/img/artwork.jpg"],
["video", "https://cdn.blossom.example/video/abc123.mp4"],
["artist", "The Midnight Collective"],
["album", "Endless Summer"],
["track_number", "3"],
["released", "2024-06-15"],
["duration", "245"],
["format", "mp3"],
["t", "music"],
["t", "electronic"],
["alt", "Music track: Summer Nights by The Midnight Collective"]
]
}
Implementation Notes
- Audio files SHOULD be hosted on Blossom servers for permanence
- Video files (music videos) MAY be hosted on Blossom servers or other permanent storage
- Tracks are updatable (addressable events)
- When no
zaptag is present, use author’s profile Lightning address - Clients MAY auto-detect technical metadata (duration, format, bitrate)
- Clients MAY choose to display video when available, or default to audio-only playback
- Tracks support NIP-25 reactions and NIP-22 comments
- Use
naddridentifiers to link to tracks
Looking for comments…
Searching Nostr relays. This may take a moment the first time this article is opened.
No comments yet.
Quotes and references
quote
Derek Ross
⋯
It’s what
Karnage created a while back and what several Nostr music sites are now using.
https://nostrhub.io/naddr1qvzqqqrcvypzqx78pgq53vlnzmdr8l3u38eru0n3438lnxqz0mr39wg9e5j0dfq3qy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsqrrdw4ekjcedw3exzcmtwvyh04pf
https://nostrhub.io/naddr1qvzqqqrcvypzqx78pgq53vlnzmdr8l3u38eru0n3438lnxqz0mr39wg9e5j0dfq3qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqq0d46hx6tr94cxccted35hxarnt2ludp
reference
Iggy
⋯
quote
Derek Ross
⋯
Yep! These are the only two apps that support it as of now. I’m going to add support to ZapTrax over the holidays. Here are the NIPs:
https://nostrhub.io/naddr1qvzqqqrcvypzqx78pgq53vlnzmdr8l3u38eru0n3438lnxqz0mr39wg9e5j0dfq3qy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsqrrdw4ekjcedw3exzcmtwvyh04pf
https://nostrhub.io/naddr1qvzqqqrcvypzqx78pgq53vlnzmdr8l3u38eru0n3438lnxqz0mr39wg9e5j0dfq3qy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsqrmdw4ekjcedwpkxz7tvd9ehgucqxlr5t