DW API endpoint
Returns the latest Deutsche Welle headlines for one section. `section` is required and takes one of 18 slugs, such as `africa`, `middle-east`, `germany`, `climate`, `migration`, `human-rights`, `business` or `sports`. Each item has its title and URL, plus an image when the card shows one.
/dw/headlinesQuery parameter: section is required and must be one of africa, asia, europe, latin-america, middle-east, north-america, germany, climate, equality, health, human-rights, migration, technology, business, science, environment, culture, or sports.
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| title | 10 | median 56 characters |
| url | 10 | dw.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | DW section slug Allowed values: africa, asia, europe, latin-america, middle-east, north-america, germany, climate, equality, health, human-rights, migration, technology, business, science, environment, culture, sports. | africa | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/dw/headlines?section=africa" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"section": "business",
"items": [
{
"title": "Example DW section headline",
"url": "https://www.dw.com/en/example-headline/a-12345678"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.headlinesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | newsplatform.HeadlinesResponse | No | ||||
| data.items | array | No | HeadlineItem record, 7 fields: author, image_url, published_at, summary, title, type, url. Described under DW top stories API. | |||
| data.section | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/dw/headlines?section=africa" \
-H "x-api-key: $CRAWLORA_API_KEY"