---
canonical_url: "https://docs.composio.dev/toolkits/schooldigger"
markdown_url: "https://docs.composio.dev/toolkits/schooldigger.md"
product: "platform"
version: null
last_updated: null
---

# SchoolDigger

Search and retrieve SchoolDigger data about U.S. schools, districts, rankings, demographics, performance, and attendance boundaries.

- **Category:** education
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 8
- **Triggers:** 0
- **Slug:** `SCHOOLDIGGER`
- **Version:** 00000000_00

## Tools

### Autocomplete Districts

**Slug:** `SCHOOLDIGGER_AUTOCOMPLETE_DISTRICTS`

Find a bounded set of school districts whose names match a required partial search term, optionally filtered by state or map bounds.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Partial district name to autocomplete, such as 'Lincol'. Required by the live API. |
| `state` | string | No | Two-letter U.S. state abbreviation; omit to search nationwide. |
| `return_count` | integer | No | Maximum number of matching districts to return, from 1 to 20. |
| `box_latitude_nw` | number | No | Latitude of the northwest corner of a search box; provide all four box coordinates. Pro and Enterprise plans only. |
| `box_latitude_se` | number | No | Latitude of the southeast corner of a search box; provide all four box coordinates. Pro and Enterprise plans only. |
| `box_longitude_nw` | number | No | Longitude of the northwest corner of a search box; provide all four box coordinates. Pro and Enterprise plans only. |
| `box_longitude_se` | number | No | Longitude of the southeast corner of a search box; provide all four box coordinates. Pro and Enterprise plans only. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Autocomplete Schools

**Slug:** `SCHOOLDIGGER_AUTOCOMPLETE_SCHOOLS`

Find a bounded set of schools whose names match a required partial search term, optionally filtered by state, level, district, or map bounds.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `level` | string ("Elementary" | "Middle" | "High" | "Alt" | "Private") | No | School level to match; omit to include every level. |
| `query` | string | Yes | Partial school name to autocomplete, such as 'Lincol'. Required by the live API. |
| `state` | string | No | Two-letter U.S. state abbreviation; omit to search nationwide. |
| `district_id` | string | No | SchoolDigger district ID to search within; available on Pro, Enterprise, and Autocomplete Pro plans. |
| `return_count` | integer | No | Maximum number of matching schools to return, from 1 to 20. |
| `box_latitude_nw` | number | No | Latitude of the northwest corner of a search box; provide all four box coordinates. Pro, Enterprise, and Autocomplete Pro plans only. |
| `box_latitude_se` | number | No | Latitude of the southeast corner of a search box; provide all four box coordinates. Pro, Enterprise, and Autocomplete Pro plans only. |
| `box_longitude_nw` | number | No | Longitude of the northwest corner of a search box; provide all four box coordinates. Pro, Enterprise, and Autocomplete Pro plans only. |
| `box_longitude_se` | number | No | Longitude of the southeast corner of a search box; provide all four box coordinates. Pro, Enterprise, and Autocomplete Pro plans only. |
| `search_city_state_name` | boolean | No | Whether the query may also match city and state text. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get District

**Slug:** `SCHOOLDIGGER_GET_DISTRICT`

Return a district's complete record, including full attendance-boundary WKT and encoded polyline geometry when available.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `district_id` | string | Yes | Seven-digit SchoolDigger district ID, available as districtid from autocomplete or districtID from other district actions. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get District Rankings

**Slug:** `SCHOOLDIGGER_GET_DISTRICT_RANKINGS`

Return one page of SchoolDigger district rankings for a state, optionally selecting a ranking year.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | One-based ranking page to retrieve. |
| `year` | integer | No | Ranking year; omit for the most recent available year. |
| `state` | string | Yes | Two-letter U.S. state abbreviation whose district rankings to return. |
| `per_page` | integer | No | Number of ranked districts to return on this page, from 1 to 50. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get School

**Slug:** `SCHOOLDIGGER_GET_SCHOOL`

Return the complete SchoolDigger record for one school, including location, district, rankings, demographics, reviews, finance, and test data when available.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `school_id` | string | Yes | Twelve-digit SchoolDigger school ID returned as schoolid by school search, autocomplete, and rankings. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get School Rankings

**Slug:** `SCHOOLDIGGER_GET_SCHOOL_RANKINGS`

Return one page of SchoolDigger school rankings for a state, optionally selecting a ranking year and school level.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | One-based ranking page to retrieve. |
| `year` | integer | No | Ranking year; omit for the most recent available year. |
| `level` | string ("Elementary" | "Middle" | "High") | No | School level whose ranking list to return. |
| `state` | string | Yes | Two-letter U.S. state abbreviation whose school rankings to return. |
| `per_page` | integer | No | Number of ranked schools to return on this page, from 1 to 50. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Districts

