The Hill API endpoint
Returns a The Hill author's profile by `url`, a canonical `thehill.com/author/<slug>/` link: name, job title, bio, image URL and recent articles with title, URL, category and category URL. `job_title` and `image_url` may be missing, and each article's `published_at` is relative text such as `10 hours ago`, not a timestamp.
/thehill/authorQuery parameters:
url (required): a canonical https://thehill.com/author/<slug>/ URL.job_title and image_url reflect whatever The Hill's own byline page shows for that author -- not every author page carries a photo or a job title. Each article's published_at is the page's own rendered relative date text (for example 10 hours ago); no machine-readable timestamp is present in the markup.
Example response (truncated):
{"code":200,"data":{"url":"https://thehill.com/author/alexander-bolton/","name":"Alexander Bolton","job_title":"Senior staff writer","bio":"I have covered the daily operations of the United States Senate since the start of the Obama administration in 2009...","image_url":"https://thehill.com/wp-content/uploads/sites/2/2022/03/bolton.jpg?strip=1","articles":[{"title":"GOP Sen. John Curtis calls for Trump Jr., Hunter Biden investigations","url":"https://thehill.com/homenews/6103272-senator-subpoena-trump-jr-hunter-biden/","category":"Homenews","category_url":"https://thehill.com/homenews/","published_at":"10 hours ago"}]}}
| Field | Filled in, of 16 checked | Values in the sample |
|---|---|---|
| title | 16 | median 64 characters |
| url | 16 | thehill.com |
| category | 16 | |
| published_at | 16 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical The Hill author URL | https://thehill.com/author/alexander-bolton/ | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/thehill/author?url=https%3A%2F%2Fthehill.com%2Fauthor%2Falexander-bolton%2F" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"url": "https://thehill.com/author/alexander-bolton/",
"name": "Alexander Bolton",
"job_title": "Senior staff writer",
"bio": "I have covered the daily operations of the United States Senate since the start of the Obama administration in 2009...",
"image_url": "https://thehill.com/wp-content/uploads/sites/2/2022/03/bolton.jpg?strip=1",
"articles": [
{
"title": "GOP Sen. John Curtis calls for Trump Jr., Hunter Biden investigations",
"url": "https://thehill.com/homenews/6103272-senator-subpoena-trump-jr-hunter-biden/",
"category": "Homenews",
"category_url": "https://thehill.com/homenews/",
"published_at": "10 hours ago"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.theHillAuthorResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | thehill.AuthorResponse | No | ||||
| data.articles | array | No | ||||
| data.articles[].category | string | No | ||||
| data.articles[].category_url | string | No | ||||
| data.articles[].published_at | string | No | ||||
| data.articles[].title | string | No | ||||
| data.articles[].url | string | No | ||||
| data.bio | string | No | ||||
| data.image_url | 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/thehill/author?url=https%3A%2F%2Fthehill.com%2Fauthor%2Falexander-bolton%2F" \
-H "x-api-key: $CRAWLORA_API_KEY"