Skip to content
Business RadarLog in

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.

  • Python

    businessradar

    v1.23.0
    pip install businessradar
    import 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)
  • TypeScript

    @businessradar/businessradar

    v0.8.0
    npm install @businessradar/businessradar
    import 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);
  • PHP

    businessradar/businessradar

    v0.5.1
    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.