CTV News API endpoint
Lists the 27 CTV News sections accepted by `ctvnews-headlines`: 12 national topic sections such as `canada`, `politics` and `sci-tech`, and 15 local newsrooms such as `toronto`, `calgary` and `atlantic`. Video, photo, weather, podcast, sponsored and shopping hubs are not included.
/ctvnews/sectionsReturns the public section slugs accepted by ctvnews-headlines: canada, politics, world, business, health, entertainment, lifestyle, climate-and-environment, sci-tech, sports, opinion, highly-engaged, atlantic, barrie, calgary, edmonton, kitchener, london, montreal, northern-ontario, ottawa, regina, saskatoon, toronto, vancouver, windsor, winnipeg.
The first twelve are national topic sections; the remaining fifteen are local newsrooms. Video, photo, weather, podcast, sponsored and shopping hubs are not news sections and are not listed.
| Field | Filled in, of 27 checked | Values in the sample |
|---|---|---|
| slug | 27 | |
| name | 27 | “Canada” and 26 other values |
| url | 27 | ctvnews.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/ctvnews/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "canada",
"name": "Canada",
"url": "https://www.ctvnews.ca/canada/"
}
]
}
}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/ctvnews/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"