# Nces K12 School Leads Scraper (`gocreative.ai/nces-k12-school-leads`) Actor

Scrape every US public K-12 school from NCES Common Core of Data. Get school name, district, address, phone, grade range, enrollment, and school type. Perfect for EdTech vendors, curriculum publishers, and school supply companies.

- **URL**: https://apify.com/gocreative.ai/nces-k12-school-leads.md
- **Developed by:** [GoCreative AI](https://apify.com/gocreative.ai) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 22.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## NCES K-12 School and District Leads

### 📊 Example output (real run)

![Sample output](https://api.apify.com/v2/key-value-stores/1ztQFHwG8acESTazI/records/nces-k12-school-leads-sample)

A real record from a live run — clean structured data, exported as CSV / JSON / Excel or via API.

Scrape public K-12 school contact data from NCES via the Urban Institute Education Data API. No API key required.

### Fields

ncesId, schoolName, districtName, districtId, street, city, state, zip, phone, website, gradeLow, gradeHigh, schoolLevel, schoolType, enrollment, latitude, longitude

### Use cases

- EdTech vendors prospecting by grade level and enrollment
- Curriculum publishers targeting elementary/middle/high
- School supply companies geo-targeting by state
- Staffing agencies building district contact lists

### Pricing

Pay Per Result - $0.01 per school record.

### Use cases

- **B2B lead generation** — build targeted prospect lists with verified, structured data
- **Sales prospecting** — find organizations and contacts that match your ICP
- **Market research & competitive intelligence** — track this niche in structured form
- **AI agents & automation** — feed agents clean external data without scraping infra
- **Data enrichment** — append fresh fields to your existing lists

### Why use this actor

- **Direct from the official source** — no stale third-party resale data
- **Structured, typed output** — ready for CSV, JSON, Excel, or API export
- **Pay-per-result** — no subscription, no minimums, only pay for data you get
- **Schedulable** — run it once or set an Apify Schedule for fresh data on autopilot

### How it works

This actor pulls data directly from the source, structures it into clean rows, and pushes each result to the dataset. It runs on Apify's infrastructure — reliable, schedulable, and pay-per-result so you only pay for data you actually get.

### FAQ

**Do I need an API key or account?** No. Just provide your input and run it.

**Can I schedule it to run automatically?** Yes — use Apify Schedules to run it hourly, daily, or weekly and get fresh data on autopilot.

**What formats can I export?** CSV, JSON, Excel, or via the Apify API.

**Can I integrate it into my own app?** Yes — call it via the Apify API and pull results directly into your pipeline.

**Is the data accurate and fresh?** Data is pulled live from the source on each run, so it reflects what's available at run time.

# Actor input Schema

## `state` (type: `string`):

Two-letter US state abbreviation (e.g. CA, TX, NY, FL).

## `schoolLevel` (type: `string`):

Filter: Elementary, Middle, High, or blank for all.

## `minEnrollment` (type: `integer`):

Only include schools with at least this many students. 0 = all.

## `maxResults` (type: `integer`):

Maximum school records to return (1-2000).

## Actor input object example

```json
{
  "state": "CA",
  "schoolLevel": "",
  "minEnrollment": 0,
  "maxResults": 200
}
```

# Actor output Schema

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "state": "CA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("gocreative.ai/nces-k12-school-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "state": "CA" }

# Run the Actor and wait for it to finish
run = client.actor("gocreative.ai/nces-k12-school-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "state": "CA"
}' |
apify call gocreative.ai/nces-k12-school-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gocreative.ai/nces-k12-school-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9SlL33bechlj0nxKL/builds/4z0GdnOTMkkeEnWcz/openapi.json
