Overview
The Cough Radar REST API provides geospatial coughing analytics, enabling health monitoring applications to display coughing heatmaps and retrieve classification levels (normal, elevated, high) for specific geographic locations. A typical integration displays an interactive map with cough-intensity heatmap overlays, accompanied by a panel showing the current classification and historical trends for the selected region. To build this:-
Use
/v1/tilesto get tile URLs for rendering heatmap overlays on your map. The response is compatible with standard map libraries like Google Maps, Apple Maps, and Mapbox. -
Use
/v1/classificationsto fetch the cough activity level (normal, elevated, high) and trend data for the user’s current view or location. Display the classification status and render the time series data in a graph.
Authentication
All API requests require authentication via theAPI-Key header. Your API key must have the coughRadar capability enabled.
Base URL
Endpoints
POST /v1/tiles
Fetch available heatmap tile data for a date range. Returns tile metadata including URLs for rendering map overlays. Request
Response (200 OK)
POST /v1/classifications
Get coughing classification (normal, elevated, high) for a geographic location or bounding box on a specific date. You can specify the location using either:- coordinate - A single point. The API returns aggregated data for the surrounding area (approximately 200 km radius).
- bounding_box - A geographic rectangle. The API returns aggregated data for the specified region.
*Either
coordinate or bounding_box must be provided.
Response (200 OK)