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

# /spiegel/articles/search

> Search Der Spiegel and the other Spiegel-Group mastheads by keyword, by byline or by both, optionally restricted to a publication date range and to a subset of mastheads. Returns listing entries with headline, kicker, standfirst, publication time, authors, section, a subscriber-only flag and live and breaking-news flags, newest first.

**Price:** 1 credit

**⚠️ Common errors:** 422: Neither keyword nor author given, empty brands, count out of range, or published_after later than published_before



## OpenAPI

````yaml /openapi/news-publishing.json post /api/spiegel/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/spiegel/articles/search:
    post:
      tags:
        - /spiegel
      summary: /spiegel/articles/search
      description: >-
        Search Der Spiegel and the other Spiegel-Group mastheads by keyword, by
        byline or by both, optionally restricted to a publication date range and
        to a subset of mastheads. Returns listing entries with headline, kicker,
        standfirst, publication time, authors, section, a subscriber-only flag
        and live and breaking-news flags, newest first.


        **Price:** 1 credit


        **⚠️ Common errors:** 422: Neither keyword nor author given, empty
        brands, count out of range, or published_after later than
        published_before
      operationId: __api_spiegel_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/SpiegelArticlesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SpiegelSearchResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SpiegelArticlesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        keyword:
          type: string
          default: ''
        author:
          type: string
          default: ''
        count:
          type: integer
          maximum: 10000
          minimum: 1
        scope:
          $ref: '#/components/schemas/SpiegelSearchScope'
          default: full_text
        brands:
          items:
            $ref: '#/components/schemas/SpiegelBrand'
          type: array
          default:
            - spon
            - spon_paid
            - spon_international
        published_after:
          anyOf:
            - type: integer
            - type: 'null'
        published_before:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - count
    SpiegelSearchResult:
      properties:
        '@type':
          type: string
          default: SpiegelSearchResult
        id:
          type: string
        article_title:
          type: string
        heading:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          type: string
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        access_level:
          anyOf:
            - type: string
            - type: 'null'
        is_premium:
          type: boolean
          default: false
        brand:
          anyOf:
            - type: string
            - type: 'null'
        is_spiegel:
          type: boolean
          default: false
        collection:
          anyOf:
            - type: string
            - type: 'null'
        content_type:
          anyOf:
            - type: string
            - type: 'null'
        style:
          anyOf:
            - type: string
            - type: 'null'
        is_breaking:
          type: boolean
          default: false
        is_live:
          type: boolean
          default: false
        section:
          anyOf:
            - type: string
            - type: 'null'
        channel:
          anyOf:
            - $ref: '#/components/schemas/SpiegelChannel'
            - type: 'null'
        byline_prefix:
          anyOf:
            - type: string
            - type: 'null'
        byline_suffix:
          anyOf:
            - type: string
            - type: 'null'
        authors:
          items:
            $ref: '#/components/schemas/SpiegelAuthor'
          type: array
          default: []
        image_id:
          anyOf:
            - type: string
            - type: 'null'
        teaser_length:
          anyOf:
            - type: integer
            - type: 'null'
        teaser_style:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - article_title
        - web_url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SpiegelSearchScope:
      type: string
      enum:
        - full_text
        - headline_and_lead
    SpiegelBrand:
      type: string
      enum:
        - spon
        - spon_paid
        - spon_international
        - mmo
        - mmo_paid
        - hbm
        - hbm_paid
        - elf
        - elf_paid
        - effi
        - effi_paid
    SpiegelChannel:
      properties:
        '@type':
          type: string
          default: SpiegelChannel
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        sub_channel_id:
          anyOf:
            - type: string
            - type: 'null'
        sub_channel_name:
          anyOf:
            - type: string
            - type: 'null'
        sub_channel_alias:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    SpiegelAuthor:
      properties:
        '@type':
          type: string
          default: SpiegelAuthor
        name:
          type: string
        image_id:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    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

````