Proof of concept: This explorer simulates the GC Rules API by reading program JSON files directly in your browser. In production, these would be real API calls to a server. The JSON responses you see here are identical to what the API returns.
API Explorer
Try the GC Rules API endpoints. Select an endpoint, adjust the parameters, and see the JSON response. When running the real API locally (uvicorn api.main:app --port 8000), these same endpoints are available at http://localhost:8000.
Endpoint
Request body (JSON)
GET /programs
← Click "Execute" to see the response
About the API
The GC Rules API exposes program rules, eligibility criteria, and benefit calculations as structured JSON. It's designed so that AI assistants, web apps, and internal tools can query authoritative program data instead of scraping web pages or relying on training data.
- GET endpoints
- Read program data, parameters, eligibility rules, and amounts.
- POST /calculate
- Submit an applicant's situation and receive calculated benefit amounts. All math uses parameters from the JSON — zero hardcoded values.
- POST /check-eligibility
- Run inputs through a decision table to determine eligibility status.
- Date modified: