Politico API endpoint
Returns Politico's full public section navigation tree, grouped the same way the site's own nav menu groups it. Use a section's slug directly as the topic parameter on politico-topic.
/politico/categoriesNo query parameters.
Returns Politico's full public section navigation tree, grouped the same way the site's own nav menu groups it (e.g. "Washington & Politics", "Policy News"). Use a section's slug directly as the topic parameter on politico-topic.
| Field | Filled in, of 8 checked | Values in the sample |
|---|---|---|
| name | 8 | “WASHINGTON & POLITICS” and 7 other values |
| sections | 8 | median 2 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/politico/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"groups": [
{
"name": "WASHINGTON & POLITICS",
"sections": [
{
"slug": "congress-news-updates-analysis",
"name": "Congress"
},
{
"slug": "white-house-news-updates-analysis",
"name": "White House"
}
]
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/politico.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | politico.CategoriesResponse | No | ||||
| data.groups | array | No | ||||
| data.groups[].name | string | No | ||||
| data.groups[].sections | array | No | ||||
| data.groups[].sections[].name | string | No | ||||
| data.groups[].sections[].slug | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/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/politico/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"