> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getaptly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get nearby schools for a property



## OpenAPI

````yaml /portal/openapi.yaml get /schools/{locationId}
openapi: 3.0.3
info:
  title: Aptly Portal API
  description: >
    HTTP API for the Aptly rental application screening portal. Used by
    prospective tenants, showing agents, and property management staff.
  version: 1.0.0
servers:
  - url: https://app.getaptly.com/api/portal
    description: Production
  - url: https://www.workturbo.net/api/portal
    description: Staging
  - url: http://localhost:3000/api/portal
    description: Development
security: []
paths:
  /schools/{locationId}:
    get:
      tags:
        - Context & Locations
      summary: Get nearby schools for a property
      operationId: get-schools-locationid
      parameters:
        - name: locationId
          in: path
          required: true
          schema:
            type: string
        - name: distance
          in: query
          schema:
            type: integer
            default: 25
        - name: limit
          in: query
          schema:
            type: integer
            default: 10
      responses:
        '200':
          description: Array of school objects
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    _id:
                      type: string
                    name:
                      type: string
                    type:
                      type: string
                    rating:
                      type: integer
                    distance:
                      type: number
                    address:
                      type: string
                    url:
                      type: string
                      format: uri
      security: []

````