The Hill API endpoint
Lists the 19 The Hill section slugs that the headlines endpoint accepts, such as `home`, `policy`, `senate`, `defense` and `technology`. Each entry has the section `slug`, its display `name` and its `url`.
/thehill/sectionsReturns the section slugs accepted by thehill-headlines: home, homenews, policy, business, opinion, healthcare, campaign, national-security, senate, house, administration, regulation, media, defense, technology, transportation, international, economy, policy-healthcare.
| Field | Filled in, of 19 checked | Values in the sample |
|---|---|---|
| slug | 19 | |
| name | 19 | “Home” and 18 other values |
| url | 19 | thehill.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/thehill/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "policy",
"name": "Policy",
"url": "https://thehill.com/policy/feed/"
}
]
}
}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/thehill/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"