CBC News API endpoint
Lists the 35 CBC News sections that `cbc-headlines` accepts: 8 national desks such as `politics` and `world`, 21 regional newsrooms such as `toronto` and `nova-scotia`, and 6 CBC Sports feeds such as `sports-nhl`. Each has a `slug`, a display `name` and the feed `url`. Top stories come from `cbc-news`, not a section.
/cbc/sectionsReturns every section accepted by cbc-headlines, each with its slug, display name, and public RSS feed URL. The set covers CBC's national desks, its regional newsrooms, and CBC Sports feeds that currently publish.
National: world, canada, politics, business, health, arts, technology, indigenous.
Regional: british-columbia, calgary, edmonton, hamilton, kamloops, kitchener-waterloo, london, manitoba, montreal, new-brunswick, newfoundland-labrador, north, nova-scotia, ottawa, prince-edward-island, saskatchewan, saskatoon, sudbury, thunder-bay, toronto, windsor.
Sports: sports, sports-golf, sports-nhl, sports-olympics, sports-soccer, sports-tennis.
Top stories are served by cbc-news, not as a section. CBC feeds that are listed publicly but are empty or no longer updated (CFL, MLB, NBA, NFL, curling, figure skating, skiing, The National) are not offered.
| Field | Filled in, of 35 checked | Values in the sample |
|---|---|---|
| slug | 35 | |
| name | 35 | “World” and 34 other values |
| url | 35 | cbc.ca |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/cbc/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "politics",
"name": "Politics",
"url": "https://www.cbc.ca/webfeed/rss/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/cbc/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"