Los Angeles Times API endpoint
Returns the complete set of section slugs accepted by latimes-headlines, each with its display name and public RSS feed URL.
/latimes/sectionsNo parameters.
Returns the complete set of section slugs accepted by latimes-headlines, each with its display name and the public RSS feed it reads. Use this to discover valid section values rather than guessing.
| Field | Filled in, of 43 checked | Values in the sample |
|---|---|---|
| slug | 43 | |
| name | 43 | “Business” and 42 other values |
| feed_url | 43 | latimes.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/latimes/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "main",
"name": "Top Stories",
"feed_url": "https://www.latimes.com/rss2.0.xml"
},
{
"slug": "environment",
"name": "Climate & Environment",
"feed_url": "https://www.latimes.com/environment/rss2.0.xml"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/latimes.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | latimes.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].feed_url | string | No | ||||
| data.sections[].name | string | No | ||||
| data.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/latimes/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"