> ## 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/search

> Full-text search across the whole NPR archive — news stories, podcast episodes, journalist profiles, podcasts, broadcast shows, series, sections and blogs. Supports filtering by content kind, NPR program, topic, section, byline, producing organization, presence of broadcast audio and a publication date range, plus relevance, newest and oldest ordering.

**Price:** 1 credit



## OpenAPI

````yaml /openapi/news-publishing.json post /api/npr/articles/search
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/search:
    post:
      tags:
        - /npr
      summary: /npr/articles/search
      description: >-
        Full-text search across the whole NPR archive — news stories, podcast
        episodes, journalist profiles, podcasts, broadcast shows, series,
        sections and blogs. Supports filtering by content kind, NPR program,
        topic, section, byline, producing organization, presence of broadcast
        audio and a publication date range, plus relevance, newest and oldest
        ordering.


        **Price:** 1 credit
      operationId: __api_npr_articles_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NprArticlesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NprSearchResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    NprArticlesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        query:
          anyOf:
            - type: string
            - type: 'null'
        count:
          type: integer
          maximum: 1000
          minimum: 1
        content_type:
          anyOf:
            - $ref: '#/components/schemas/NprContentType'
            - type: 'null'
        program:
          anyOf:
            - $ref: '#/components/schemas/NprProgramName'
            - type: 'null'
        topic:
          anyOf:
            - type: string
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        source:
          anyOf:
            - type: string
            - type: 'null'
        has_audio:
          anyOf:
            - type: boolean
            - type: 'null'
        published_after:
          anyOf:
            - type: integer
            - type: 'null'
        published_before:
          anyOf:
            - type: integer
            - type: 'null'
        sort:
          $ref: '#/components/schemas/NprSearchSort'
          default: best_match
      type: object
      required:
        - count
    NprSearchResult:
      properties:
        '@type':
          type: string
          default: NprSearchResult
        id:
          type: string
        result_type:
          type: string
        document_title:
          type: string
        web_url:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        last_modified_at:
          anyOf:
            - type: integer
            - type: 'null'
        indexed_at:
          anyOf:
            - type: integer
            - type: 'null'
        section:
          anyOf:
            - type: string
            - type: 'null'
        section_url:
          anyOf:
            - type: string
            - type: 'null'
        section_tag:
          anyOf:
            - type: string
            - type: 'null'
        shows:
          items:
            $ref: '#/components/schemas/NprShowRef'
          type: array
          default: []
        podcast:
          anyOf:
            - $ref: '#/components/schemas/NprShowRef'
            - type: 'null'
        topics:
          items:
            type: string
          type: array
          default: []
        series:
          items:
            type: string
          type: array
          default: []
        blogs:
          items:
            type: string
          type: array
          default: []
        bylines:
          items:
            type: string
          type: array
          default: []
        services:
          items:
            $ref: '#/components/schemas/NprOrganization'
          type: array
          default: []
        organizations:
          items:
            $ref: '#/components/schemas/NprOrganization'
          type: array
          default: []
        social_links:
          items:
            $ref: '#/components/schemas/NprSocialLink'
          type: array
          default: []
        collection_ids:
          items:
            type: string
          type: array
          default: []
        profile_ids:
          items:
            type: string
          type: array
          default: []
        audio_id:
          anyOf:
            - type: string
            - type: 'null'
        duration:
          anyOf:
            - type: integer
            - type: 'null'
        has_audio:
          type: boolean
          default: false
        image:
          anyOf:
            - type: string
            - type: 'null'
        image_caption:
          anyOf:
            - type: string
            - type: 'null'
        image_credit:
          anyOf:
            - type: string
            - type: 'null'
        thumbnail:
          anyOf:
            - type: string
            - type: 'null'
        podcast_owner:
          anyOf:
            - type: string
            - type: 'null'
        feed_episode_title:
          anyOf:
            - type: string
            - type: 'null'
        window_title:
          anyOf:
            - type: string
            - type: 'null'
        job_title:
          anyOf:
            - type: string
            - type: 'null'
        access_level:
          anyOf:
            - type: string
            - type: 'null'
        is_explicit:
          type: boolean
          default: false
        is_text_only:
          type: boolean
          default: false
      type: object
      required:
        - id
        - result_type
        - document_title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    NprContentType:
      type: string
      enum:
        - story
        - episode
        - person
        - podcast
        - series
        - topic
        - blog
        - show
    NprProgramName:
      type: string
      enum:
        - All Things Considered
        - Morning Edition
        - Weekend Edition Saturday
        - Weekend Edition Sunday
        - Performance Today
        - Fresh Air
        - Talk of the Nation
        - Day to Day
        - Tell Me More
        - Wait Wait...Don't Tell Me!
        - News & Notes
        - The Tavis Smiley Show
        - The Bryant Park Project
        - Ask Me Another
        - The Motley Fool
        - TED Radio Hour
        - 'Special Coverage : Iraq'
        - Snap Judgment
        - Science Friday
        - Invisibilia
        - Here & Now
    NprSearchSort:
      type: string
      enum:
        - best_match
        - newest
        - oldest
    NprShowRef:
      properties:
        '@type':
          type: string
          default: NprShowRef
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        image:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    NprOrganization:
      properties:
        '@type':
          type: string
          default: NprOrganization
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
      type: object
      required:
        - name
    NprSocialLink:
      properties:
        '@type':
          type: string
          default: NprSocialLink
        service:
          type: string
        handle:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - service
    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

````