> ## 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.

# /npr/articles

> Get a full NPR story or podcast episode page by id or URL: headline, teaser, full body text, byline and linked author profiles, section, topic taxonomy, show, broadcast program, publish and update time, images with captions and credits, on-demand audio with direct mp3 links and duration, topic tags and whether a transcript is published.

**Price:** 1 credit

**⚠️ Common errors:** 412: Story not found — the id or URL does not resolve to an NPR story page



## OpenAPI

````yaml /openapi/news-publishing.json post /api/npr/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/npr/articles:
    post:
      tags:
        - /npr
      summary: /npr/articles
      description: >-
        Get a full NPR story or podcast episode page by id or URL: headline,
        teaser, full body text, byline and linked author profiles, section,
        topic taxonomy, show, broadcast program, publish and update time, images
        with captions and credits, on-demand audio with direct mp3 links and
        duration, topic tags and whether a transcript is published.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Story not found — the id or URL does not
        resolve to an NPR story page
      operationId: __api_npr_articles_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NprArticlesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NprArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NprArticlesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        article:
          type: string
          minLength: 1
      type: object
      required:
        - article
    NprArticle:
      properties:
        '@type':
          type: string
          default: NprArticle
        id:
          type: string
        article_title:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
        section_url:
          anyOf:
            - type: string
            - type: 'null'
        show:
          anyOf:
            - type: string
            - type: 'null'
        show_id:
          anyOf:
            - type: string
            - type: 'null'
        show_url:
          anyOf:
            - type: string
            - type: 'null'
        program:
          anyOf:
            - type: string
            - type: 'null'
        program_slug:
          anyOf:
            - type: string
            - type: 'null'
        program_url:
          anyOf:
            - type: string
            - type: 'null'
        program_episode_id:
          anyOf:
            - type: string
            - type: 'null'
        taxonomy:
          anyOf:
            - type: string
            - type: 'null'
        station:
          anyOf:
            - type: string
            - type: 'null'
        station_url:
          anyOf:
            - type: string
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/NprArticleAuthor'
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            $ref: '#/components/schemas/NprImage'
          type: array
          default: []
        audio:
          items:
            $ref: '#/components/schemas/NprArticleAudio'
          type: array
          default: []
        tags:
          items:
            $ref: '#/components/schemas/NprArticleTag'
          type: array
          default: []
        related_articles:
          items:
            $ref: '#/components/schemas/NprRelatedArticle'
          type: array
          default: []
        has_transcript:
          type: boolean
          default: false
        is_opinion:
          type: boolean
          default: false
        content_tier:
          anyOf:
            - type: string
            - type: 'null'
        template:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - article_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NprArticleAuthor:
      properties:
        '@type':
          type: string
          default: NprArticleAuthor
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NprImage:
      properties:
        '@type':
          type: string
          default: NprImage
        image:
          type: string
        caption:
          anyOf:
            - type: string
            - type: 'null'
        credit:
          anyOf:
            - type: string
            - type: 'null'
        alt:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - image
    NprArticleAudio:
      properties:
        '@type':
          type: string
          default: NprArticleAudio
        id:
          type: string
        audio_title:
          anyOf:
            - type: string
            - type: 'null'
        duration:
          anyOf:
            - type: integer
            - type: 'null'
        audio_url:
          anyOf:
            - type: string
            - type: 'null'
        program:
          anyOf:
            - type: string
            - type: 'null'
        audio_type:
          anyOf:
            - type: string
            - type: 'null'
        episode_type:
          anyOf:
            - type: string
            - type: 'null'
        is_available:
          type: boolean
          default: false
      type: object
      required:
        - id
    NprArticleTag:
      properties:
        '@type':
          type: string
          default: NprArticleTag
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NprRelatedArticle:
      properties:
        '@type':
          type: string
          default: NprRelatedArticle
        id:
          type: string
        article_title:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - article_title
    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

````