API Documentation
Complete reference for integrating Nepal's radio station data into your applications.
Quick Start
All data is available as static JSON files. No API keys required. Simply fetch the data directly:
// Fetch all stations
fetch('https://shubhamnpk.github.io/yoradio-api/data/index.json')
.then(res => res.json())
.then(stations => console.log(stations));
Data Endpoints
JSON
/data/index.json
Complete database of all radio stations (400+ stations).
Response Schema
[
{
"id": "radio-kantipur-96.1",
"name": "Radio Kantipur",
"streamUrl": "https://radio-broadcast.ekantipur.com/stream",
"frequency": 96.1,
"address": "Subidhanagar, Tinkune, Kathmandu",
"province": 3,
"status": "active"
}
]
Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the station |
| name | string | Station name |
| streamUrl | string | Direct streaming URL |
| frequency | number | null | FM frequency in MHz |
| address | string | Station location/address |
| province | number | Province code (1-7) |
| status | string | active | inactive |
Province Codes
1
Koshi Province
Eastern Nepal
2
Madhesh Province
Terai Region
3
Bagmati Province
Kathmandu Valley
4
Gandaki Province
Western Central
5
Lumbini Province
Birthplace of Buddha
6
Karnali Province
Remote Western
7
Sudurpashchim
Far Western
Code Examples
Filter by Province
async function getBagmatiStations() {
const response = await fetch('data/index.json');
const stations = await response.json();
return stations.filter(station => station.province === 3);
}
Search Stations
function searchStations(stations, query) {
const lowerQuery = query.toLowerCase();
return stations.filter(station =>
station.name.toLowerCase().includes(lowerQuery) ||
(station.address && station.address.toLowerCase().includes(lowerQuery))
);
}