📻NATradioRadios del MundoESOpen NATradio

How NATradio works

The technology behind NATradio: station directory, live playback, relays and country detection.

NATradio is a web application that runs in your browser. This page explains, without needless jargon, what happens when you open the site and tap a station.

In short

  • The directory of stations is Radio Browser, open and community-run; podcasts come from Apple's public search.
  • The audio goes from each station's server to your browser. NATradio does not host or record it.
  • Your data (favorites, history, settings) stays on your device.
  • Your country is detected automatically and you can change it any time.

1. When you open the site

  • Your browser downloads the interface (HTML, CSS and JavaScript) from our server. It is then cached so the site opens faster and can work as an installable app (PWA).
  • We detect your country to show you the nearest stations. First we query public IP-geolocation services; if they do not answer we use your time zone and, as a last resort, your browser language. The result is stored on your device for one day. If you choose a country manually, it is always respected.
  • We choose the interface language from your country and browser language (39 languages available).

2. The station directory

The station list comes from the open directory Radio Browser. Your browser queries it directly (searches, countries, genres) and results are sorted by popularity. We do not store that list: it is requested on the fly and cached locally for a while to be faster.

3. When you tap a station

  1. We take the stream address that the station itself publishes.
  2. If the address uses https, the browser plays it directly: audio travels from the station to you without passing through NATradio.
  3. If it uses http (unencrypted), browsers block it inside a secure page. In that case we first try the https version of the same address; if it does not exist we use a relay on our server that rebroadcasts audio only, with usage and duration limits to prevent abuse.
  4. While it plays we show name, logo and, when the station sends it, the current song title. The same information appears in your system media controls (keys, lock screen) thanks to the Media Session API.

4. Podcasts

Search uses Apple's public Podcasts API. Episodes are read from each podcast's RSS feed; because many servers do not allow reading them from another page, we request them through our own proxy, which only accepts requests from NATradio, only returns text/JSON/XML and blocks private-network addresses. Episode audio plays directly from the author's server.

5. What is stored and where

  • On your device: favorites, history, settings, theme, language and chosen country (browser local storage). Details in the Cookies.
  • On our server: anonymous counters (visits, plays and most-listened stations, with no personal data) and the messages you send through the contact form. Details in the Privacy.

6. Ad detection: web and app

The Android app analyzes audio on your own phone to recognize when a station switches to talk or ads and, if you enable it, skip to another station. Browsers do not allow analyzing audio from other servers' stations, so this feature only exists in the app. The analysis happens on the device; audio is never sent to any server. See Get the app.

7. The Android app

The app uses the same interface (in 15 languages) and adds a native playback service (with a media notification) so the radio keeps playing with the screen off, plus alarms, the sleep timer, the equalizer and the shake-to-change feature. It works on Android 8.0 or later. See Get the app.

8. Web technologies we use

  • HTML5 Audio to play the stream and Media Session for the system controls.
  • Service Worker and web manifest (PWA) to open fast and install the web as an app.
  • Browser local storage for favorites, settings and list cache.

9. Technical limitations

  • Some stations change or remove their address without notice; if one does not play, try another or report it in Suggest a station.
  • Some streams only work in certain countries or use formats the browser does not support.
  • The relay has concurrency limits: at busy times it may reject new connections.