Skip to main content
Open Civic Data API

API Documentation & Embeds

Integrate verified Kenyan campaign finance intelligence into your newsroom CMS, civic dashboards, and academic research pipelines.

Public REST Endpoints

GET
/api/export/reports
No Auth Required

Export verified and reviewed incident reports in CSV or JSON format.

https://knightwatch.ke/api/export/reports?format=csv
Query Parameters:
  • format — csv or json (default: csv)
  • status — verified, under_review, all
  • county — e.g. Nairobi, Mombasa, Kisumu
  • category — e.g. misuse-of-public-resources, vote-buying
GET
/api/press-kit
ZIP Archive

Download latest platform statistical briefing, high-res SVG brand logos, and sample CSV data.

https://knightwatch.ke/api/press-kit
POST
/api/intelligence
JSON RPC

Query synthesized entity intelligence records by politician name or political party slug.

// Request Body (JSON)
{
  "q": "United Democratic Alliance",
  "type": "party",
  "campaignPeriod": "2022"
}

Embeddable Newsroom Widgets

1. National Incident Map Widget

Responsive interactive Leaflet map embeddable in news articles and blog posts:

<iframe src="https://knightwatch.ke/mer/embed/map" width="100%" height="480" frameborder="0" title="Knight Watch Kenya - Incident Map"></iframe>

2. Violation Category Donut Widget

Live categorical distribution chart powered by Recharts:

<iframe src="https://knightwatch.ke/mer/embed/chart" width="100%" height="380" frameborder="0" title="Knight Watch Kenya - Violation Categories"></iframe>

Cellular Gateway Protocol

In addition to REST endpoints, Knight Watch maintains active USSD aggregation bindings (*384*11400#) and SMS shortcode integrations (38383) powered by Africa's Talking and Safaricom SDP.