Schools by District
curl --request GET \
--url https://api.ihuus.com/v1/schools/search/school-by-district \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ihuus.com/v1/schools/search/school-by-district"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ihuus.com/v1/schools/search/school-by-district', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ihuus.com/v1/schools/search/school-by-district",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ihuus.com/v1/schools/search/school-by-district"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ihuus.com/v1/schools/search/school-by-district")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ihuus.com/v1/schools/search/school-by-district")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data_source": "NCES Common Core of Data (CCD)",
"data_vintage": 2025,
"schools": [
{
"distance_meters": 1240.5,
"highest_grade": 12,
"lat": 37.3382,
"lea_id": "0602310",
"lea_name": "San Jose Unified School District",
"level": "High",
"lon": -121.8863,
"lowest_grade": 9,
"name": "Lincoln High School",
"nces_id": "060231001587",
"rating": 7
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}Schools & Ratings
Schools by District
Returns schools belonging to a specific school district, identified by its NCES Local Education Agency (LEA) identifier. Results are ordered alphabetically by school name.
Use the districts endpoint to look up LEA identifiers for a given location.
GET
/
schools
/
search
/
school-by-district
Schools by District
curl --request GET \
--url https://api.ihuus.com/v1/schools/search/school-by-district \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ihuus.com/v1/schools/search/school-by-district"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ihuus.com/v1/schools/search/school-by-district', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ihuus.com/v1/schools/search/school-by-district",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ihuus.com/v1/schools/search/school-by-district"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ihuus.com/v1/schools/search/school-by-district")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ihuus.com/v1/schools/search/school-by-district")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data_source": "NCES Common Core of Data (CCD)",
"data_vintage": 2025,
"schools": [
{
"distance_meters": 1240.5,
"highest_grade": 12,
"lat": 37.3382,
"lea_id": "0602310",
"lea_name": "San Jose Unified School District",
"level": "High",
"lon": -121.8863,
"lowest_grade": 9,
"name": "Lincoln High School",
"nces_id": "060231001587",
"rating": 7
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
Response
Successful Response
Schools matching the search criteria.