API Documentation
CrownWatch provides a public REST API for searching officials, viewing violations, and verifying cryptographic proofs.
Endpoints
/api/v1/civic-registry/statsRegistry statistics (total reports, officials, agencies, jurisdictions)
/api/v1/civic-registry?search=&country=&badge=&page=Search officials by name, employee ID, or country
/api/v1/civic-registry/agencies?search=&country=&type=&page=Search agencies by name, country, or type
/api/v1/civic-registry/suggest?q=Auto-suggest officials and agencies (min 2 chars)
/api/v1/civic-registry/:idGet official profile with violations and stats
/api/v1/civic-registry/agencies/:idGet agency profile with officials and violations
/api/v1/civic-registry/recent?limit=10Recent violation filings
/api/v1/civic-registry/violation-typesList all violation categories and types
/api/v1/civic-registry/verify/:hashVerify report hash against ledger and OTS
/api/v1/civic-registry/map/violationsGeo-located violations for map display
/api/v1/civic-registry/officialsRegister a new official
/api/v1/civic-registry/agenciesRegister a new agency
/api/v1/civic-registry/violationsFile a violation report ($5 donation required)
/api/v1/civic-registry/responsesFile a response to a violation
/api/v1/civic-registry/donateInitiate a donation
/api/v1/civic-registry/healthHealth check
/api/v1/civic-registry/feed.xmlRSS feed of recent filings
Quick Start
Search for an Official
curl https://crownwatch.org/api/v1/civic-registry?search=trudeauGet Registry Stats
curl https://crownwatch.org/api/v1/civic-registry/statsVerify a Report Hash
curl https://crownwatch.org/api/v1/civic-registry/verify/SHA256_HASHEmbeddable Widget
Embed an official's trust badge on your website:
<iframe src="https://crownwatch.org/embed/OFFICIAL_ID" width="350" height="200" frameborder="0"></iframe>Rate Limits
- Read Endpoints
- 60 req/min per IP
- Write Endpoints
- 10 req/min per IP
- Suggest Endpoint
- 30 req/min per IP
Rate-limited requests return HTTP 429. Contact us if you need higher limits for legitimate use.
Data Policy
All data served by the CrownWatch API is public. Reports, trust scores, and official profiles are freely accessible.
If you build something with this API, we'd love to hear about it: [email protected]