# NPR Authorization Service API

> NPR Authorization Service API on Apizie: 3 endpoints (Initiate an OAuth2 login flow for limited input devices, Create a new OAuth2 access token, Revoke an existing OAuth2 access token) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/entertainment:npr-authorization/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `entertainment:npr-authorization`
- Category: Entertainment
- Status: byok
- Source: https://dev.npr.org
- Page: https://apizie.tech/api/entertainment/npr-authorization
- OpenAPI: https://apizie.tech/api/entertainment/npr-authorization/openapi.json

The interface to our OAuth2 server

## Endpoints

### Initiate an OAuth2 login flow for limited input devices
`POST https://apizie.tech/v1/entertainment:npr-authorization/generate-device-code` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Create a new OAuth2 access token
`POST https://apizie.tech/v1/entertainment:npr-authorization/create-token` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

### Revoke an existing OAuth2 access token
`POST https://apizie.tech/v1/entertainment:npr-authorization/revoke-token` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | yes | Form fields as a JSON object |

## Example
```
curl "https://apizie.tech/v1/entertainment:npr-authorization/generate-device-code" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the NPR Authorization Service API?
Create a free Apizie key, then send POST https://apizie.tech/v1/entertainment:npr-authorization/generate-device-code with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the NPR Authorization Service API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. NPR Authorization Service itself also needs your own key from npr.org.

### Can AI agents use the NPR Authorization Service API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key entertainment:npr-authorization.

### What is the status of the NPR Authorization Service API?
Needs your own provider key (bring your own key)
