New York Magazine API endpoint
Returns recent New York Magazine stories for one site section. `section` is required and takes one of nine slugs: `intelligencer`, `thecut`, `vulture`, `grub-street`, `curbed`, `strategist`, `select-all`, `science` or `daily`. Each item has a title and URL, and may include summary, author, publication time and image.
/nymag/headlinesQuery parameter: section is required and must be one of intelligencer, thecut, vulture, grub-street, curbed, strategist, select-all, science, daily.
| Field | Filled in, of 3 checked | Values in the sample |
|---|---|---|
| title | 3 | median 55 characters |
| url | 3 | nymag.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| section | string | Yes | New York Magazine section slug Allowed values: intelligencer, thecut, vulture, grub-street, curbed, strategist, select-all, science, daily. | intelligencer | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/nymag/headlines?section=intelligencer" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"section": "intelligencer",
"items": [
{
"title": "Example headline",
"url": "https://nymag.com/intelligencer/example.html"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/publicnews.headlinesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | newsplatform.HeadlinesResponse | No | ||||
| data.items | array | No | HeadlineItem record, 7 fields: author, image_url, published_at, summary, title, type, url. Described under New York Magazine top stories API. | |||
| data.section | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/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/nymag/headlines?section=intelligencer" \
-H "x-api-key: $CRAWLORA_API_KEY"