> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /nytimes/articles

> Get one New York Times article by URL, path or nyt:// identifier: headline, SEO headline and sub-headline, summary, kicker, the complete body text, every in-body photograph with caption and credit, authors with their profile links and job titles, section and subsection, topic tags, collections the piece belongs to, publish and last-modified times, word count, desk, tone, language, print-edition placement, comment status, translations into Spanish or Chinese, and the pieces the newsroom linked as related where it recorded any.

**Price:** 1 credit

**⚠️ Common errors:** 412: No article at this identifier, or it points at a section, topic, video or author page



## OpenAPI

````yaml /openapi/news-publishing.json post /api/nytimes/articles
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/nytimes/articles:
    post:
      tags:
        - /nytimes
      summary: /nytimes/articles
      description: >-
        Get one New York Times article by URL, path or nyt:// identifier:
        headline, SEO headline and sub-headline, summary, kicker, the complete
        body text, every in-body photograph with caption and credit, authors
        with their profile links and job titles, section and subsection, topic
        tags, collections the piece belongs to, publish and last-modified times,
        word count, desk, tone, language, print-edition placement, comment
        status, translations into Spanish or Chinese, and the pieces the
        newsroom linked as related where it recorded any.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No article at this identifier, or it points
        at a section, topic, video or author page
      operationId: __api_nytimes_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NytimesArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NytimesArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NytimesArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    NytimesArticle:
      properties:
        '@type':
          type: string
          default: NytimesArticle
        uri:
          type: string
        asset_type:
          type: string
        document_type:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        document_title:
          type: string
        seo_title:
          anyOf:
            - type: string
            - type: 'null'
        sub_headline:
          anyOf:
            - type: string
            - type: 'null'
        kicker:
          anyOf:
            - type: string
            - type: 'null'
        summary:
          anyOf:
            - type: string
            - type: 'null'
        promotional_headline:
          anyOf:
            - type: string
            - type: 'null'
        promotional_summary:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        word_count:
          anyOf:
            - type: integer
            - type: 'null'
        tone:
          anyOf:
            - type: string
            - type: 'null'
        desk:
          anyOf:
            - type: string
            - type: 'null'
        language:
          anyOf:
            - type: string
            - type: 'null'
        section:
          anyOf:
            - $ref: '#/components/schemas/NytimesSectionRef'
            - type: 'null'
        subsection:
          anyOf:
            - $ref: '#/components/schemas/NytimesSectionRef'
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/NytimesPersonRef'
          type: array
          default: []
        byline:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - $ref: '#/components/schemas/NytimesImage'
            - type: 'null'
        tags:
          items:
            $ref: '#/components/schemas/NytimesTag'
          type: array
          default: []
        related:
          items:
            $ref: '#/components/schemas/NytimesArticleReference'
          type: array
          default: []
        source_id:
          anyOf:
            - type: string
            - type: 'null'
        short_url:
          anyOf:
            - type: string
            - type: 'null'
        major_update_at:
          anyOf:
            - type: integer
            - type: 'null'
        source:
          anyOf:
            - type: string
            - type: 'null'
        column:
          anyOf:
            - $ref: '#/components/schemas/NytimesCollectionRef'
            - type: 'null'
        collections:
          items:
            $ref: '#/components/schemas/NytimesCollectionRef'
          type: array
          default: []
        print_information:
          anyOf:
            - $ref: '#/components/schemas/NytimesArticlePrintInfo'
            - type: 'null'
        comment_status:
          anyOf:
            - type: string
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
        block_count:
          anyOf:
            - type: integer
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/NytimesImage'
          type: array
          default: []
        translations:
          items:
            $ref: '#/components/schemas/NytimesArticleTranslation'
          type: array
          default: []
      type: object
      required:
        - uri
        - asset_type
        - document_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NytimesSectionRef:
      properties:
        '@type':
          type: string
          default: NytimesSectionRef
        uri:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        display_name:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NytimesPersonRef:
      properties:
        '@type':
          type: string
          default: NytimesPersonRef
        uri:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        job_title:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NytimesImage:
      properties:
        '@type':
          type: string
          default: NytimesImage
        uri:
          anyOf:
            - type: string
            - type: 'null'
        image:
          type: string
        width:
          anyOf:
            - type: integer
            - type: 'null'
        height:
          anyOf:
            - type: integer
            - type: 'null'
        caption:
          anyOf:
            - type: string
            - type: 'null'
        credit:
          anyOf:
            - type: string
            - type: 'null'
        alt_text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    NytimesTag:
      properties:
        '@type':
          type: string
          default: NytimesTag
        uri:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        tag_type:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NytimesArticleReference:
      properties:
        '@type':
          type: string
          default: NytimesArticleReference
        uri:
          type: string
        asset_type:
          anyOf:
            - type: string
            - type: 'null'
        document_title:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - uri
    NytimesCollectionRef:
      properties:
        '@type':
          type: string
          default: NytimesCollectionRef
        uri:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        collection_type:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NytimesArticlePrintInfo:
      properties:
        '@type':
          type: string
          default: NytimesArticlePrintInfo
        edition:
          anyOf:
            - type: string
            - type: 'null'
        headline:
          anyOf:
            - type: string
            - type: 'null'
        page:
          anyOf:
            - type: string
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    NytimesArticleTranslation:
      properties:
        '@type':
          type: string
          default: NytimesArticleTranslation
        language:
          type: string
        web_url:
          type: string
      type: object
      required:
        - language
        - web_url
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````