Client libraries
Officially supported clients for the Business Radar API. Each one handles authentication, retries and cursor pagination, and every endpoint in the API reference is reachable through the same method names shown below.
- v1.23.0
Python
businessradar
pip install businessradarimport os from businessradar import BusinessRadar client = BusinessRadar( api_key=os.environ.get("BUSINESSRADAR_API_KEY"), # This is the default and can be omitted ) page = client.news.articles.list() print(page.results) - v0.8.0
TypeScript
@businessradar/businessradar
npm install @businessradar/businessradarimport BusinessRadar from '@businessradar/businessradar'; const client = new BusinessRadar({ apiKey: process.env['BUSINESSRADAR_API_KEY'], // This is the default and can be omitted }); const page = await client.news.articles.list(); const article = page.results[0]; console.log(article.external_id); - v0.5.1
PHP
businessradar/businessradar
composer require "businessradar/businessradar 0.5.1"<?php use Businessradar\Client; $client = new Client(apiKey: getenv('BUSINESSRADAR_API_KEY') ?: 'My API Key'); $page = $client->news->articles->list(); var_dump($page->external_id);
Authentication
All three clients read the API key from the BUSINESSRADAR_API_KEY environment variable, or take it as an argument to the constructor. Request a key fromsupport@businessradar.com.