The Sun API endpoint
Returns a Sun author's profile by `url`, a canonical `thesun.co.uk/author/<slug>/` link: name, job title, bio and recent articles with title, URL, excerpt, category and category URL. `job_title` is often empty because most Sun bylines carry only a name and bio.
/sun/authorQuery parameters:
url (required): a canonical https://www.thesun.co.uk/author/<slug>/ URL.job_title is often empty -- most Sun bylines carry only a name and bio, not a formal masthead title. Each article's category is the section tag shown on its teaser card.
Example response (truncated):
{"code":200,"data":{"url":"https://www.thesun.co.uk/author/becky-pemberton/","name":"Becky Pemberton","bio":"Becky is a senior Fabulous writer focusing on real life, royal and Bossing It stories. She was previously at the MailOnline's Travel Desk before joining the Sun in 2016.","articles":[{"title":"From bizarre 'bumsters' to 'human backpacks' - jaw-dropping catwalk moments","url":"https://www.thesun.co.uk/fabulous/40459810/leigh-anne-pinnock-catwalk-moments/","category":"Fashion","category_url":"https://www.thesun.co.uk/fabulous/fashion/","excerpt":"CATWALK shows are created with the purpose of turning heads."}]}}
| Field | Filled in, of 18 checked | Values in the sample |
|---|---|---|
| title | 18 | median 75 characters |
| url | 18 | thesun.co.uk |
| category | 18 | |
| category_url | 18 | thesun.co.uk |
| excerpt | 1 | median 211 characters |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical The Sun author URL | https://www.thesun.co.uk/author/becky-pemberton/ | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sun/author?url=https%3A%2F%2Fwww.thesun.co.uk%2Fauthor%2Fbecky-pemberton%2F" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"url": "https://www.thesun.co.uk/author/becky-pemberton/",
"name": "Becky Pemberton",
"bio": "Becky is a senior Fabulous writer focusing on real life, royal and Bossing It stories. She was previously at the MailOnline's Travel Desk before joining the Sun in 2016.",
"articles": [
{
"title": "From bizarre 'bumsters' to 'human backpacks' - jaw-dropping catwalk moments",
"url": "https://www.thesun.co.uk/fabulous/40459810/leigh-anne-pinnock-catwalk-moments/",
"category": "Fashion",
"category_url": "https://www.thesun.co.uk/fabulous/fashion/",
"excerpt": "CATWALK shows are created with the purpose of turning heads."
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.sunAuthorResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | sun.AuthorResponse | No | ||||
| data.articles | array | No | ||||
| data.articles[].category | string | No | ||||
| data.articles[].category_url | string | No | ||||
| data.articles[].excerpt | string | No | ||||
| data.articles[].title | string | No | ||||
| data.articles[].url | string | No | ||||
| data.bio | string | No | ||||
| data.job_title | string | No | ||||
| data.name | string | No | ||||
| data.url | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/author?url=https%3A%2F%2Fwww.thesun.co.uk%2Fauthor%2Fbecky-pemberton%2F" \
-H "x-api-key: $CRAWLORA_API_KEY"