Skip to main content
The Bonai News API is a comprehensive news aggregation and search API. It gives you access to articles, publishers, and trending topics across many languages and countries in a consistent, predictable format.

Capabilities

  • Search articles: full-text search across indexed articles with filters for language, country, publisher, paywall status, and date range.
  • Search publishers: find news publishers by name, category, country, or language.
  • Article content: fetch the full content of a specific article by URL or stable ID, as plain text or HTML.
  • Random articles: retrieve a random article for discovery and demos.
  • Trending topics: get the latest trending articles for a topic, language, and country.
  • Translations: non-English articles include per-language title and excerpt translations.
  • MCP server: connect the API to AI tools with the Model Context Protocol. See MCP server.

Base URL

All requests use the api.bonai.io/news base URL:

Authentication

Every request except GET /ping requires your API key, sent as a bearer token (recommended) or in the api-key / x-api-key header. Keys are product-scoped and created in the Bonai console. See authentication.

Versioning

The API uses header-based versioning with the api-version header. The latest version is 2026-08-01, which is also the default when the header is omitted. See API versions.

Response format

Responses in the latest version use a metadata / parameters / pagination / resource envelope:
Each endpoint names its results with a resource key: articles, article, publishers, topics, countries, or languages. Errors use a metadata + errors envelope. See errors.
Older API versions (2024-01-01) use a different envelope: { success, size, totalHits, ..., data } with camelCase field names. See API versions.

Next steps