The New York Times · Capability
The New York Times Article Search API — Stories
The New York Times Article Search API — Stories. 1 operations. Lead operation: The New York Times Article Search. Self-contained Naftiko capability covering one The New York Times business surface.
What You Can Do
GET
Get
— The New York Times Article Search
/v1/articlesearch-json
MCP Tools
new-york-times-article-search
The New York Times Article Search
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: The New York Times Article Search API — Stories
description: 'The New York Times Article Search API — Stories. 1 operations. Lead operation: The New York Times Article
Search. Self-contained Naftiko capability covering one The New York Times business surface.'
tags:
- The New York Times
- Stories
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
THE_NEW_YORK_TIMES_API_KEY: THE_NEW_YORK_TIMES_API_KEY
capability:
consumes:
- type: http
namespace: new-york-times-article-search-stories
baseUri: http://api.nytimes.com/svc/search/v2
description: The New York Times Article Search API — Stories business capability. Self-contained, no shared references.
resources:
- name: articlesearch.json
path: /articlesearch.json
operations:
- name: get
method: GET
description: The New York Times Article Search
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: q
in: query
type: string
description: Search query term. Search is performed on the article body, headline and byline.
- name: fq
in: query
type: string
description: '"Filtered search query using standard Lucene syntax. '
- name: begin_date
in: query
type: string
description: '"Format: YYYYMMDD '
- name: end_date
in: query
type: string
description: '"Format: YYYYMMDD '
- name: sort
in: query
type: string
description: '"By default, search results are sorted by their relevance to the query term (q). Use the sort parameter
to sort by pub_date."'
- name: fl
in: query
type: string
description: '"Comma-delimited list of fields (no limit)'
- name: hl
in: query
type: boolean
description: Enables highlighting in search results. When set to true, the query term (q) is highlighted in the
headline and lead_paragraph fields.
- name: page
in: query
type: integer
description: '"The value of page corresponds to a set of 10 results (it does not indicate the starting number of
the result set). For example, page=0 corresponds to records 0'
- name: facet_field
in: query
type: string
description: Comma-delimited list of facets
- name: facet_filter
in: query
type: boolean
description: When set to true, facet counts will respect any applied filters (fq, date range, etc.) in addition
to the main query term. To filter facet counts, specifying at
authentication:
type: apikey
key: api-key
value: '{{env.THE_NEW_YORK_TIMES_API_KEY}}'
placement: query
exposes:
- type: rest
namespace: new-york-times-article-search-stories-rest
port: 8080
description: REST adapter for The New York Times Article Search API — Stories. One Spectral-compliant resource per consumed
operation, prefixed with /v1.
resources:
- path: /v1/articlesearch-json
name: articlesearch-json
description: REST surface for articlesearch.json.
operations:
- method: GET
name: get
description: The New York Times Article Search
call: new-york-times-article-search-stories.get
with:
q: rest.q
fq: rest.fq
begin_date: rest.begin_date
end_date: rest.end_date
sort: rest.sort
fl: rest.fl
hl: rest.hl
page: rest.page
facet_field: rest.facet_field
facet_filter: rest.facet_filter
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: new-york-times-article-search-stories-mcp
port: 9090
transport: http
description: MCP adapter for The New York Times Article Search API — Stories. One tool per consumed operation, routed
inline through this capability's consumes block.
tools:
- name: new-york-times-article-search
description: The New York Times Article Search
hints:
readOnly: true
destructive: false
idempotent: true
call: new-york-times-article-search-stories.get
with:
q: tools.q
fq: tools.fq
begin_date: tools.begin_date
end_date: tools.end_date
sort: tools.sort
fl: tools.fl
hl: tools.hl
page: tools.page
facet_field: tools.facet_field
facet_filter: tools.facet_filter
outputParameters:
- type: object
mapping: $.