NPR Station Finder Service
npr · Media
Allows clients to look up NPR member station information
Authentication
Sample Requests
This endpoint has two main use cases: - If no query parameters passed in, it returns a list of stations that are geographically closest to the calling client (based on GeoIP information) - If one or more query parameters are passed in, it performs a search of NPR stations that match those search cr
Hover any highlighted part to learn what it does
| Authorization | example |
curl -X GET "https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations?q=test&lat=51.5074&lon=-0.1278&city=London&state=example" \ -H "Authorization: example"
import requests
params = {
"q": "test",
"lat": "51.5074",
"lon": "-0.1278",
"city": "London",
"state": "example"
}
headers = {
"Authorization": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations');
url.searchParams.set('q', 'test');
url.searchParams.set('lat', '51.5074');
url.searchParams.set('lon', '-0.1278');
url.searchParams.set('city', 'London');
url.searchParams.set('state', 'example');
const response = await fetch(url, {
headers: {
'Authorization': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations")
q := baseURL.Query()
q.Set("q", "test")
q.Set("lat", "51.5074")
q.Set("lon", "-0.1278")
q.Set("city", "London")
q.Set("state", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations")
uri.query = URI.encode_www_form({
"q" => "test",
"lat" => "51.5074",
"lon" => "-0.1278",
"city" => "London",
"state" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations?" . http_build_query([
"q" => "test",
"lat" => "51.5074",
"lon" => "-0.1278",
"city" => "London",
"state" => "example"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This endpoint retrieves information about a given station, based on its numeric ID, which is consistent across all of NPR's APIs. A typical use case for this data is for clients who want to create a dropdown menu, modal/pop-up or dedicated page displaying more information about the station the clie
Hover any highlighted part to learn what it does
| Authorization | example |
curl -X GET "https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}" \
-H "Authorization: example"import requests
headers = {
"Authorization": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}';
const response = await fetch(url, {
headers: {
'Authorization': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}"
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("Authorization", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/npr.org/station-finder/3/v3/stations/{stationId}";
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"Authorization: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with NPR Station Finder Service?
NPR Station Finder Service is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. NPR Station Finder Service is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide