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

# Supported topics

> Returns a list of all available news topics and their subtopics



## OpenAPI

````yaml /openapi/bonai-news-api-2024-01-01.json get /info/topics
openapi: 3.0.3
info:
  title: Bonai News API
  version: '2024-01-01'
  description: >-
    A comprehensive news aggregation and search API providing access to
    articles, publishers, and trending topics across multiple languages and
    countries. The API is versioned via the `api-version` header. This is
    version `2024-01-01` which uses a camelCase response envelope. Legacy
    clients may pin to this version.
servers:
  - url: https://api.bonai.io/news
    description: Production
security: []
paths:
  /info/topics:
    get:
      summary: Supported topics
      description: Returns a list of all available news topics and their subtopics
      operationId: getTopics
      parameters:
        - $ref: '#/components/parameters/ApiVersionHeader'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InfoTopicsResponse'
        '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'
        '429':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    ApiVersionHeader:
      name: api-version
      in: header
      required: false
      schema:
        type: string
        enum:
          - '2026-08-01'
          - '2024-01-01'
          - '2022-01-01'
      description: API version to consume. Defaults to the latest version (2026-08-01).
  schemas:
    InfoTopicsResponse:
      type: object
      required:
        - metadata
        - parameters
        - topics
      properties:
        metadata:
          $ref: '#/components/schemas/Metadata'
        parameters:
          type: object
          description: The query parameters used for this request
        topics:
          type: array
          items:
            $ref: '#/components/schemas/InfoTopic'
    ErrorResponse:
      type: object
      required:
        - success
        - code
        - message
      properties:
        success:
          type: boolean
          example: false
        code:
          type: number
          description: HTTP status code
        message:
          type: string
        fields:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              type:
                type: string
              description:
                type: string
    Metadata:
      type: object
      required:
        - id
        - took_ms
        - timestamp
      properties:
        id:
          type: string
          description: Request ID
        took_ms:
          type: number
          description: Request execution time in milliseconds
        timestamp:
          type: string
          format: date-time
          description: Request start time (ISO 8601)
    InfoTopic:
      type: object
      required:
        - id
        - name
        - allowed
        - subtopics
      properties:
        id:
          type: string
        name:
          type: string
        allowed:
          type: boolean
          description: Whether the topic is allowed on your plan
        subtopics:
          type: array
          items:
            type: object
            required:
              - id
              - name
              - allowed
            properties:
              id:
                type: string
              name:
                type: string
              allowed:
                type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Bonai API key, sent as `Authorization: Bearer <key>`. The `api-key`
        and `x-api-key` headers are also accepted.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.