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

# /yonhap/articles/search

> Full-text search over Yonhap News Agency articles in any of the eight editions. Filters: match the keyword against the whole article, headline or body; restrict to one desk (politics, economy, society, culture, North Korea, international, sports, entertainment); bound the dispatch date; restrict to a reporter byline; order by recency or relevance. Returns content id, headline, matched excerpt, thumbnail, dispatch time, keywords and byline.

**Price:** 1 credit

**⚠️ Common errors:** 422: The requested date window ends before the searchable index begins



## OpenAPI

````yaml /openapi/news-publishing.json post /api/yonhap/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/yonhap/articles/search:
    post:
      tags:
        - /yonhap
      summary: /yonhap/articles/search
      description: >-
        Full-text search over Yonhap News Agency articles in any of the eight
        editions. Filters: match the keyword against the whole article, headline
        or body; restrict to one desk (politics, economy, society, culture,
        North Korea, international, sports, entertainment); bound the dispatch
        date; restrict to a reporter byline; order by recency or relevance.
        Returns content id, headline, matched excerpt, thumbnail, dispatch time,
        keywords and byline.


        **Price:** 1 credit


        **⚠️ Common errors:** 422: The requested date window ends before the
        searchable index begins
      operationId: __api_yonhap_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/YonhapArticlesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/YonhapSearchArticle'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    YonhapArticlesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        keyword:
          type: string
          minLength: 1
        language:
          $ref: '#/components/schemas/YonhapLanguage'
          default: ko
        scope:
          $ref: '#/components/schemas/YonhapSearchScope'
          default: all
        category:
          $ref: '#/components/schemas/YonhapSearchCategory'
          default: all
        date_from:
          anyOf:
            - type: string
            - type: 'null'
        date_to:
          anyOf:
            - type: string
            - type: 'null'
        reporter_name:
          anyOf:
            - type: string
            - type: 'null'
        sort:
          $ref: '#/components/schemas/YonhapSearchSort'
          default: date
        count:
          type: integer
          maximum: 3000
          minimum: 1
      type: object
      required:
        - keyword
        - count
    YonhapSearchArticle:
      properties:
        '@type':
          type: string
          default: YonhapSearchArticle
        id:
          type: string
        language:
          type: string
        article_title:
          type: string
        web_url:
          type: string
        image:
          anyOf:
            - type: string
            - type: 'null'
        published_at:
          anyOf:
            - type: integer
            - type: 'null'
        keywords:
          items:
            type: string
          type: array
          default: []
        section_codes:
          items:
            type: string
          type: array
          default: []
        writer_id:
          anyOf:
            - type: string
            - type: 'null'
        writer_name:
          anyOf:
            - type: string
            - type: 'null'
        urgency:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - language
        - article_title
        - web_url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    YonhapLanguage:
      type: string
      enum:
        - ko
        - en
        - zh
        - ja
        - ar
        - es
        - fr
        - vi
    YonhapSearchScope:
      type: string
      enum:
        - all
        - title
        - body
    YonhapSearchCategory:
      type: string
      enum:
        - all
        - '01'
        - '02'
        - '05'
        - '07'
        - '10'
        - '11'
        - '12'
        - '0712'
    YonhapSearchSort:
      type: string
      enum:
        - date
        - weight
    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

````