New York Post API endpoint
Lists the 54 New York Post section slugs accepted by `nypost-headlines`, such as `us-news`, `politics`, `nfl`, `celebrities` and `mental-health`. Each entry has its `slug`, display `name` and `url`.
/nypost/sectionsReturns the public RSS section slugs accepted by nypost-headlines: us-news, metro, long-island, politics, world-news, sports, nfl, mlb, olympics, nba, nhl, college-football, college-basketball, wnba, sports-plus, betting, business, opinion, entertainment, tv, movies, music, celebrities, awards, theater, shopping, lifestyle, weird-but-true, sex-and-relationships, viral-trends, human-interest, parenting, fashion-and-beauty, food-and-drink, travel, health, wellness, fitness, health-care, medicine, mens-health, womens-health, mental-health, nutrition, real-estate, alexa, media, tech, science, space, environment, wildlife, archaeology, astrology.
| Field | Filled in, of 54 checked | Values in the sample |
|---|---|---|
| slug | 54 | |
| name | 54 | “US News” and 53 other values |
| url | 54 | nypost.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/nypost/sections" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"sections": [
{
"slug": "us-news",
"name": "US News",
"url": "https://nypost.com/us-news/feed/"
}
]
}
}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 |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/nypost/sections" \
-H "x-api-key: $CRAWLORA_API_KEY"