Al Jazeera API endpoint
Lists Al Jazeera's current section navigation, each entry with a `name`, `slug` and `url`. A slug has one segment (`news`, `middle-east`) or two (`tag/human-rights`), and any returned `slug` can be passed as the `topic` parameter of `aljazeera-topic`.
/aljazeera/categoriesReturns Al Jazeera's current public section navigation. Use a returned slug as the topic parameter for aljazeera-topic; the value space is discovered live from Al Jazeera's own primary navigation rather than hardcoded. Slugs may be a single segment (news, middle-east) or two segments (tag/human-rights).
| Field | Filled in, of 23 checked | Values in the sample |
|---|---|---|
| slug | 23 | |
| name | 23 | “News” and 22 other values |
| url | 23 | aljazeera.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/aljazeera/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"categories": [
{
"slug": "news",
"name": "News",
"url": "https://www.aljazeera.com/news/"
},
{
"slug": "middle-east",
"name": "Middle East",
"url": "https://www.aljazeera.com/middle-east/"
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/aljazeera.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | aljazeera.CategoriesResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].name | string | No | ||||
| data.categories[].slug | string | No | ||||
| data.categories[].url | 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/aljazeera/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"