Skip to main content
This guide gets you from zero to your first Bonai News API request. You’ll need an API key from the Bonai console. See getting started if you don’t have one yet.

Search for articles

The GET /search/articles endpoint is the fastest way to get results:
The response is paginated:
Each article carries a stable id and, for non-English articles, a translations map with per-language titles and excerpts.
This response shape is for version 2026-08-01. If you’re using 2024-01-01 or earlier, the response uses a flat camelCase envelope (success, size, totalHits) and articles don’t have id or translations. See API versions for details.
Add filters to narrow results:
  • query (required): the search text.
  • language: ISO language code, for example en.
  • country: country code, for example us.
  • publisher: filter by a publisher’s URL.
  • paywall: filter by paywall status (true or false).
  • from / to: date range for published articles.
  • sort: relevance or date.
  • page / limit: pagination. limit defaults to 25 and is capped by your plan.

Fetch an article by ID

Articles include a stable id. Use it with GET /article instead of a URL:
Provide exactly one of id or url.

Next steps