Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NPR Authorization API

The Authorization API from NPR — 4 operation(s) for authorization.

NPR Authorization API is one of 4 APIs that NPR publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Authorization. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 4 paths, and defines 3 schemas. It is described by OpenAPI 3.0.1, at version 2.

Requests are made against a single base URL, https://identity.api.npr.org/.

4 operations 4 paths 3 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2
Base URL
https://listening.api.npr.org/
Authentication
OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 1

NPR Authorization API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 5 scopes.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Authorization 4
POST
/v2/token
NPR Create a new OAuth2 access token
createToken body → 200400401500503
GET
/v2/authorize
NPR Show a web-based login/signup form to a user
getAuthorizationPage 7 params → 302400401500503
POST
/v2/device
NPR Initiate an OAuth2 login flow for limited input devices
generateDeviceCode body → 201400401500503
POST
/v2/token/revoke
NPR Revoke an existing OAuth2 access token
revokeToken 1 param body → 200400401403500503

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are DeviceCodeData (5 properties), AccessTokenData (4 properties), SimpleError (2 properties). Each schema is shown below with its type and property counts.

DeviceCodeData
object
5 properties 5 required
SimpleError
object
A simple representation of an error result from an API call, rarely used; in most cases we still return a Collection.doc+JSON document for errors
2 properties 2 required
AccessTokenData
object
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

npr-authorization-api-openapi.yml Raw ↑

Other APIs NPR publishes across the network.

NPR Listening
NPR Identity API
NPR Stationfinder API