Axios API endpoint
Returns Axios's full public topic and subtopic navigation tree. Use a subtopic's topic value directly as the topic parameter on axios-headlines.
/axios/categoriesNo query parameters.
Returns Axios's full public topic and subtopic navigation tree, read live from the site's own navigation state. Each subtopic's topic field is ready to use directly as the topic parameter on axios-headlines.
| Field | Filled in, of 9 checked | Values in the sample |
|---|---|---|
| slug | 9 | |
| name | 9 | “Politics & Policy” and 8 other values |
| subtopics | 8 | median 5 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/axios/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"topics": [
{
"slug": "technology",
"name": "Technology",
"subtopics": [
{
"slug": "automation-and-ai",
"name": "AI & machine learning",
"topic": "technology/automation-and-ai"
},
{
"slug": "cybersecurity",
"name": "Cybersecurity",
"topic": "technology/cybersecurity"
}
]
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/axios.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | axios.CategoriesResponse | No | ||||
| data.topics | array | No | ||||
| data.topics[].name | string | No | ||||
| data.topics[].slug | string | No | ||||
| data.topics[].subtopics | array | No | ||||
| data.topics[].subtopics[].name | string | No | ||||
| data.topics[].subtopics[].slug | string | No | ||||
| data.topics[].subtopics[].topic | 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/axios/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"