Npr Listening
Connector for the npr-listening API, generated deterministically from its OpenAPI spec (endpoints, auth, and methods match the spec exactly — nothing is invented).
- Base URL:
https://listening.api.npr.org - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
getaggrecommendations— GET /v2/aggregation/{aggId}/recommendations — Get a set of recommendations for an aggregation independent of the user's listening historygetchannels— GET /v2/channels — Get the list of available channelsgethistory— GET /v2/history — Get recent ratings the logged-in user has submittedgetorganizationcategory— GET /v2/organizations/{orgId}/categories/{category}/recommendations — Get a list of recommendations from a category of content from an organizationgetorganizationoverview— GET /v2/organizations/{orgId}/recommendations — Get a variety of details about an organization including various lists of recent audio itemsgetpromo— GET /v2/promo/recommendations — Retrieve the most recent promo audio heard by the logged-in user
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: getaggrecommendations
# (attach an 'oauth' credential to the task — no inline secrets)