Radio 2.0 Station Manifest #

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 2119 and RFC 8174 when, and only when, they appear in all capitals.

1. Overview #

A live station publishes one JSON document, the manifest: who the station is, how to hear it, where its live events and schedule are, how to reach it and how to support it. Players and directories find the manifest from a stream URL or a homepage (section 3), check that the station really publishes it (section 4), and follow the station by its guid when its streams or hosts change.

Terms: a publisher serves manifests and events; a consumer reads them (a player, an app or a directory); a directory is a consumer that lists many stations.

ICY metadata and the Icecast and SHOUTcast protocols stay as they are. The manifest adds to them; nothing here asks a publisher to change what existing players receive.

2. The manifest #

2.1 Format #

2.2 Root members #

Member Type Req. Meaning
specVersion string REQUIRED "0.2".
guid UUID string REQUIRED The station's permanent identity (section 4.1). Lower-case canonical form.
manifestUrl URL REQUIRED The canonical address of this manifest (section 4.2).
locked boolean OPTIONAL Default false. true asks directories never to move the station to a new owner automatically (section 4.4).
name string REQUIRED 1 to 120 characters.
tagline string OPTIONAL Up to 160 characters.
description string RECOMMENDED Up to 4000 characters.
homepage URL REQUIRED The station's own web page; the anchor of ownership (section 4.3).
language string REQUIRED BCP 47 tag of the main broadcast language; und when unknown.
country string OPTIONAL ISO 3166-1 alpha-2, upper case.
location object OPTIONAL city, region (each up to 80 characters).
genres string[] OPTIONAL Up to 10 distinct tags of up to 40 characters; lower case RECOMMENDED.
branding object RECOMMENDED Section 2.3.
streams Stream[] REQUIRED 1 to 32 audio streams (section 2.4).
broadcast object OPTIONAL Whether and how the station is on the air (section 2.6). Absent means not stated.
events object OPTIONAL Live event addresses (section 5).
schedule object OPTIONAL Section 6.
contact object OPTIONAL Section 7.
value object OPTIONAL Listener support (section 8).
videoStreams VideoStream[] OPTIONAL Visual radio (section 9).
extensions object OPTIONAL Publisher-specific members, keyed by a reverse domain name or a URL the publisher controls.

2.3 Branding #

