API Documentation & Embeds
Integrate verified Kenyan campaign finance intelligence into your newsroom CMS, civic dashboards, and academic research pipelines.
Public REST Endpoints
/api/export/reportsExport verified and reviewed incident reports in CSV or JSON format.
format—csvorjson(default:csv)status—verified,under_review,allcounty— e.g.Nairobi,Mombasa,Kisumucategory— e.g.misuse-of-public-resources,vote-buying
/api/press-kitDownload latest platform statistical briefing, high-res SVG brand logos, and sample CSV data.
/api/intelligenceQuery 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/ki/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/ki/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.