Metro API endpoint
Lists the 42 Metro section slugs accepted by `metro-headlines`, each with its display name and URL. Slugs include `uk`, `football`, `showbiz` and `coronation-street`. `home` is the site-wide stream, the same stories as `metro-news`, and parent sections such as `news` and `sport` aggregate their child sections.
/metro/sectionsReturns every section slug accepted by metro-headlines, with its display name and public RSS feed URL. No parameters.
The 42 slugs are: home, news, uk, world, us, politics, tech, weird, sport, football, boxing, cricket, f1, golf, snooker, tennis, entertainment, showbiz, tv, film, music, gaming, tv-soaps, coronation-street, eastenders, emmerdale, hollyoaks, casualty, lifestyle, health, food, travel, money, property, families, beauty, sex, horoscopes, shopping, opinion, letters, cartoons.
home is the site-wide feed (the same stories as metro-news). The parent sections news, sport, entertainment, tv-soaps (Soaps), lifestyle, and opinion aggregate their child sections.
| Field | Filled in, of 42 checked | Values in the sample |
|---|---|---|
| slug | 42 | |
| name | 42 | “Home” and 41 other values |
| url | 42 | metro.co.uk |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/metro/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "home",
"name": "Home",
"url": "https://metro.co.uk/feed/"
},
{
"slug": "uk",
"name": "UK",
"url": "https://metro.co.uk/news/uk/feed/"
}
]
}
}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/metro/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"