Loading…
Loading…
Free public REST API. All responses are JSON. Base URL: https://crossingthefloor.ca
/api/crossingsList all crossings with optional filtering and pagination.
level(string)Filter by level: "federal" or "provincial"province(string)Filter by province namecategory(string)Filter by categoryyearFrom(number)Minimum year (inclusive)yearTo(number)Maximum year (inclusive)search(string)Search name, why, whatHappened fieldspage(number)Page number (default: 1)perPage(number)Results per page (default: 50){ rows: Crossing[], total: number, page: number, perPage: number }/api/crossings/:slugGet a single crossing by its URL slug, including sources, events, quotes, and annotations.
CrossingFullDetail | { error: "Not found" }/api/erasList all historical eras with their date ranges and descriptions.
Era[]/api/glossaryList all glossary terms with bilingual definitions.
GlossaryTerm[]/api/searchFull-text search across all crossing fields.
q(string)Search query (required)Crossing[]/api/statisticsAggregate statistics across all crossings.
{ total, federal, provincial, gotCabinet, reelected, notable }/api/persons/:slugGet a person with their crossings, cabinet and senate appointment counts.
{ person, crossings, cabinetCount, senateCount }The API is rate-limited to 1000 requests per hour per IP address. For higher limits, please contact us.
All data is provided under the Creative Commons Attribution 4.0 International License (CC BY 4.0). You are free to share and adapt the data, provided you give appropriate credit.