# 2s.io US Public K-12 School Lookup

> 2s.io US Public K-12 School Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.00144/call, status unknown (last checked 2026-09-14).

Search and retrieve detailed records for ~102,000 US public K-12 schools from NCES Common Core of Data, filtering by name, district, state, city, ZIP, or exact NCES ID

## Facts

- Endpoint: GET https://2s.io/api/edu/school-lookup
- Price: $0.00144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-us-public-k-12-school-lookup-473114e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZCgcjfzgPHlgp12UqCrkl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-us-public-k-12-school-lookup-473114e8
```

Example prompt: Can you find all public middle schools in Austin, Texas — I want their names, addresses, enrollment numbers, and NCES IDs?

## When to prefer this

Use this endpoint when you need structured, authoritative data on US public K-12 schools from federal NCES records, especially when filtering by geography (state, city, ZIP), school name, or district. Prefer this over general web search when you need machine-readable fields like enrollment, grade span, school type, charter/magnet status, or precise lat/lon coordinates. For higher education, use the sibling /api/edu/college-scorecard endpoint instead.

## Known failure modes

- No results returned if the name, city, ZIP, or district string does not partially match any record
- Invalid state code (not a valid 2-letter US state abbreviation) may return empty results
- ncessch must be exactly 12 digits; malformed IDs will not match
- Overly broad queries may return up to 100 results per page, requiring pagination to retrieve all matches
- Payment failure (402) if USDC balance is insufficient for the $0.00144 per-call fee

## How this service works

Look up any US public K-12 school (~102k, NCES Common Core of Data). Search by name (partial), district (LEA name, partial), state (2-letter), city, zip, or exact ncessch (12-digit NCES id). Each school: NCES id, name, district + LEA id, address, phone, lat/lon, school level (1=primary 2=middle 3=high 4=other) and type (1=regular 2=special-ed 3=vocational 4=alternative), charter/magnet/virtual flags, enrollment, teacher FTE, grade span, CCD year. Results ordered by enrollment. Higher-ed sibling: /api/edu/college-scorecard. Public-domain federal data.

## Output

A list of public K-12 school records ordered by enrollment, each containing: NCES school ID, school name, district name and LEA ID, full address, phone number, latitude/longitude, school level (primary/middle/high/other), school type (regular/special-ed/vocational/alternative), charter/magnet/virtual flags, total enrollment, teacher FTE, grade span, and CCD year. Results are paginated via limit and offset.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "name": "Elementary",
   "limit": 10,
   "state": "CA",
   "offset": 0
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "zip": {
       "type": "string"
      },
      "city": {
       "type": "string"
      },
      "name": {
       "type": "string",
       "description": "School name, partial match."
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 100,
       "minimum": 1
      },
      "state": {
       "type": "string",
       "description": "2-letter state code."
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "minimum": 0
      },
      "ncessch": {
       "type": "string",
       "description": "Exact 12-digit NCES school id."
      },
      "district": {
       "type": "string",
       "description": "District (LEA) name, partial match."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-us-public-k-12-school-lookup-473114e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
