Vibradio
Technology
Open Source
Deep Dive

Under the Hood: The Open API Powering Vibradio

S

Soumo Shekhar Nath

Founder, Vibratom Studios

Cover image for Under the Hood: The Open API Powering Vibradio

When you use Vibradio to browse thousands of radio stations from around the globe, you might wonder: where does all this data come from? How can we provide over 40,000 stations for free?

The answer is one of the most exciting open-source projects in the audio world: the Radio Browser API.

Vibradio is a beautifully designed "client" or interface, but the massive, underlying database of stations is provided and maintained by this incredible community-driven project. If you want to explore the entire raw database yourself, you can do so directly on their website at radio-browser.info.

Understanding how this API works reveals a lot about our own philosophy of building on open platforms.

What is the Radio Browser API?

The Radio Browser API is a free, open, and collaborative database of internet radio stations. Think of it as a "Wikipedia for radio stations." It's not owned by a single corporation. Instead, it's a community project where anyone can:

  • Add a new station: If you know of a station that isn't listed, you can submit it.
  • Tag stations: You can add tags (like "jazz," "news," or "80s") to help categorize stations.
  • Vote for stations: You can upvote your favorite stations, which helps others discover high-quality broadcasts.
  • Report broken links: The community helps keep the database clean by reporting stations that are no longer online.

How Vibradio Uses the API

Vibradio is, in essence, a powerful and user-friendly client for this open database.

  1. Fetching Stations: For performance, when you first load Vibradio, our server fetches a large list of the top stations from the Radio Browser API. This is what populates your "Explore" and "Globe" views. We cache this data to ensure the app loads quickly.
  2. On-Demand Loading: In the "Studio" tab, you can use the Data Management tools to fetch even more stations—up to 20,000 of the top-voted—directly into your app session.
  3. Real-Time Data: When you click on a station, we often fetch the very latest information for that specific station to ensure the stream URL is as fresh as possible.
  4. Community Feedback: The "votes" you see on each station come directly from the Radio Browser community. Stations with more votes are often more reliable and have better audio quality.

Why Build on an Open API?

We could have tried to build our own proprietary database of stations, but we chose to build on top of the Radio Browser API for several philosophical and practical reasons.

  • It Aligns with Our Open-Source Ethos: Just as we build on open-source libraries like React, we believe in the power of community-driven data. The Radio Browser API is a public good, and we want to support and promote it.
  • It's More Comprehensive: No single company could hope to maintain a database as vast and up-to-date as one maintained by a global community of thousands of passionate users.
  • It Keeps Us Focused: By relying on the Radio Browser API for data, we can focus on what we do best: building a beautiful, fast, and intuitive user experience. We can pour our energy into creating features like the 3D Globe and Studio Mode, rather than on data collection.

Vibradio is a testament to the power of open collaboration. It's a combination of our design and engineering with the incredible data curated by a worldwide community of radio lovers. Every time you discover a new station on Vibradio, you are benefiting from this amazing open-source project.