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

# Story coverage

<Note>**Polymorphic response.** `news_articles` items vary by `type` — `article`, `story`, `storyline`, or `social_post`.</Note>


## OpenAPI

````yaml /openapi/google-news-api.json get /stories
openapi: 3.0.3
info:
  title: Google News API
  version: '2026-05-25'
  description: >-
    API for fetching news from Google News with clustering, topics, and
    frontpage support.
servers:
  - url: https://api.bonai.io/google-news
    description: Production
security: []
paths:
  /stories:
    get:
      summary: Story coverage
      parameters:
        - $ref: '#/components/parameters/ApiVersionHeader'
        - name: story_id
          in: query
          required: true
          schema:
            type: string
        - name: country
          in: query
          schema:
            type: string
            default: US
        - name: language
          in: query
          schema:
            type: string
            default: en
      responses:
        '200':
          description: Successful story results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StoryResponse'
        '400':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  parameters:
    ApiVersionHeader:
      name: api-version
      in: header
      required: false
      schema:
        type: string
        enum:
          - '2026-05-25'
          - '2024-01-01'
          - '2022-01-01'
      description: API version to consume. Defaults to the latest version (2026-05-25).
  schemas:
    StoryResponse:
      type: object
      required:
        - metadata
        - parameters
        - news_articles
        - navigation_links
      properties:
        metadata:
          $ref: '#/components/schemas/Metadata'
        parameters:
          type: object
          description: The query parameters used for this request
        news_articles:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/Article'
              - $ref: '#/components/schemas/Story'
              - $ref: '#/components/schemas/Storyline'
              - $ref: '#/components/schemas/SocialPost'
          description: >-
            Polymorphic list. Each item's `type` is `article`, `story`,
            `storyline`, or `social_post`.
        navigation_links:
          type: array
          items:
            type: object
            required:
              - name
              - topic_id
            properties:
              name:
                type: string
              topic_id:
                type: string
        title:
          type: string
    ErrorResponse:
      type: object
      required:
        - metadata
        - errors
      properties:
        metadata:
          type: object
          required:
            - id
            - took_ms
            - timestamp
          properties:
            id:
              type: string
            took_ms:
              type: number
              description: Request execution time in milliseconds
            timestamp:
              type: string
              format: date-time
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                description: Machine-readable error code
                example: INVALID_PARAMETER
              message:
                type: string
              details:
                type: object
    Metadata:
      type: object
      properties:
        id:
          type: string
          format: uuid
        total_hits:
          type: integer
          description: Total number of matching items. Omitted when unknown.
        timestamp:
          type: string
          format: date-time
          description: Request start time (ISO 8601)
        took_ms:
          type: number
          format: float
          description: Query execution time in milliseconds
      required:
        - id
        - took_ms
        - timestamp
    Article:
      type: object
      properties:
        type:
          type: string
          enum:
            - article
        title:
          type: string
        url:
          type: string
        date:
          type: string
          format: date-time
        image:
          type: string
          nullable: true
        source:
          $ref: '#/components/schemas/Publisher'
          description: The publishing source of the article
        authors:
          type: array
          items:
            type: string
    Story:
      type: object
      properties:
        type:
          type: string
          enum:
            - story
        story_id:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        news_articles:
          type: array
          items:
            $ref: '#/components/schemas/Article'
    Storyline:
      type: object
      properties:
        type:
          type: string
          enum:
            - storyline
        title:
          type: string
          nullable: true
        news_articles:
          type: array
          items:
            $ref: '#/components/schemas/Article'
    SocialPost:
      type: object
      required:
        - type
        - text
        - url
        - published_at
        - image
        - author
      properties:
        type:
          type: string
          enum:
            - social_post
        text:
          type: string
        url:
          type: string
        published_at:
          type: string
          format: date-time
        image:
          type: string
          nullable: true
        author:
          type: object
          required:
            - username
            - display_name
            - avatar
          properties:
            username:
              type: string
            display_name:
              type: string
              nullable: true
            avatar:
              type: string
              nullable: true
    Publisher:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
        favicon:
          type: string
          description: Publisher favicon, or a {origin}/favicon.ico fallback.
        publication_id:
          type: string
          nullable: true
      required:
        - name
        - url
  securitySchemes:
    apiKey:
      type: apiKey
      name: api-key
      in: header
      description: >-
        Your Bonai API key. Create one in the Bonai console
        (https://console.bonai.io).

````