New York Times API endpoint
Returns a New York Times article by canonical `url`, with `title`, `description`, `published_at`, `updated_at`, `section`, `authors`, `keywords`, `image_url` and the body `paragraphs` in order. Query strings and fragments are stripped. A subscription barrier returns `403`, and non-article or non-NYT URLs return `400`.
/nyt/articleQuery parameter: required url, a canonical New York Times article URL (e.g. https://www.nytimes.com/2026/09/20/us/politics/example-story.html). Query strings and fragments are stripped; the URL is canonicalized to https://www.nytimes.com.
Returns one public NYT article's metadata — title, description, published_at, updated_at, section, authors, keywords, image_url — plus its body paragraphs in order.
Behavior:
403; a paywalled article is never returned as a hollow success.NewsArticle structured data or body paragraphs without an explicit subscription barrier is treated as parser drift and returns 503.400 before any upstream request.| Field | In the sample | Value in the sample |
|---|---|---|
| url | Has a value | nytimes.com |
| title | Has a value | 44 characters |
| description | Has a value | 165 characters |
| published_at | Has a value | 2026-09-20 |
| updated_at | Has a value | 2026-09-20 |
| section | Has a value | “U.S.” |
| authors | Has a value | 2 entries |
| image_url | Has a value | static01.nyt.com |
| paragraphs | Has a value | 40 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| url | string | Yes | Canonical NYT article URL | https://www.nytimes.com/2026/09/20/us/politics/example-story.html | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/nyt/article?url=https%3A%2F%2Fwww.nytimes.com%2F2026%2F09%2F20%2Fus%2Fpolitics%2Fexample-story.html" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"url": "https://www.nytimes.com/2026/09/20/us/politics/example-story.html",
"title": "How President Trump Broke the Kennedy Center",
"description": "Internal emails and documents demonstrate the political capture of the institution.",
"published_at": "2026-09-20T09:01:23.000Z",
"updated_at": "2026-09-20T12:22:38.579Z",
"section": "U.S.",
"authors": [
"Elizabeth Williamson",
"Julia Jacobs"
],
"keywords": [
"Kennedy Center"
],
"image_url": "https://static01.nyt.com/images/example.jpg",
"paragraphs": [
"A storm brought down a five-foot piece of ceiling plaster.",
"Second paragraph of the article."
]
}
}Request schema
No body schema
Response schema
#/definitions/nyt.articleResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | nyt.ArticleResponse | No | ||||
| data.authors | array | No | ||||
| data.description | string | No | ||||
| data.image_url | string | No | ||||
| data.keywords | array | No | ||||
| data.paragraphs | array | No | ||||
| data.published_at | string | No | ||||
| data.section | string | No | ||||
| data.title | string | No | ||||
| data.updated_at | string | No | ||||
| data.url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 403 | Forbidden | #/definitions/app.Response |
| 404 | Not Found | #/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/article?url=https%3A%2F%2Fwww.nytimes.com%2F2026%2F09%2F20%2Fus%2Fpolitics%2Fexample-story.html" \
-H "x-api-key: $CRAWLORA_API_KEY"