Realtor.com Nearby Schools API Get the schools near one property, grouped by up to limit_per_level schools per school level. Each school has a name, distance in miles, rating, education levels, funding type, student count, grades and coordinates.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
2 optional filters available.
string
Required
Realtor.com property id, 5 to 20 digits. Example: 7707272774. Get one from the search endpoint or from an address result of the autocomplete endpoint.
1234567890
number
Optional
Search radius in miles, 0.5 to 25. Default 5.
10
integer
Optional
Schools per school level, 1 to 10. Default 3.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"schools": [
{
"name": "River Oaks Elementary School",
"grades": [
"K",
"1",
"2",
"3",
"4",
"5"
],
"rating": 6,
"coordinates": {
"lat": 30.408829,
"lon": -97.687045
},
"funding_type": "public",
"student_count": 551,
"distance_miles": 1.4,
"education_levels": [
"elementary"
]
},
{
"name": "Westview Middle School",
"grades": [
"6",
"7",
"8"
],
"rating": 2,
"coordinates": {
"lat": 30.416679,
"lon": -97.689493
},
"funding_type": "public",
"student_count": 770,
"distance_miles": 1.9,
"education_levels": [
"middle"
]
}
],
"radius_mi": 5,
"property_id": "7707272774"
},
"meta": {
"billable": true,
"endpoint_family": "schools"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter is missing or invalid. This response is not billable.
{
"errors": {
"property_id": [
"The value is not valid."
]
},
"message": "The request validation failed"
}Property Not Found
No property has this id. This response is not billable.
{
"meta": {
"attempts": 1,
"billable": false,
"retryable": false
},
"error": {
"message": "The requested Realtor.com property was not found.",
"failure_type": "not_found"
},
"success": false
}Temporarily Unavailable
Realtor.com did not answer after several attempts. This response is not billable. Retry after a short pause.
{
"meta": {
"attempts": 3,
"billable": false,
"retryable": true
},
"error": {
"message": "Realtor.com data is temporarily unavailable. Please retry.",
"failure_type": "upstream_blocked"
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.