HuffPost API endpoint
Lists the topic hubs accepted by `huffpost-headlines`, such as `news/politics`, `impact/business`, `life/travel` and `voices/latino-voices`. Each entry has a `slug`, display `name` and hub `url`. Games, Horoscopes, Newsletters and HuffPost's international editions are excluded.
/huffpost/sectionsReturns the complete public topic-hub inventory accepted by /api/v1/huffpost/headlines.
Each section includes a stable slug, display name, and public upstream url. Interactive/non-article surfaces the site's navigation also links (Games, Horoscopes, Newsletters) and HuffPost's separate international-edition sites are intentionally excluded, since neither returns an article listing.
| Field | Filled in, of 40 checked | Values in the sample |
|---|---|---|
| slug | 40 | |
| name | 40 | “News” and 39 other values |
| url | 40 | huffpost.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/huffpost/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "news/politics",
"name": "Politics",
"url": "https://www.huffpost.com/news/politics"
}
]
}
}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/huffpost/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"