---
title: US Schools Directory API
slug: us-schools-directory
url: https://apyhub.com/martin10291/service/us-schools-directory
provider: Martin Petrov
categories: [Retrieval Kit, Verification Kit]
tags: [school-directory, district-lookup, nces, education-data, school-search]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# US Schools Directory API

US Schools Directory API finds schools and districts by name, ZIP, city, state, NCES ID, or coordinates. Get JSON rows. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/us-schools-directory` | What it does Returns school and district lookup results for U.S. education data, using the request… | 100 |

## Endpoint reference

### Schools API - US School Directory & District Lookup

`POST https://api.eu.apyhub.com/martin10291/us-schools-directory` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `lat` | body | number | no | near mode: centre latitude (use with lon instead of zip). |
| `lon` | body | number | no | near mode: centre longitude. |
| `zip` | body | string | no | 5-digit ZIP. search: schools in this ZIP; near: centre of the radius. |
| `city` | body | string | no | City name (search mode), e.g. Austin. |
| `mode` | body | string | no | search = filter by name/city/state/ZIP/district; near = schools within radiusMiles of lat/lon or a ZIP; school = one or more schools by NCES id; district = all schools of a district (LEAID or name) p… |
| `name` | body | string | no | Part of the school name, case-insensitive (search mode), e.g. Lincoln. Example: `Lincoln`. |
| `level` | body | array of string | no | Public schools only: elementary, middle, high, secondary, prekindergarten, other. |
| `limit` | body | integer | no | 1-5000, default 100. Default: `20`. Example: `100`. |
| `state` | body | string | no | 2-letter code or full name, e.g. CA or California. Example: `CA`. |
| `ncesIds` | body | array of string | no | school mode: up to 50 NCES school ids (12-digit public NCESSCH or 8-character private PPIN). |
| `queries` | body | array of string | no | bulk mode: up to 50 objects, each one an input of another mode, e.g. {"mode":"near","zip":"10001","radiusMiles":1}. A failing query returns an error row; the others still answer. |
| `district` | body | string | no | District NCES LEAID (7 digits) or district name (search and district modes), e.g. 0622710 (Los Angeles Unified). |
| `schoolType` | body | string | no | public (default), private or all. One of: public, private, all. Example: `public`. |
| `radiusMiles` | body | number | no | near mode: 0.1-50 miles, default 5. Rows are sorted by distanceMiles. Example: `5`. |

#### Quickstart

Look up schools or districts with a simple search request using a city, ZIP, or name.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/us-schools-directory" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "search",
    "city": "Austin",
    "limit": 20
  }'
```

#### What you'll get back

Returns a JSON object with `billed` and `count` integers, plus an `items` array of result objects. Each item can include fields like `name`, `state`, `city`, `zip`, `ncesId`, `rowType`, and other school or district details depending on the match.

```json
{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "name": "Lincoln High School",
      "city": "Austin",
      "state": "TX",
      "ncesId": "480123000001",
      "rowType": "school"
    }
  ]
}
```

## About

## What it does

The US Schools Directory API returns school and district records for U.S. education data. Send a search term, ZIP, city, state, district, NCES school IDs, or `lat` and `lon`. You can also choose `mode` like `search`, `near`, `school`, `district`, or `bulk`.

Use `search` to filter by school name, city, state, ZIP, or district. Use `near` with `radiusMiles` to find schools near a ZIP or a coordinate pair. Use `school` for one or more NCES ids, and `district` for all schools in one district plus a summary row. Bulk mode accepts up to 50 queries.

You get rows with school name, address, city, state, ZIP, county, district, level, type, enrollment, and staff data. Near results also include `distanceMiles`. Bulk results can include an error row for one failed query while the other rows still return.

Teams use the US Schools Directory API for school search in forms, district selection, and address-based school checks. They also use it to show nearby schools on maps and to add school data to education apps.

To turn a street address into coordinates for `near` searches, use the [Geocode Addresses API](https://apyhub.com/martin10291/service/geocode-official-addresses). To check an address before you search, add the [Address Validation & Location Lookup API](https://apyhub.com/quadlem/service/address-validation).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/us-schools-directory
