{"api":{"id":"api_2bc0b7106a45310d782ad8b6","slug":"ccd-district-enrollment","name":"US School District Enrollment API","description":"Total student enrollment for each US public school district in a given year, from the Common Core of Data, keyed by the district's NCES id so it joins to the district directory. Filter by state.","kind":"ready_made","visibility":"public","domain":"educationdata.urban.org","source_url":"https://educationdata.urban.org/api/v1/school-districts/ccd/enrollment/2021/grade-99/","category":"education","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":7,"created_at":"2026-12-06T04:45:48.344Z","updated_at":"2026-12-06T04:45:48.344Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"leaid","type":"string","description":"NCES district id (7 digits).","required":true,"coverage":1,"example":"3600001"},{"name":"year","type":"integer","description":"Data year.","required":false,"coverage":1,"example":2021},{"name":"fips","type":"integer","description":"State FIPS code.","required":false,"coverage":1,"example":36},{"name":"grade","type":"integer","description":"Grade code; 99 means all grades.","required":false,"coverage":1,"example":99},{"name":"race","type":"integer","description":"Race code; 99 means all races.","required":false,"coverage":1,"example":99},{"name":"sex","type":"integer","description":"Sex code; 99 means both.","required":false,"coverage":1,"example":99},{"name":"enrollment","type":"integer","description":"Number of enrolled students.","required":false,"coverage":1,"example":828}],"inputs":[{"name":"year","type":"string","description":"Data year, such as 2021.","example":"2021","required":true},{"name":"state_fips","type":"string","description":"Two-digit state FIPS code, such as 36 for New York. Leave empty for all states.","example":"36"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"enrollment":{"description":"Number of enrolled students.","type":"integer"},"fips":{"description":"State FIPS code.","type":"integer"},"grade":{"description":"Grade code; 99 means all grades.","type":"integer"},"leaid":{"description":"NCES district id (7 digits).","type":"string"},"race":{"description":"Race code; 99 means all races.","type":"integer"},"sex":{"description":"Sex code; 99 means both.","type":"integer"},"year":{"description":"Data year.","type":"integer"}},"required":["leaid"],"title":"US School District Enrollment API","type":"object"},"samples":[{"leaid":"3600001","year":2021,"fips":36,"grade":99,"race":99,"sex":99,"enrollment":828},{"leaid":"3600002","year":2021,"fips":36,"grade":99,"race":99,"sex":99,"enrollment":995},{"leaid":"3600003","year":2021,"fips":36,"grade":99,"race":99,"sex":99,"enrollment":512}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"enrollment":1,"fips":1,"grade":1,"leaid":1,"race":1,"sex":1,"year":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_2bc0b7106a45310d782ad8b6/run","openapi":"https://pullrow.dev/v1/apis/api_2bc0b7106a45310d782ad8b6/openapi.json","contract":"https://pullrow.dev/v1/apis/api_2bc0b7106a45310d782ad8b6/contract.json","page":"https://pullrow.dev/catalog/ccd-district-enrollment"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Returns the all-grades, all-races, all-sexes total only (grade 99, race 99, sex 99), one record per district.","Data lags: the newest year available is usually one to three years old, and some districts have no value in a year.","Source is the Urban Institute Education Data Portal, built on the National Center for Education Statistics; credit them when you publish.","Requests for a year the source does not hold return no records."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"leaid","label":"Leaid","description":"NCES district id (7 digits).","group":"Basics","shown":true,"written":false},{"name":"year","label":"Data year","description":"","group":"Dates","shown":true,"written":false},{"name":"fips","label":"State FIPS code","description":"","group":"Basics","shown":true,"written":false},{"name":"grade","label":"Grade","description":"Grade code; 99 means all grades.","group":"Basics","shown":true,"written":false},{"name":"race","label":"Race","description":"Race code; 99 means all races.","group":"Basics","shown":true,"written":false},{"name":"sex","label":"Sex","description":"Sex code; 99 means both.","group":"Basics","shown":true,"written":false},{"name":"enrollment","label":"Enrollment","description":"Number of enrolled students.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"year","label":"Year","help":"Data year, such as 2021.","example":"2021","written":false},{"name":"state_fips","label":"State fips","help":"Two-digit state FIPS code, such as 36 for New York. Leave empty for all states.","example":"36","written":false}]}},"incidents":[]}