New York Times API endpoint
Lists the New York Times section slugs accepted by `nyt-headlines`, such as `World` and `Business`, each with its display `name` and `url`. It covers only the sections that endpoint takes; use `nyt-categories` for the broader site navigation, including Politics, DealBook and Wirecutter.
/nyt/sectionsTakes no parameters.
Lists every New York Times RSS section accepted by /nyt/headlines, with its slug, display name, and public feed url. It is the discovery source for that endpoint's section parameter. For the broader website navigation—including non-RSS destinations such as Politics, DealBook, and Wirecutter—use nyt-categories.
| Field | Filled in, of 24 checked | Values in the sample |
|---|---|---|
| slug | 24 | |
| name | 24 | “Home Page” and 23 other values |
| url | 24 | rss.nytimes.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/nyt/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sections": [
{
"slug": "World",
"name": "World",
"url": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml"
},
{
"slug": "Business",
"name": "Business",
"url": "https://rss.nytimes.com/services/xml/rss/nyt/Business.xml"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/nyt.sectionsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | nyt.SectionsResponse | No | ||||
| data.sections | array | No | ||||
| data.sections[].name | string | No | ||||
| data.sections[].slug | string | No | ||||
| data.sections[].url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 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/nyt/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"