CBS News API endpoint
Lists the ten CBS News sections accepted by `cbsnews-headlines`: `main`, `us`, `world`, `politics`, `moneywatch`, `health`, `entertainment`, `science`, `technology` and `space`. Each has a `slug`, a display `name` and the feed `url`.
/cbsnews/sectionsReturns the public RSS section slugs accepted by cbsnews-headlines: main, us, world, politics, moneywatch, health, entertainment, science, technology, space.
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| slug | 10 | |
| name | 10 | “Top Stories” and 9 other values |
| url | 10 | cbsnews.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/cbsnews/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "politics",
"name": "Politics",
"url": "https://www.cbsnews.com/latest/rss/politics"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | newsplatform.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].slug | string | No | ||||
| data.sections[].url | string | No |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/cbsnews/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"