AL.com API endpoint
Lists the three top-level editorial sections in AL.com's navigation: `news`, `sports` and `life`. Each has a `slug`, a display `name` and the section's page `url`, and the slugs are the values `alcom-headlines` accepts for `section`.
/alcom/sectionsQuery parameters: none.
Notable response behavior: Returns the complete top-level editorial set shown in AL.com's public navigation: news, sports, and life. These values are accepted by alcom-headlines.
| Field | Filled in, of 3 checked | Values in the sample |
|---|---|---|
| slug | 3 | |
| name | 3 | “News” and 2 other values |
| url | 3 | al.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/alcom/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "news",
"name": "News",
"url": "https://www.al.com/news/"
},
{
"slug": "sports",
"name": "Sports",
"url": "https://www.al.com/sports/"
},
{
"slug": "life",
"name": "Life",
"url": "https://www.al.com/life/"
}
]
}
}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 |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/alcom/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"