school_enrolment
B.C. K-12 enrolment and FTE (province, school district or school)
Student enrolment from the Ministry of Education and Child Care, 2020/2021 to the latest school year, for the province, a school district or one school: total, Indigenous, English language learner, French immersion, disabilities or diverse abilities, resident and adult enrolment, plus total FTE. level is "district" (default, every grade and grade group, public and independent), "province" or "school" (all grades together only; per-grade school rows are not stored). grade defaults to "All Grades"; others are 01 to 12, KF, KH, All Kindergarten, All Elementary, All Secondary, Elementary Ungraded, Secondary Ungraded, Graduated Adult. district and school match when every word you give appears in the name (any order, any case); district may be the 3-digit district number and school the 8-digit school number (which also finds years under an earlier name). sector is public, independent or total (province rows only have Province-Total, which already includes both). Small counts are masked by the Ministry: they come back as null and are named in masked, never 0. Aggregates only; no student data. To find a school's name and district first, use school_lookup.
Cost: 1 unit of your allowance (see Rate limits).
Parameters
school_year(string, optional)district(string, optional): min length 1, max length 60school(string, optional): min length 1, max length 60sector(public,independent,total, optional)limit(integer, optional): min 1, max 100, default25offset(integer, optional): min 0, max 100000, default0level(province,district,school, optional): default"district"grade(string, optional): min length 1, max length 40, default"All Grades"
REST
curl -X POST https://api.bcmcp.ca/v1/tools/school_enrolment \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{}'MCP
Call the tool school_enrolment with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"school_enrolment","arguments":{}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.