NPR API endpoint
Returns an NPR article by canonical `url` in the form `https://www.npr.org/YYYY/MM/DD/...`: title, description, section, authors, lead image, publication and update times, and body `paragraphs`. Tracking query strings and fragments are ignored; other hosts, encoded paths and non-article paths are rejected.
/npr/articleReturns public NPR article metadata plus body paragraphs.
| Field | In the sample | Value in the sample |
|---|---|---|
| url | Has a value | npr.org |
| title | Has a value | 65 characters |
| description | Has a value | 195 characters |
| published_at | Has a value | 2026-09-20 |
| updated_at | Has a value | 2026-09-21 |
| section | Has a value | “Immigration” |
| authors | Has a value | 1 entry |
| image_url | Has a value | npr.brightspotcdn.com |
| paragraphs | Has a value | 20 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical www.npr.org article URL | https://www.npr.org/2026/09/19/nx-s1-5974980/saudi-arabia-houthis-attempted-attack-capital | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/npr/article?url=https%3A%2F%2Fwww.npr.org%2F2026%2F09%2F19%2Fnx-s1-5974980%2Fsaudi-arabia-houthis-attempted-attack-capital" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"url": "https://www.npr.org/2026/09/19/example-story",
"title": "Example NPR story",
"description": "A short dek for the story.",
"published_at": "2026-09-19T12:00:00Z",
"updated_at": "2026-09-19T13:00:00Z",
"section": "Politics",
"authors": [
"Example Reporter"
],
"image_url": "https://media.npr.org/example.jpg",
"paragraphs": [
"First paragraph of the story.",
"Second paragraph of the story."
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/npr.articleResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | npr.ArticleResponse | No | ||||
| data.authors | array | No | ||||
| data.description | string | No | ||||
| data.image_url | string | No | ||||
| data.paragraphs | array | No | ||||
| data.published_at | string | No | ||||
| data.section | string | No | ||||
| data.title | string | No | ||||
| data.updated_at | string | No | ||||
| data.url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/npr/article?url=https%3A%2F%2Fwww.npr.org%2F2026%2F09%2F19%2Fnx-s1-5974980%2Fsaudi-arabia-houthis-attempted-attack-capital" \
-H "x-api-key: $CRAWLORA_API_KEY"