# Zillow School Scraper (`axlymxp/zillow-school-scraper`) Actor

Scrapes school data from Zillow's mobile API within specified geographic boundaries. Returns school name, address, rating, type (public/private/charter), level (elementary/middle/high), coordinates and other details. Allows filtering by school rating, level and type.

- **URL**: https://apify.com/axlymxp/zillow-school-scraper.md
- **Developed by:** [axly](https://apify.com/axlymxp) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 24 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 results

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Zillow School Scraper

This Apify actor scrapes school data from Zillow's mobile API within specified geographic boundaries.

### Input Parameters

The actor accepts the following input parameters:

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| eastLongitude | number | Eastern boundary longitude | -73.700272 |
| northLatitude | number | Northern boundary latitude | 40.917577 |
| southLatitude | number | Southern boundary latitude | 40.477399 |
| westLongitude | number | Western boundary longitude | -74.25909 |
| minimumSchoolRating | number | Minimum rating to filter schools by (1-10) | 1 |
| includeSchoolElementaryLevel | boolean | Whether to include elementary schools | true |
| includeSchoolMiddleLevel | boolean | Whether to include middle schools | true |
| includeSchoolHighLevel | boolean | Whether to include high schools | true |
| includeSchoolPrivateType | boolean | Whether to include private schools | true |
| includeSchoolPublicType | boolean | Whether to include public schools | true |
| includeSchoolCharterType | boolean | Whether to include charter schools | true |
| showUnratedSchools | boolean | Whether to include unrated schools | true |

### Output Format

The actor outputs school data in JSON format with the following fields:

- School name
- Address
- Rating (1-10)
- School type (public/private/charter)
- School level (elementary/middle/high)
- Geographic coordinates
- Additional school details

### Example Usage

```json
{
  "eastLongitude": -73.700272,
  "northLatitude": 40.917577,
  "southLatitude": 40.477399,
  "westLongitude": -74.25909,
  "minimumSchoolRating": 1,
  "includeSchoolElementaryLevel": true,
  "includeSchoolMiddleLevel": true,
  "includeSchoolHighLevel": true,
  "includeSchoolPrivateType": true,
  "includeSchoolPublicType": true,
  "includeSchoolCharterType": true,
  "showUnratedSchools": true
}
```

# Actor input Schema

## `eastLongitude` (type: `string`):

Eastern boundary longitude coordinate, please enter a floating point number between -180 and 180

## `northLatitude` (type: `string`):

Northern boundary latitude coordinate, please enter a floating point number between -90 and 90

## `southLatitude` (type: `string`):

Southern boundary latitude coordinate, please enter a floating point number between -90 and 90

## `westLongitude` (type: `string`):

Western boundary longitude coordinate, please enter a floating point number between -180 and 180

## `minimumSchoolRating` (type: `integer`):

Minimum rating to filter schools by (1-10)

## `includeSchoolElementaryLevel` (type: `boolean`):

Whether to include elementary schools in results

## `includeSchoolMiddleLevel` (type: `boolean`):

Whether to include middle schools in results

## `includeSchoolHighLevel` (type: `boolean`):

Whether to include high schools in results

## `includeSchoolPrivateType` (type: `boolean`):

Whether to include private schools in results

## `includeSchoolPublicType` (type: `boolean`):

Whether to include public schools in results

## `includeSchoolCharterType` (type: `boolean`):

Whether to include charter schools in results

## `showUnratedSchools` (type: `boolean`):

Whether to include schools without ratings in results

## Actor input object example

```json
{
  "eastLongitude": "-73.700272",
  "northLatitude": "40.917577",
  "southLatitude": "40.477399",
  "westLongitude": "-74.25909",
  "minimumSchoolRating": 1,
  "includeSchoolElementaryLevel": true,
  "includeSchoolMiddleLevel": true,
  "includeSchoolHighLevel": true,
  "includeSchoolPrivateType": true,
  "includeSchoolPublicType": true,
  "includeSchoolCharterType": true,
  "showUnratedSchools": true
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("axlymxp/zillow-school-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("axlymxp/zillow-school-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call axlymxp/zillow-school-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axlymxp/zillow-school-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cyCUZo5tE40f8Xhah/builds/c62OdzFNXksriWvrC/openapi.json
