NBC News API endpoint
Lists the seven NBC News section slugs accepted by `nbc-headlines`: `news`, `world`, `us-news`, `politics`, `business`, `science` and `health`. Each entry has its `slug`, display `name` and `url`.
/nbc/sectionsReturns the exact public RSS section value space accepted by nbc-headlines. The current values are news, world, us-news, politics, business, science, and health.
Parameters:
x-api-key: required API key.| Field | Filled in, of 7 checked | Values in the sample |
|---|---|---|
| slug | 7 | |
| name | 7 | “Top Stories” and 6 other values |
| url | 7 | feeds.nbcnews.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/nbc/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "world",
"name": "World News",
"url": "https://feeds.nbcnews.com/nbcnews/public/world"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/nbc.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | nbc.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].slug | string | No | ||||
| data.sections[].url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/nbc/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"