Mirror API endpoint
Lists the Mirror section slugs accepted by `mirror-headlines`. Each entry has a stable `slug`, a display `name` and a section `url`. Slugs can contain a path, such as `news/uk-news` or `sport/football`.
/mirror/sectionsReturns the complete public section inventory accepted by /api/v1/mirror/headlines.
Each section includes a stable slug, display name, and public upstream url.
| Field | Filled in, of 34 checked | Values in the sample |
|---|---|---|
| slug | 34 | |
| name | 34 | “News” and 33 other values |
| url | 34 | mirror.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/mirror/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "example",
"name": "Example",
"url": "https://example.com/section"
}
]
}
}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/mirror/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"