The Sun API endpoint
Returns the current headlines for one The Sun section. `section` is required and takes one of `news`, `politics`, `royal-family`, `sport`, `showbiz`, `money`, `tech`, `fabulous`, `travel` or `health`. Every item has its title and URL. The `news` section also carries summary, author, publication time and image when the outlet provides them.
/sun/headlinesQuery parameter: section is required and must be one of news, politics, royal-family, sport, showbiz, money, tech, fabulous, travel, health.
| Field | Filled in, of 14 checked | Values in the sample |
|---|---|---|
| title | 14 | median 115 characters |
| url | 14 | thesun.co.uk |
| summary | 14 | median 332 characters |
| published_at | 14 | 2026-10-13 |
| author | 13 | |
| image_url | 14 | thesun.co.uk |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | The Sun section slug Allowed values: news, politics, royal-family, sport, showbiz, money, tech, fabulous, travel, health. | news | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sun/headlines?section=news" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"section": "news",
"items": [
{
"title": "Example headline",
"url": "https://www.thesun.co.uk/news/12345678/example/"
}
]
}
}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 The Sun 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/sun/headlines?section=news" \
-H "x-api-key: $CRAWLORA_API_KEY"