The New York Times · Capability

The New York Times Times Newswire API — Content

The New York Times Times Newswire API — Content. 3 operations. Lead operation: Content. Self-contained Naftiko capability covering one The New York Times business surface.

Run with Naftiko The New York TimesContent

What You Can Do

GET
Get — get
/v1/content-json
GET
Get — get
/v1/content/section-list-json
GET
Get — get
/v1/content/{source}/section-json

MCP Tools

get

get

read-only idempotent
get-2

get

read-only idempotent
get-3

get

read-only idempotent

Capability Spec

new-york-times-times-newswire-content.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: The New York Times Times Newswire API — Content
  description: 'The New York Times Times Newswire API — Content. 3 operations. Lead operation: Content. Self-contained Naftiko
    capability covering one The New York Times business surface.'
  tags:
  - The New York Times
  - Content
  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-times-newswire-content
    baseUri: https://api.nytimes.com/svc/news/v3
    description: The New York Times Times Newswire API — Content business capability. Self-contained, no shared references.
    resources:
    - name: content.json
      path: /content.json
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: url
          in: query
          type: string
          description: The complete URL of a specific news item, URL-encoded or backslash-escaped
          required: true
    - name: content-section-list.json
      path: /content/section-list.json
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: content-source-section}.json
      path: /content/{source}/{section}.json
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source
          in: path
          type: string
          description: Limits the set of items by originating source.
          required: true
        - name: section
          in: path
          type: string
          description: Limits the set of items by a section.
          required: true
        - name: limit
          in: query
          type: integer
          description: Limits the number of results.  Set to increment of 20 up to 500.
        - name: offset
          in: query
          type: integer
          description: Sets the starting point of the result set.
    authentication:
      type: apikey
      key: api-key
      value: '{{env.THE_NEW_YORK_TIMES_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: new-york-times-times-newswire-content-rest
    port: 8080
    description: REST adapter for The New York Times Times Newswire API — Content. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/content-json
      name: content-json
      description: REST surface for content.json.
      operations:
      - method: GET
        name: get
        description: get
        call: new-york-times-times-newswire-content.get
        with:
          url: rest.url
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/content/section-list-json
      name: content-section-list-json
      description: REST surface for content-section-list.json.
      operations:
      - method: GET
        name: get
        description: get
        call: new-york-times-times-newswire-content.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/content/{source}/section-json
      name: content-source-section-json
      description: REST surface for content-source-section}.json.
      operations:
      - method: GET
        name: get
        description: get
        call: new-york-times-times-newswire-content.get
        with:
          source: rest.source
          section: rest.section
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: new-york-times-times-newswire-content-mcp
    port: 9090
    transport: http
    description: MCP adapter for The New York Times Times Newswire API — Content. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-york-times-times-newswire-content.get
      with:
        url: tools.url
      outputParameters:
      - type: object
        mapping: $.
    - name: get-2
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-york-times-times-newswire-content.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-3
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-york-times-times-newswire-content.get
      with:
        source: tools.source
        section: tools.section
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.