logo (square, at least 512 by 512, PNG, JPEG, WebP or SVG; RECOMMENDED), icon (square, 32 to 64 pixels), banner (16:9, at least 1280 by 720), themeColor (#RRGGBB). All OPTIONAL; images are absolute URLs.

2.4 Streams #

Member Type Req. Meaning
id string REQUIRED Unique within the manifest; [A-Za-z0-9._-], 1 to 64 characters; stable across manifest versions.
url URL REQUIRED Where a player opens the stream.
mimeType string REQUIRED For example audio/mpeg, audio/aac, audio/ogg; codecs=opus, audio/flac, application/vnd.apple.mpegurl.
protocol string RECOMMENDED icecast (ICY-capable HTTP), http (plain progressive HTTP), hls or ll-hls.
bitrate integer RECOMMENDED Nominal kbit/s.
sampleRate integer OPTIONAL Hz.
channels integer OPTIONAL 1 to 8.
typicalDelayMs integer RECOMMENDED Typical time, in milliseconds, from an item's startedAt (section 5.3) to the moment a listener who has just connected with default buffering hears it.
default boolean OPTIONAL The stream a player opens first.
carries string[] RECOMMENDED What the stream carries: the ids of the transmissions it is the feed of, or ["web"] for an internet-only stream (section 2.6). Absent means not stated.

Exactly one stream SHOULD set default: true. A consumer that finds none MUST treat the first stream as the default; one that finds several MUST keep the first and ignore the others' flag. A consumer SHOULD try the next stream that it can play when the default fails.

All streams in one manifest carry the same programme: the same audio in different formats, bitrates or transports, for example Opus at 64 kbit/s, AAC at 96 kbit/s, MP3 at 128 kbit/s and an HLS playlist (which may itself hold several bitrates and counts as one stream). A different programme, such as a sister channel, an HD2 sub-channel with its own programming, or an AM and an FM service that share a brand but not their programming, is a different station with its own manifest and guid; one manifest has one set of events, one schedule and one value, so it cannot describe two programmes.

Publishers SHOULD list streams in their order of preference. A consumer SHOULD open the default stream when it can play it. Otherwise, or when it chooses for its own needs (bandwidth, battery, codec support), it SHOULD take the first stream in list order whose mimeType it can decode and whose bitrate suits its connection.

2.5 Normalisation #

A consumer that keeps or passes on a manifest SHOULD store it normalised, so every reader sees the same values: set default on exactly one stream and on exactly one video stream by the rule above, and write events.pollInterval as 15 when it is absent. Normalisation changes nothing else.

2.6 Over the air #

broadcast says whether the station is on the air, on which services, and what each stream carries, so a directory can show "102.7 FM WXYZ" or "Web only" next to each stream and filter stations without guessing.

Per stream. streams[].carries is the primary statement. A stream carries a transmission when it is that transmission's programme feed, as its listeners hear it, apart from ad breaks or rights blackouts that differ on the internet. One stream may carry several transmissions of the same programme (an FM signal and its HD1, an FM and an AM simulcast). ["web"] means the stream is not the feed of any listed transmission. web MUST NOT be combined with transmission ids, and every id MUST name a transmission of this manifest; web is reserved and MUST NOT be a transmission id.

Which wins. A consumer labels each stream from its own carries, and treats the station as on the air when any stream carries a listed transmission, even if mode says web_only. Otherwise mode gives the station-level answer; without broadcast it is unknown. A validator reports any such disagreement as an error. A consumer ignores carries values that name no transmission.

Transmission. id (REQUIRED, as stream ids) and band (REQUIRED). Members a band does not list below MUST NOT appear; a validator reports them.

band Service Required Range Also allowed
fm FM, analog VHF frequencyMhz 64 to 108 MHz rds, ecc
am AM on medium wave frequencyKhz 520 to 1710 kHz
lw AM on long wave frequencyKhz 148 to 284 kHz
sw AM on short wave frequencyKhz 2300 to 26100 kHz
hd_fm, hd_am HD Radio on an FM or AM host frequencyMhz (FM, 87.5 to 108) or frequencyKhz (AM, 520 to 1710), subchannel 1 to 8
dab, dab_plus DAB, DAB+ block, for example 12B Band III 5A to 13F, L-band LA to LW serviceId, ensembleId, ecc
drm DRM below 30 MHz frequencyKhz 148 to 30000 kHz
drm_plus DRM+ in VHF frequencyMhz 47 to 230 MHz
satellite, cable, dtv Satellite radio, cable audio, a TV multiplex's audio service channel (as the provider numbers it, for example 23 or 7.3) provider, for example SiriusXM

The unit is in the member's name, so a frequency is never ambiguous. The ranges span the world's allocations (for example FM from the OIRT band and Japan's 76 MHz to 108 MHz); a national plan may be narrower.

Every band also allows:

Labels. A directory SHOULD label a transmission as: fm "102.7 FM", am "1060 AM", lw "198 kHz LW", sw "9410 kHz SW", hd_fm "102.7 HD2", hd_am "1060 HD1", dab "DAB 12B", dab_plus "DAB+ 12B", drm "DRM 3965 kHz", drm_plus "DRM+ 87.6 MHz", and satellite, cable or dtv as the provider and channel ("SiriusXM 23"), followed by the call sign or, without one, the licensed name. MHz values are written with at least one decimal.

Regulator identifiers. Each is {authority, kind, id}. authority is the regulator's country code (ISO 3166-1 alpha-2, lower case; int for international bodies), a dot and its usual short name, for example us.fcc, gb.ofcom, ca.crtc, ca.ised, mx.ift, au.acma. kind (OPTIONAL, lower case with _) names the identifier where an authority issues several, for example facility_id or licence. The list is open: no registry is needed to use a new authority.

Cross-checking (informative). A directory may look up a regulator identifier, call sign, PI code or service id in the authority's public records and compare the frequency, call sign, community served and licensee with the manifest, and flag a mismatch. Such records are public, so a match does not prove who publishes the manifest; ownership still rests on the homepage origin (section 4.3). This version sets no rules for such lookups.

3. Discovery #

A publisher MUST offer at least one of the following and SHOULD offer all that its hosting allows.

  1. Well-known address. GET https://<homepage host>/.well-known/radio-manifest.json answers the manifest (or redirects to it with 301, 302, 307 or 308).
  2. HTML link. The homepage carries, in its <head>: <link rel="alternate" type="application/radio-manifest+json" href="<manifestUrl>">
  3. HTTP Link header on every stream response (also on HEAD, and on HLS playlists): Link: <manifestUrl>; rel="radio-manifest"; type="application/radio-manifest+json" This reaches players that only know a stream URL, including streams already listed in old directories. A relative reference resolves against the stream URL (RFC 8288).

A consumer that has a stream URL SHOULD look for the Link header first. It SHOULD send HEAD first; when that fails or carries no Link, it SHOULD send one GET with Range: bytes=0-0 and Icy-Metadata: 0, read only the response headers and close the connection (live streams often ignore Range). A publisher MUST send the Link header on both. When there is none and the stream sends an icy-url header with an http or https URL, the consumer MAY take that URL as a homepage.

A consumer that has a homepage SHOULD read the HTML link and then try the well-known address. When the two disagree, the HTML link of the homepage wins. When the linked manifest cannot be used (a network failure, a status other than 200, or a document that does not parse), the consumer SHOULD try the well-known address next; it MUST NOT do so after a refusal under section 10.2 or a guid mismatch under section 4.2, which end discovery.

Discovery does not confer trust: whatever way a manifest is found, the consumer applies section 4.

4. Identity, ownership and moves #

4.1 guid #

The guid is a UUID (RFC 9562) created once, when the station first publishes, and never changed: not when the station renames itself, changes hosts, streams or software. A random (version 4) or name-based (version 5) UUID MAY be used. A station that moves to new software MUST carry its guid over.

A publisher MUST create a new guid for each station and MUST NOT copy one from an example or from another station. The guids in this document and its examples/ are for documentation only: 9b2f6c1e-4d3a-5b8e-9f10-2a6c7d8e9f01, 3f0c9a52-7e1b-5d24-8c6a-0b9e4f2d7a13, 6d1e2f30-8a4b-5c6d-9e7f-1a2b3c4d5e6f and 0e9d8c7b-6a5f-4e3d-8c2b-1a0f9e8d7c6b. Validators MAY warn when a manifest uses one of them, and directories SHOULD NOT list a station under one.

Informative. Two stations do not end up with the same guid by chance: a version 4 UUID has 122 random bits, so even a billion stations would collide with a probability of about one in ten billion billion. A shared guid therefore means a copy, by mistake or on purpose. The guid is not a secret and gives no control over a listing: anyone can read it in a published manifest, and a directory accepts a manifest only under the verification and move rules of sections 4.3 and 4.4, which rest on the homepage origin.

4.2 manifestUrl #

A publisher MAY serve the same manifest at several addresses, but manifestUrl names one. A consumer that fetched the manifest from another address MUST fetch manifestUrl and use that copy; if the two differ in guid, it MUST discard both. The fetched address is the final one after redirects.

Wherever this document compares two URLs (here, in section 4.3 and in section 4.4), they are equal when, after parsing (RFC 3986), the scheme and host match without regard to case, the ports match (a missing port equals the scheme's default, 443 or 80), the paths match exactly (an empty path equals /; case and percent-encoding are not normalised), and the queries match exactly. Fragments are ignored.

4.3 Verification #

A manifest is verified when both hold:

A development-tier manifest (section 10.2) is never verified. A consumer MAY still apply the first condition to it and report that it passed, so publishers can test their setup before going public.

The origin is the unit of trust: whoever controls the homepage's origin controls the station's manifest. Directories SHOULD show unverified manifests as unverified, or not list them. A publisher hosting many stations on one origin MUST NOT serve the well-known address for more than one of them.

4.4 Moves and claims #

A directory keeps, per guid, the verified manifestUrl and homepage origin it last accepted. When it meets a verified manifest with a known guid at a different manifestUrl:

When a directory refuses a verified manifest because its guid already belongs to another station (a different homepage origin and no move proof under the rules above), it SHOULD tell the submitter plainly that the guid is taken by another station and that each station must create its own. An API that takes submissions SHOULD answer with the error code guid_taken. It MUST NOT reveal anything about the other station beyond what that station's own manifest publishes.

A manifest that is temporarily unavailable SHOULD be answered with 503 and Retry-After. Consumers MUST NOT treat 503 or a network failure as removal; 404 and 410 mean the station no longer publishes at that address.

5. Live events #

5.1 Transport #

events.sse is a Server-Sent Events stream (text/event-stream); events.poll answers the latest now_playing event as a JSON document. When events is present, both MUST work. events.pollInterval (seconds, 5 to 300, default 15) is how often a polling consumer SHOULD ask; it MUST NOT ask more often than every 5 seconds.

Every event is a JSON object valid against schema/event.schema.json, no larger than 64 KiB, sent as one SSE message whose event field equals the object's type and whose id field equals its id. URLs inside events MAY be relative; they resolve against the address the event came from.

5.2 Common members #

5.3 Event types #

Type Members When
now_playing item, live, show (object or null); OPTIONAL onAir (default true), listeners, value On every change of the item, the show, live state or on-air state. Carries the whole current state.
show_change show (object or null) The show changed without a change of live state.
live_start show (object or null) A live programme began.
live_end none The live programme ended.
schedule_change none The schedule changed; consumers that show it SHOULD fetch it again.
value_change value (object or null) A support override for the current item (section 8.2).
heartbeat none (no id) Keeps the stream alive (section 5.4).

item: kind (song, live, break, station or other; REQUIRED), title (REQUIRED), artists (names), album, year, artwork (URL), isrc, url, startedAt (REQUIRED), durationMs (integer or null when unknown). show: title (REQUIRED), presenters (names), startsAt, endsAt, url.

show_change, live_start and live_end MUST be sent immediately before the now_playing that reflects the change, so a consumer that handles only now_playing still has the full state. Publishers MUST NOT announce items that have not started: there is no "next" in this version.

listeners is OPTIONAL. A publisher that does not show its listener count elsewhere MUST leave it out.

5.4 Timing #

5.5 Resume #

A reconnecting consumer sends the last id it received in Last-Event-ID. The publisher MUST then either send every event after that id that it still holds, or send the current state as one now_playing event. When the id is the newest the publisher has, it MAY send nothing until the next change. A consumer MUST treat any now_playing as the complete current state.

5.6 Poll fallback #

events.poll answers the same JSON object as the latest now_playing event, with an ETag that changes when the event does, and honours If-None-Match with 304.

6. Schedule #

schedule.timeZone (an IANA zone name) is REQUIRED when schedule is present, with at least one of:

7. Contact #

All members are OPTIONAL and opt-in: a publisher MUST NOT fill them from account or billing data, and MUST publish only what the station chose to make public. email, phone (E.164 RECOMMENDED), whatsapp, requestsUrl (a page for song requests or shout-outs), address and social.

address is a postal address: OPTIONAL label (up to 60 characters, for example "Studio"), street (up to 300 characters, lines separated by \n), locality (the city or town), region, postalCode and country (ISO 3166-1 alpha-2). When address is present it MUST have at least one of street, locality or country. The address is for display and contact only: consumers MUST NOT use it to rank stations by location or to verify them. The places a station serves are the area of its transmissions (section 2.6); its home is location (section 2.2).

social lists up to 30 pages as {platform, label, url}; only url is REQUIRED. platform is a lower-case token matching ^[a-z0-9_]{1,30}$. These tokens are RECOMMENDED: facebook, instagram, x, threads, tiktok, youtube, bluesky, mastodon, linkedin, snapchat, telegram, whatsapp_channel, discord, twitch, spotify, apple_podcasts, soundcloud, mixcloud, website and other. Other tokens are allowed so new platforms need no new version. Players and directories SHOULD show a platform's own name and icon when they know the token; otherwise they show label, and without one the host of url.

8. Listener support (value for value) #

8.1 The value block #

value follows the Podcasting 2.0 <podcast:value> and <podcast:valueRecipient> tags, in JSON, so apps that already pay podcasts can pay stations:

8.2 Live overrides #

An item-level value replaces the manifest's value, as an item's value replaces a channel's in Podcasting 2.0. It arrives in now_playing.value or in a value_change after it, and applies until the next now_playing. A now_playing without value restores the manifest's value; a value_change with value: null does so at once. A publisher that wants an override to last a whole show repeats it with each now_playing.

8.3 Non-custodial #

Payments go from the listener's wallet straight to each recipient. This standard defines no payment flow through a publisher, a directory or a player, and none of them may receive, hold or forward a payment for someone else under it; an intermediary that takes a share MUST appear as its own recipient with fee: true. A publisher MUST list only addresses their owners gave for this purpose.

9. Visual radio (optional, delivery deferred) #

videoStreams lists video for stations that have it: id, url, mimeType, protocol (whep, ll-hls, hls; REQUIRED), and OPTIONAL kind (studio_camera, visualizer, screen), width, height, frameRate, syncStreamId (the audio stream it is timed with), typicalDelayMs, default. default follows the rule of section 2.4 among the video streams. A syncStreamId that names no stream in streams is an error for a validator; a consumer ignores it and plays the video unsynchronised. whep means the WebRTC-HTTP Egress Protocol, still an IETF draft (draft-ietf-wish-whep); ll-hls means Low-Latency HLS as described in draft-pantos-hls-rfc8216bis. This version sets no delivery or synchronisation rules; a consumer MAY ignore videoStreams, and nothing else in this document depends on it.

10. Caching and security #

10.1 Caching #

10.2 Security tiers #

11. Open issues for this draft #

12. Conformance checklist #

Publisher: manifest

Publisher: events (when events is present)

Consumer

Appendices #