**Slug:** `SCHOOLDIGGER_SEARCH_DISTRICTS`

Search one page of districts in a state by name, city, ZIP code, proximity, map bounds, or attendance-boundary containment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `city` | string | No | City in which to search for districts. |
| `page` | integer | No | One-based result page to retrieve. |
| `query` | string | No | Text to match against district name or city. |
| `state` | string | Yes | Two-letter U.S. state abbreviation to search. |
| `sort_by` | string ("districtname" | "distance" | "rank" | "-districtname" | "-distance" | "-rank") | No | Sort field; a leading minus sign requests descending order. |
| `per_page` | integer | No | Number of districts to return on this page, from 1 to 50. |
| `zip_code` | string | No | Five-digit ZIP code in which to search for districts. |
| `near_latitude` | number | No | Latitude around which to search; use with near_longitude and optionally distance_miles. Pro and Enterprise plans only. |
| `distance_miles` | integer | No | Search radius in miles around near_latitude and near_longitude. Omit to use the provider's 50-mile default. Pro and Enterprise plans only. |
| `near_longitude` | number | No | Longitude around which to search; use with near_latitude and optionally distance_miles. Pro and Enterprise plans only. |
| `box_latitude_nw` | number | No | Latitude of the northwest corner of a search box; provide all four box coordinates. |
| `box_latitude_se` | number | No | Latitude of the southeast corner of a search box; provide all four box coordinates. |
| `boundary_address` | string | No | Full U.S. address used to flag districts whose attendance boundary contains it. Enterprise plan only. |
| `box_longitude_nw` | number | No | Longitude of the northwest corner of a search box; provide all four box coordinates. |
| `box_longitude_se` | number | No | Longitude of the southeast corner of a search box; provide all four box coordinates. |
| `in_boundary_only` | boolean | No | Return only districts containing the supplied coordinates or boundary_address. Enterprise plan only. |
| `include_unranked_districts_in_rank_sort` | boolean | No | Whether a rank sort includes districts that have no rank. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Schools

**Slug:** `SCHOOLDIGGER_SEARCH_SCHOOLS`

Search one page of schools in a state by name, district, level, location, school attributes, or map bounds.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `city` | string | No | City in which to search for schools. |
| `page` | integer | No | One-based result page to retrieve. |
| `level` | string ("Elementary" | "Middle" | "High" | "Alt" | "Public" | "Private") | No | School level; Public includes elementary, middle, high, and alternative schools. |
| `query` | string | No | Text to match against school name or city. |
| `state` | string | Yes | Two-letter U.S. state abbreviation to search. |
| `sort_by` | string ("schoolname" | "distance" | "rank" | "-schoolname" | "-distance" | "-rank") | No | Sort field; a leading minus sign requests descending order. |
| `per_page` | integer | No | Number of schools to return on this page, from 1 to 50. |
| `zip_code` | string | No | Five-digit ZIP code in which to search for schools. |
| `is_magnet` | boolean | No | True for only magnet schools or false for only non-magnet schools. Pro and Enterprise plans only. |
| `is_charter` | boolean | No | True for only charter schools or false for only non-charter schools. Pro and Enterprise plans only. |
| `is_title_i` | boolean | No | True for only Title I schools or false for only non-Title I schools. Pro and Enterprise plans only. |
| `is_virtual` | boolean | No | True for only virtual schools or false for only non-virtual schools. Pro and Enterprise plans only. |
| `district_id` | string | No | Seven-digit SchoolDigger district ID in which to search. |
| `near_address` | string | No | Full U.S. address around which to search; coordinates are faster when known. Pro and Enterprise plans only. |
| `near_latitude` | number | No | Latitude around which to search; use with near_longitude and optionally distance_miles. Pro and Enterprise plans only. |
| `distance_miles` | integer | No | Search radius in miles around supplied coordinates or near_address. Omit to use the provider's 5-mile default. Pro and Enterprise plans only. |
| `near_longitude` | number | No | Longitude around which to search; use with near_latitude and optionally distance_miles. Pro and Enterprise plans only. |
| `box_latitude_nw` | number | No | Latitude of the northwest corner of a search box; provide all four box coordinates. |
| `box_latitude_se` | number | No | Latitude of the southeast corner of a search box; provide all four box coordinates. |
| `box_longitude_nw` | number | No | Longitude of the northwest corner of a search box; provide all four box coordinates. |
| `box_longitude_se` | number | No | Longitude of the southeast corner of a search box; provide all four box coordinates. |
| `is_title_i_schoolwide` | boolean | No | True for only school-wide Title I schools or false for only schools without that designation. Pro and Enterprise plans only. |
| `search_school_name_only` | boolean | No | Whether query should match school names only instead of names and cities. |
| `include_unranked_schools_in_rank_sort` | boolean | No | Whether a rank sort includes schools that have no rank. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
