DW API endpoint
Lists the DW English-edition sections accepted by `dw-headlines`, grouped under the site's three navigation groups: regions, topics and categories. Each entry has a stable `slug`, display `name` and the section `url`. Takes no parameters.
/dw/sectionsReturns the complete public DW English-edition section inventory accepted by /api/v1/dw/headlines -- DW's three navigation groups: regions, topics, and categories.
Each section includes a stable slug, display name, and public upstream url.
| Field | Filled in, of 18 checked | Values in the sample |
|---|---|---|
| slug | 18 | |
| name | 18 | “Africa” and 17 other values |
| url | 18 | dw.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/dw/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "business",
"name": "Business",
"url": "https://www.dw.com/en/business/s-1431"
}
]
}
}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/dw/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"