NZ Herald API endpoint
Lists the NZ Herald section slugs accepted by `nzherald-headlines`, such as `nz`, `business`, `rugby`, `technology` and `world`. Each entry has its `slug`, a display `name` (for example `New Zealand` for `nz`) and a `url`.
/nzherald/sectionsReturns the public section slugs accepted by nzherald-headlines: business, markets-with-madison, media-insider, business-reports, small-business, personal-finance, economy, companies, markets, entertainment, lifestyle, society-insider, nz, crime, education, politics, trailblazers, property, sport, commonwealth-games, cricket, olympics, paralympics, rugby, rugby-league, football, basketball, golf, boxing, netball, athletics, cycling, motorsport, racing, sailing, tennis, ufc, technology, travel, travel-news, world, kahu, talanoa, the-selection.
| Field | Filled in, of 44 checked | Values in the sample |
|---|---|---|
| slug | 44 | |
| name | 44 | “Business” and 43 other values |
| url | 44 | nzherald.co.nz |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/nzherald/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "nz",
"name": "New Zealand",
"url": "https://www.nzherald.co.nz/arc/outboundfeeds/rss/section/nz/?outputType=xml"
}
]
}
}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/nzherald/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"