Npr

NPR Station Finder Service

Allows clients to look up NPR member station information

Media & content#openapi#entertainment

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Allows clients to look up NPR member station information

Endpoints 2

stationfinder

  • GETList stations close to you or filter by search criteria/v3/stations?q=string&city=string&state=string&lat=0.0&lon=0.0This 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…
  • GETRetrieve metadata for the station with the given numeric ID/v3/stations/:stationIdThis 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…

API details

Base URL
https://station.api.npr.org
Authentication
OAuth 2.0 (authorization code flow) with 5 scopes
Operations
2 operations on 2 pathsGET 2
Main resources
stationfinder 2
Response formats
application/json application/vnd.collection.doc+json
Description format
Swagger 2.0, API version 3
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the NPR Station Finder Service in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the NPR Station Finder Service collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 5 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “List stations close to you or filter by search criteria” (GET /v3/stations?q=string&city=string&state=string&lat=0.0&lon=0.0), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the NPR Station Finder Service?

Allows clients to look up NPR member station information It is listed under Media & content and has 2 endpoints.

Who publishes the NPR Station Finder Service?

It is listed from Npr's public API description (an OpenAPI document), not published by Npr on Swastik Codes. Anyone who controls npr.org can claim the profile by adding a DNS TXT record.

What is the base URL of the NPR Station Finder Service?

Requests go to https://station.api.npr.org. Endpoint paths are added to this base URL.

How do I authenticate with the NPR Station Finder Service?

With OAuth 2.0 (authorization code flow) with 5 scopes.

How many endpoints does the NPR Station Finder Service have?

2 operations on 2 paths (2 GET). The largest groups are stationfinder.

Is forking the NPR Station Finder Service free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.