Stuff API endpoint
Lists the 31 Stuff sections that `stuff-headlines` accepts, including regional and sport slugs that contain a slash, such as `nz-news/auckland` and `sport/rugby`. Each entry has a `slug`, a display `name` and the section's Atom feed `url`.
/stuff/sectionsReturns the public section slugs accepted by stuff-headlines: latest-news, nz-news, nz-news/auckland, nz-news/wellington, nz-news/canterbury, nz-news/north-island, nz-news/south-island, world-news, business, money, politics, perspectives, pou-tiaki, forever-project, sport, sport/rugby, sport/cricket, sport/netball, sport/football, sport/rugby-league, home-property, home-property/good-life, travel, life-and-style, wellbeing, wellbeing/house-wellness, food-drink, culture, motoring, health, quizzes.
Regional and sport slugs use a slash (for example nz-news/auckland, sport/rugby). Each section's url is its public Atom feed.
| Field | Filled in, of 31 checked | Values in the sample |
|---|---|---|
| slug | 31 | |
| name | 31 | “Latest News” and 30 other values |
| url | 31 | stuff.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/stuff/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "nz-news",
"name": "NZ News",
"url": "https://www.stuff.co.nz/rss?section=/nz-news"
}
]
}
}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/stuff/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"