The Daily Beast API endpoint
Lists the sections of The Daily Beast that the headlines endpoint accepts, both top-level categories such as `politics` and `world` and child sub-sections such as `politics/opinion` and `world/middle-east`. Each entry has a `slug`, a display `name` and the section `url`.
/thedailybeast/sectionsReturns the complete public category inventory accepted by /api/v1/thedailybeast/headlines, including both top-level categories (e.g. politics, world) and their child sub-sections (e.g. politics/opinion, world/middle-east).
Each section includes a stable slug, display name, and public upstream url.
Example response (truncated):
{"code":200,"data":{"sections":[{"slug":"politics","name":"Politics","url":"https://www.thedailybeast.com/category/politics/"},{"slug":"politics/opinion","name":"Opinion","url":"https://www.thedailybeast.com/category/politics/opinion/"}]}}
| Field | Filled in, of 77 checked | Values in the sample |
|---|---|---|
| slug | 77 | |
| name | 77 | “Lifestyle” and 71 other values |
| url | 77 | thedailybeast.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/thedailybeast/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "politics",
"name": "Politics",
"url": "https://www.thedailybeast.com/category/politics/"
},
{
"slug": "politics/opinion",
"name": "Opinion",
"url": "https://www.thedailybeast.com/category/politics/opinion/"
}
]
}
}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/thedailybeast/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"