Townhall API endpoint
Returns the public Townhall section inventory: the site-wide news and column feeds plus the editorial topic hubs the site promotes.
/townhall/sectionsReturns the section inventory accepted by /api/v1/townhall/headlines, verified live 2026-09-25: news, columnists, 2026-elections, congress, donald-trump, economy, foreign-policy, illegal-immigration, iran, supreme-court.
news and columnists are Townhall's public news and opinion-column feeds (20 items each). The other eight are the topic hubs the site itself promotes from its home page and menu; each lists the 30 latest stories tagged with that topic. Townhall's full topic directory is an open tag taxonomy of hundreds of people, places and issues, so only the site-promoted hubs are offered. Each section has a stable slug, a display name, and the public page url.
| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| slug | 10 | |
| name | 10 | “News” and 9 other values |
| url | 10 | townhall.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/townhall/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "news",
"name": "News",
"url": "https://townhall.com/news"
},
{
"slug": "iran",
"name": "Iran",
"url": "https://townhall.com/news-topics/iran"
}
]
}
}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/townhall/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"