Post Secondary Schools Inside Bounding Box

Overview

The Post Secondary Schools Inside Bounding Box API retrieves information about Post Secondary Schools within a specified geographical bounding box. This API lets developers obtain details about multiple Post Secondary Schools in a region.

Base URL

The base URL for the API is https://api.realtyfeed.com.

Endpoint

Post Secondary Schools Inside the Bounding Box

Endpoint

POST /geo/school/postsecondary_school/boundingbox

Request Body

  • bounding_box (object): The bounding box that defines the geographical area. It should include the top_left and bottom_right coordinates.

    Example:

  • { "top_left": { "lat": 40, "lon": -100 }, "bottom_right": { "lat": 37, "lon": -98 } }

Response

  • 200 OK: Returns a JSON response containing information about Post Secondary Schools within the specified bounding box.

    Example:

  • { "data": [ { "UNITID": "100654", "NAME": "Alabama A & M University", "STREET": "4900 Meridian Street", "CITY": "Normal", "STATE": "AL", "ZIP": "35762", "STFIP": "01", "CNTY": "01089", "NMCNTY": "Madison County", "LOCALE": "12", "LAT": 34.783368, "LON": -86.568502, "CBSA": "26620", "NMCBSA": "Huntsville, AL", "CBSATYPE": "1", "CSA": "290", "NMCSA": "Huntsville-Decatur, AL", "CD": "0105", "SLDL": "01019", "SLDU": "01007", "SCHOOLYEAR": "2022-2023", "geometry": [ -86.568502, 34.783368 ] } ], "total": 6812 }
  • 400 Bad Request: If an invalid bounding box is provided.

  • 404 Not Found: If no Post Secondary School is found within the specified bounding box.

Example

Request:

POST /geo/school/postsecondary_school/boundingbox { "top_left": { "lat": 40, "lon": -100 }, "bottom_right": { "lat": 37, "lon": -98 } }

Response:

Usage

To use the Post Secondary Schools Inside Bounding Box API, perform a POST request to the specified endpoint with the bounding box coordinates provided in the request body. The API will respond with information about Post Secondary Schools within the specified bounding box.

Error Handling

  • 400 Bad Request: If an invalid bounding box is provided, the API will respond with a 400 status code and an error message in the response body.

  • 404 Not Found: If no Post Secondary School is found within the specified bounding box, the API will respond with a 404 status code and an error message in the response body.