{
  "openapi": "3.1.0",
  "info": {
    "title": "NEO Rental Agent public API",
    "version": "1.0.0",
    "summary": "Read-only: available rentals and rent estimates for Northeast Ohio.",
    "description": "Free, read-only, no authentication. NEO Rental Agent is a property management company and licensed real estate brokerage at 1927 Cooper Foster Park Rd, Suite A, Amherst, OH 44001, phone (440) 240-8406. Estimates are benchmarks, not quotes or appraisals. Nothing here lets anyone apply, submit a form, or reach tenant, owner, or account data. Guide for AI tools: https://neohiorent.com/llms.txt",
    "contact": {
      "name": "NEO Rental Agent",
      "url": "https://neohiorent.com/contact.html"
    }
  },
  "servers": [
    {
      "url": "https://neohiorent.com"
    }
  ],
  "paths": {
    "/api/rentals.json": {
      "get": {
        "operationId": "listAvailableRentals",
        "summary": "Current available rental units",
        "description": "Static JSON rebuilt daily from AppFolio. Includes address, rent, beds, baths, square feet when known, photos, unit page, apply link, and availability.",
        "responses": {
          "200": {
            "description": "All currently listed units.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RentalFeed"
                }
              }
            }
          }
        }
      }
    },
    "/api/estimate.php": {
      "get": {
        "operationId": "estimateRent",
        "summary": "Estimated monthly rent for an address in Lorain, Cuyahoga, Medina, Summit or Erie County, Ohio",
        "description": "HUD FY2027 Small Area Fair Market Rent for the ZIP x 0.90, adjusted with county facts (living area, year built, baths, condition). Returns the estimate and a typical range (-10% / +10%). Addresses outside those counties are rejected. Rate limited to 6 requests a minute and 120 a day per client (shared with the HTML page at /estimate). Never returns owner names or mailing addresses. For a human- or AI-readable HTML page of the same estimate, use https://neohiorent.com/estimate?address=1524+New+Mexico+Ave,+Lorain,+OH&beds=3 .",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 160
            },
            "description": "Street address, ideally with city, e.g. 1524 New Mexico Ave, Lorain, OH",
            "example": "1524 New Mexico Ave, Lorain, OH"
          },
          {
            "name": "beds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            },
            "description": "Bedrooms: 0 = studio, 5 = 5 or more. If omitted, estimates for every bedroom count are returned."
          },
          {
            "name": "county",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "Lorain",
                "Cuyahoga",
                "Medina",
                "Summit",
                "Erie"
              ]
            },
            "description": "Optional; narrows the search when the same street exists in several counties."
          }
        ],
        "responses": {
          "200": {
            "description": "Estimate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Estimate"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid address, beds, or county.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No property found in the five supported counties.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Ambiguous address (see matches) or no rent data for that ZIP.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See the Retry-After header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "County records temporarily unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/estimate": {
      "get": {
        "operationId": "readRentEstimatePage",
        "summary": "Plain HTML rent estimate (readable without JavaScript)",
        "description": "Server-rendered HTML of the same rent estimate as /api/estimate.php. Prefer this when a person or an AI browser needs the numbers as normal text. With no address, this URL is a simple GET form (indexable). With an address, it returns the estimate, typical range, NEO 10% management fee ($75/unit minimum), and owner take-home. A pretty path also works: /estimate/1524-new-mexico-ave-lorain-oh?beds=3 . Result pages are noindex. Same service area and rate limits as the JSON API (shared). Never returns owner names or mailing addresses.",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            },
            "description": "Street address, ideally with city. Required to render an estimate; omit it to get the form.",
            "example": "1524 New Mexico Ave, Lorain, OH"
          },
          {
            "name": "beds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            },
            "description": "Bedrooms: 0 = studio, 5 = 5 or more. If omitted, estimates for every bedroom count are shown."
          }
        ],
        "responses": {
          "200": {
            "description": "HTML form, estimate, or a friendly no-match message.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Garbage or unusable address or beds.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited. See the Retry-After header.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "County records temporarily unreachable.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/rentals.php": {
      "get": {
        "operationId": "searchAvailableRentals",
        "summary": "Filter rentals by city, county, bedrooms, rent and distance",
        "description": "Read-only filter over the daily static feed; no live county requests. All filters combine (AND). City/county match case-insensitively. near accepts coordinates, a Northeast Ohio town, or a street address and returns units within radius_mi (default 15 miles), sorted nearest first, with distance_mi. Towns use a built-in Census Gazetteer table for Lorain, Cuyahoga, Medina, Summit, Erie and Huron counties. Addresses use the cached Census Geocoder with a short timeout, falling back to a named town center. near_resolved echoes the point, town, method, precision, source and cache_hit, never the street input. Units without coordinates are excluded only from near searches. 6 requests/minute, 40/hour, 120/day per client; a separate quota from the estimate endpoint. Static rentals.json remains available without this filter quota.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            },
            "example": "Lorain"
          },
          {
            "name": "county",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            },
            "example": "Lorain",
            "description": "County name, optionally ending in County."
          },
          {
            "name": "min_beds",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10
            },
            "description": "Minimum bedrooms (0 = studio). Unknown bed counts do not match.",
            "example": 2
          },
          {
            "name": "max_rent",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000
            },
            "description": "Maximum monthly rent in USD.",
            "example": 1200
          },
          {
            "name": "near",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A supported NE Ohio town (e.g. Avon or Amherst), a full Ohio street address, or latitude,longitude. Address geocoding falls back to a named town center; inspect near_resolved.precision.",
            "example": "Avon"
          },
          {
            "name": "radius_mi",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 500,
              "default": 15
            },
            "description": "Straight-line radius in miles; requires near (town, address, or coordinates).",
            "example": 15
          }
        ],
        "responses": {
          "200": {
            "description": "Same feed shape as rentals.json; count and units reflect the applied filters. Empty results return count 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RentalFeed"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown filter parameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Use GET or HEAD.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; see Retry-After.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Feed temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Unit": {
        "type": "object",
        "required": [
          "id",
          "address",
          "rent",
          "unit_page_url",
          "apply_url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable AppFolio listing id."
          },
          "address": {
            "type": "string"
          },
          "street": {
            "type": "string"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ohio county name derived from city/ZIP; null if not known."
          },
          "deposit": {
            "type": [
              "number",
              "null"
            ],
            "description": "Security deposit in USD, as listed in AppFolio."
          },
          "application_fee": {
            "type": [
              "number",
              "null"
            ],
            "description": "Application fee in USD, as listed in AppFolio."
          },
          "utilities": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Utilities included in the listed rent, when AppFolio specifies them."
          },
          "appliances": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "AppFolio structured appliance list; authoritative over marketing prose."
          },
          "pet_policy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Policy text only when explicitly present in AppFolio; null means unknown, not no pets."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Same AppFolio description shown on the unit page; redundant appliance claims are removed when a structured list is provided."
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90,
            "description": "Cached building/address latitude from the same geocoder as the site map; null if unknown."
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "distance_mi": {
            "type": "number",
            "minimum": 0,
            "description": "Only on filtered near searches: approximate straight-line miles, not driving distance."
          },
          "rent": {
            "type": "integer",
            "description": "Monthly rent in USD."
          },
          "beds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Bedrooms; 0 = studio."
          },
          "baths": {
            "type": [
              "number",
              "null"
            ]
          },
          "sqft": {
            "type": [
              "integer",
              "null"
            ]
          },
          "property_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "unit_page_url": {
            "type": "string",
            "format": "uri"
          },
          "apply_url": {
            "type": "string",
            "format": "uri",
            "description": "AppFolio application link. The applicant applies; nobody applies on their behalf."
          },
          "availability": {
            "type": [
              "string",
              "null"
            ]
          },
          "available_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "section8_accepted": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Owner-confirmed per-unit status. null = not confirmed; ask NEO about this unit."
          },
          "section8_note": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "ok",
          "error",
          "message"
        ],
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                },
                "county": {
                  "type": "string"
                }
              }
            }
          },
          "contact": {
            "type": "object"
          }
        }
      },
      "Estimate": {
        "type": "object",
        "required": [
          "ok",
          "address",
          "county",
          "zip"
        ],
        "properties": {
          "ok": {
            "const": true
          },
          "address": {
            "type": "string",
            "description": "Address as matched in county records."
          },
          "county": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          },
          "property_type": {
            "type": "string"
          },
          "bedrooms": {
            "type": [
              "integer",
              "null"
            ]
          },
          "estimate_monthly_rent": {
            "type": "integer",
            "description": "USD per month (present when beds was given)."
          },
          "range_monthly_rent": {
            "type": "object",
            "properties": {
              "low": {
                "type": "integer"
              },
              "high": {
                "type": "integer"
              }
            }
          },
          "estimates_by_bedrooms": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Present when beds was omitted."
          },
          "currency": {
            "const": "USD"
          },
          "neo_management_fee_monthly": {
            "type": "integer",
            "description": "10% of the estimate, $75 minimum, per unit."
          },
          "inputs_used": {
            "type": "object",
            "description": "HUD baseline, adjustment factor, living area, year built, baths, condition."
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "links": {
            "type": "object"
          },
          "contact": {
            "type": "object"
          }
        }
      },
      "RentalFeed": {
        "type": "object",
        "required": [
          "generated_at",
          "count",
          "units"
        ],
        "properties": {
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "company": {
            "type": "object"
          },
          "count": {
            "type": "integer"
          },
          "units": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Unit"
            }
          },
          "total_count": {
            "type": "integer",
            "description": "Unfiltered unit count; filtered endpoint only."
          },
          "filters": {
            "type": "object",
            "description": "Applied filters; present only on /api/rentals.php."
          },
          "near_resolved": {
            "type": "object",
            "description": "Present on near searches. Full input addresses are never echoed or logged; filters.near contains only the resolved coordinates.",
            "properties": {
              "latitude": {
                "type": "number"
              },
              "longitude": {
                "type": "number"
              },
              "town": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "method": {
                "type": "string",
                "enum": [
                  "coordinates",
                  "town_center",
                  "census_address",
                  "town_center_fallback"
                ]
              },
              "precision": {
                "type": "string",
                "enum": [
                  "point",
                  "town",
                  "address"
                ]
              },
              "source": {
                "type": "string"
              },
              "cache_hit": {
                "type": "boolean"
              },
              "fallback_reason": {
                "type": "string",
                "description": "Present when Census could not resolve the address and a town center was used."
              }
            }
          }
        }
      }
    }
  }
}
