{
 "openapi": "3.1.0",
 "info": {
  "title": "HousingFeed rental listings",
  "version": "2026-11-03",
  "summary": "US rental listings collected directly from property managers (Display Feed, licensed for display) and a pay-per-row Data API over the whole database.",
  "description": "HousingFeed has two products on one database.\n\n**Display Feed**: manager-direct US rental listings, verified weekly, licensed for public display in the licensee's product with attribution and a link back to the source (terms: https://housingfeed.com/display-feed-terms). Licensees pull it from the Feed API (`/api/v1/feed`, a key issued after an order form) or as CSV/JSONL files. Request a sample at https://housingfeed.com/display-feed#sample.\n\n**MCP server** for AI assistants: https://housingfeed.com/mcp (streamable HTTP). `rent_summary` and `search_rentals_sample` need no key; the feed tools read a licensee's feed with its key.\n\n**Data API**: the whole database (US maintained; other countries are older portal snapshots), pay per row on Apify, internal use only (research, analytics, internal tools, model evaluation). No public display rights.\n\nThis document describes the two machine-callable surfaces: the keyless 10-row live sample on housingfeed.com and the Data API actor on Apify. Field coverage varies by source; every field is nullable.\n\n**Versioning and deprecation.** The housingfeed.com endpoints are version 1, reachable at `/api/v1/sample` (canonical) and `/api/sample` (alias); every response carries `X-API-Version: 1`. Fields are only ever added, never renamed or removed, within a version. A breaking change ships as `/api/v2/...`; the old version keeps working for at least 6 months and its responses carry `Deprecation` and `Sunset` headers (RFC 8594) from the day the new version is announced, with the timeline repeated on /docs. The Data API actor follows Apify's actor versioning; its input schema is copied into this file on every build.\n\n**Rate limits.** The sample endpoint allows roughly 30 requests per 10 minutes per IP and returns the RFC RateLimit header fields (`RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `RateLimit-Policy`) on every response and `Retry-After` on 429.",
  "termsOfService": "https://housingfeed.com/terms",
  "contact": {
   "name": "HousingFeed (Iron Holding B.V.)",
   "url": "https://housingfeed.com/contact",
   "email": "hello@housingfeed.com"
  }
 },
 "externalDocs": {
  "description": "Human documentation",
  "url": "https://housingfeed.com/docs"
 },
 "servers": [
  {
   "url": "https://housingfeed.com",
   "description": "housingfeed.com (keyless sample)"
  }
 ],
 "paths": {
  "/api/v1/sample": {
   "get": {
    "operationId": "getLiveSample",
    "summary": "Ten real listings from the live database, no key (v1; /api/sample is an alias)",
    "description": "Same query semantics as the Data API, hard-capped at 10 rows, roughly 30 requests per 10 minutes per IP. Use `tier=display` to see only listings that are in the Display Feed universe.",
    "parameters": [
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "Country code, e.g. `US`. With `tier=display` only `US` is valid."
     },
     {
      "name": "state",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "US state code, e.g. `TX`."
     },
     {
      "name": "city",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "City name, substring match."
     },
     {
      "name": "min_rent",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Minimum monthly rent (in the listing's currency). Alias: `minRent`."
     },
     {
      "name": "max_rent",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Maximum monthly rent. Alias: `maxRent`."
     },
     {
      "name": "min_beds",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer"
      },
      "description": "Minimum bedrooms. Alias: `minBeds`."
     },
     {
      "name": "max_beds",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer"
      },
      "description": "Maximum bedrooms. Alias: `maxBeds`."
     },
     {
      "name": "min_lat",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Bounding box, south edge. Alias: `minLat`."
     },
     {
      "name": "max_lat",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Bounding box, north edge. Alias: `maxLat`."
     },
     {
      "name": "min_lng",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Bounding box, west edge. Alias: `minLng`."
     },
     {
      "name": "max_lng",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Bounding box, east edge. Alias: `maxLng`."
     },
     {
      "name": "fresh_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 90
      },
      "description": "Only rows read in the last N days. Default 90; with `tier=display` capped at the Display Feed window (30). Alias: `freshDays`."
     },
     {
      "name": "new_since_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer"
      },
      "description": "Only rows first seen in the last N days (delta feed). Alias: `newSinceDays`."
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "best",
        "newest",
        "oldest",
        "cheapest",
        "rent_desc"
       ],
       "default": "best"
      },
      "description": "Ordering. `best` ranks geocoded rows with a photo first and spreads across sources."
     },
     {
      "name": "tier",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "display"
       ]
      },
      "description": "`display` restricts to the Display Feed universe: manager-direct US sources, live at source within 30 days, rent in a plausible band."
     },
     {
      "name": "require_photo",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ]
      },
      "description": "Only rows with a photo. Alias: `requirePhoto`."
     },
     {
      "name": "require_geo",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ]
      },
      "description": "Only rows with coordinates. Alias: `requireGeo`."
     }
    ],
    "responses": {
     "200": {
      "description": "Up to 10 listings.",
      "headers": {
       "RateLimit-Limit": {
        "schema": {
         "type": "string"
        },
        "description": "Requests allowed per window (about 30 per 10 minutes per IP)."
       },
       "RateLimit-Remaining": {
        "schema": {
         "type": "string"
        },
        "description": "Requests left in the current window."
       },
       "RateLimit-Reset": {
        "schema": {
         "type": "string"
        },
        "description": "Seconds until the window resets."
       },
       "X-API-Version": {
        "schema": {
         "type": "string"
        },
        "description": "Always `1` for this version."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "query",
          "count",
          "sample"
         ],
         "properties": {
          "query": {
           "type": "object",
           "description": "The filters as applied."
          },
          "count": {
           "type": "integer"
          },
          "sample": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Listing"
           }
          },
          "note": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "429": {
      "description": "Rate limited.",
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "string"
        },
        "description": "Seconds to wait before retrying."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "502": {
      "description": "Database temporarily unavailable.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "503": {
      "description": "Sample not configured.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/run-sync-get-dataset-items": {
   "servers": [
    {
     "url": "https://api.apify.com/v2/acts/housingfeed~rental-listings-api",
     "description": "Data API on Apify (pay per row; Apify account token)"
    }
   ],
   "post": {
    "operationId": "queryDataApi",
    "summary": "Query the Data API: returns matching listings as JSON (or CSV/XLSX with ?format=)",
    "description": "Runs the HousingFeed actor synchronously and returns the dataset items. Billed per returned row on Apify (see https://apify.com/housingfeed/rental-listings-api). Rights: internal use only; public display requires the Display Feed licence.",
    "security": [
     {
      "apifyToken": []
     }
    ],
    "parameters": [
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "csv",
        "xlsx",
        "xml"
       ],
       "default": "json"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "country": {
          "type": "string",
          "description": "Country. ISO country code. US is the maintained market (weekly). Other countries are older portal snapshots. Blank = all countries.",
          "enum": [
           "",
           "US",
           "JP",
           "BR",
           "ES",
           "UK",
           "DE",
           "FR",
           "CA",
           "AU",
           "BE",
           "PL",
           "AT",
           "IT",
           "PK",
           "RO",
           "CH",
           "PT",
           "AE",
           "NO",
           "BH",
           "EU",
           "EG",
           "QA",
           "AR",
           "SA",
           "MX",
           "IE",
           "PE",
           "EC",
           "NL"
          ],
          "default": ""
         },
         "state": {
          "type": "string",
          "description": "State / region. Two-letter US state code, for example NY, CA or TX. Blank = all states."
         },
         "city": {
          "type": "string",
          "description": "City. City name, partial and case-insensitive, for example \"Austin\" or \"Brooklyn\", or a county such as \"Hudson County\". Combine with state to avoid same-name cities. Blank = all."
         },
         "zip": {
          "type": "string",
          "description": "ZIP / postal code. Exact 5-digit US ZIP code, for example \"10001\". Blank = all."
         },
         "minRent": {
          "type": "integer",
          "description": "Min rent. Minimum monthly rent in USD for US listings (local currency elsewhere), for example 1500."
         },
         "maxRent": {
          "type": "integer",
          "description": "Max rent. Maximum monthly rent in USD for US listings (local currency elsewhere), for example 3000."
         },
         "minBeds": {
          "type": "integer",
          "description": "Min bedrooms. Minimum bedrooms. 0 = studio. For exactly N bedrooms set minBeds and maxBeds to N."
         },
         "maxBeds": {
          "type": "integer",
          "description": "Max bedrooms. Maximum bedrooms. For exactly N bedrooms set minBeds and maxBeds to N."
         },
         "managerDirectOnly": {
          "type": "boolean",
          "description": "Manager-direct sources only. true = only listings published by property managers and owners on their own software or websites, which is often inventory the big portals do not carry. Each row's source_type says manager_direct or portal.",
          "default": false
         },
         "includePortals": {
          "type": "boolean",
          "description": "Include portal rows (research only). From 1 December 2026 a US run returns the HousingFeed feed: listings property managers and owners publish on their own software and sites, cleaned for display, each row licensed for public display. true = also return rows from consumer portals (older snapshots) as research data, without the display licence.",
          "default": false
         },
         "availableNow": {
          "type": "boolean",
          "description": "Available now only. true = only units marked available now.",
          "default": false
         },
         "withPhotos": {
          "type": "boolean",
          "description": "With photos only. true = only listings with at least one photo (the image field is set).",
          "default": false
         },
         "propertyType": {
          "type": "array",
          "description": "Property type. Only these property types: apartment, house, condo, townhouse, room (any combination). Listings whose source does not state a type are left out of a filtered run. Needs a city, ZIP or map box, or managerDirectOnly: a whole state or the whole US on every source is refused (too slow). Empty = every type.",
          "items": {
           "type": "string",
           "enum": [
            "apartment",
            "house",
            "condo",
            "townhouse",
            "room"
           ],
           "enumTitles": [
            "Apartment",
            "House",
            "Condo",
            "Townhouse",
            "Room"
           ]
          }
         },
         "timeWindow": {
          "type": "string",
          "description": "Time window. Simplest way to get changes instead of everything live. new_7d = listings first seen in the last 7 days (schedule weekly, on Wednesdays, for a delta feed). removed_30d / removed_7d = listings confirmed gone at the source, each with removed_at. Blank = all live listings. newSinceDays or removedSinceDays, if set, take precedence.",
          "enum": [
           "",
           "new_7d",
           "new_30d",
           "removed_7d",
           "removed_30d"
          ],
          "default": ""
         },
         "countOnly": {
          "type": "boolean",
          "description": "Count only. true = return one row with the number of matching listings (matched, estimated, at_least, query) instead of the listings, charged as one result. Use it for questions like how many 2-bedroom listings under $2,000 are in a ZIP, or to compare rent bands and neighborhoods cheaply.",
          "default": false
         },
         "newSinceDays": {
          "type": "integer",
          "minimum": 0,
          "maximum": 365,
          "description": "New in the last N days (delta feed). Advanced form of timeWindow: only listings first seen in the last N days (1-365). Sources are re-read weekly, so new listings land Sunday to Tuesday (UTC). Dedupe on the id field."
         },
         "removedSinceDays": {
          "type": "integer",
          "description": "Removed in the last N days. Advanced form of timeWindow: listings confirmed gone at the source in the last N days (1-90), each with removed_at, newest first, instead of live listings.",
          "minimum": 1,
          "maximum": 90
         },
         "freshDays": {
          "type": "integer",
          "minimum": 0,
          "maximum": 365,
          "description": "Max age of a listing (days). Exclude listings last verified at the source more than N days ago. Default 30 for the US (the same window HousingFeed uses for every feed it delivers) and 90 for other countries, whose portals are periodic snapshots. Set 0 to include everything ever collected. Every row carries scraped_at, first_seen_at and last_seen_at so you can judge freshness yourself."
         },
         "minLat": {
          "type": "string",
          "description": "Min latitude. South edge of a bounding box, decimal degrees (e.g. 25.70). Set any combination of the four bounds; when a geo filter is used, only listings with exact coordinates are returned. Combines with all other filters."
         },
         "maxLat": {
          "type": "string",
          "description": "Max latitude. North edge of the bounding box (e.g. 25.86)."
         },
         "minLng": {
          "type": "string",
          "description": "Min longitude. West edge of the bounding box (e.g. -80.32). Boxes crossing the 180° antimeridian are not supported."
         },
         "maxLng": {
          "type": "string",
          "description": "Max longitude. East edge of the bounding box (e.g. -80.10)."
         },
         "sort": {
          "type": "string",
          "description": "Sort order. best (default): listings with coordinates and a photo first, freshest first, mixed across sources. newest, oldest, cheapest or rent_desc (most expensive first) otherwise. stable: a fixed order for paging a whole market across runs with cursor.",
          "enum": [
           "best",
           "newest",
           "oldest",
           "cheapest",
           "rent_desc",
           "stable"
          ],
          "default": "best"
         },
         "maxItems": {
          "type": "integer",
          "description": "Max results. How many listings to return, 1 to 25000 (default 25). You are charged per returned listing. A whole city usually fits in one run; for more, set sort to stable and use cursor.",
          "default": 25,
          "maximum": 25000,
          "minimum": 1
         },
         "cursor": {
          "type": "string",
          "description": "Cursor (next page). Leave empty on the first run. To get the next page, paste nextCursor from the previous run's OUTPUT record and keep every other filter the same. Every listing comes back exactly once across pages. Sets sort to stable."
         },
         "refresh": {
          "type": "boolean",
          "description": "Live refresh (slower). Re-scrape the portal platforms live instead of serving the database. Slow (about 5 minutes) and covers only each portal's fixed seed cities, so it is ignored when you set a ZIP, city, state or coordinate box (those are served from the database). Leave off for normal queries.",
          "default": false
         }
        },
        "additionalProperties": false,
        "description": "Query the HousingFeed database of US rental listings (950,000+ verified at the source in the last 30 days). Every field is optional. Typical calls: a city or ZIP with a rent and bedroom range; timeWindow new_7d for what is new this week; countOnly true for 'how many' questions. Results come back in seconds; nothing is scraped while you wait. You pay per returned listing, so maxItems caps the cost (default 25)."
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Array of listings.",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Listing"
         }
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid Apify token."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Listing": {
    "type": "object",
    "description": "One rental listing in the public schema. Every field is nullable; coverage varies by source (see /coverage#fields).",
    "properties": {
     "id": {
      "type": [
       "string",
       "null"
      ],
      "description": "Stable opaque listing id (`hf_` + 20 characters), the same in every response."
     },
     "source_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "`manager_direct` (published by the property manager or owner on their own software or site) or `portal`."
     },
     "listing_id": {
      "type": [
       "string",
       "null"
      ],
      "description": "The listing's id at its source."
     },
     "url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The listing page at the source. Attribution and link-back target for Display Feed licensees."
     },
     "address": {
      "type": [
       "string",
       "null"
      ],
      "description": "Full address string as published."
     },
     "street": {
      "type": [
       "string",
       "null"
      ],
      "description": "Street line."
     },
     "city": {
      "type": [
       "string",
       "null"
      ],
      "description": "City as published."
     },
     "canonical_city": {
      "type": [
       "string",
       "null"
      ],
      "description": "Normalised city name where resolved."
     },
     "state": {
      "type": [
       "string",
       "null"
      ],
      "description": "US state code or region."
     },
     "zip": {
      "type": [
       "string",
       "null"
      ],
      "description": "Postal code."
     },
     "country": {
      "type": [
       "string",
       "null"
      ],
      "description": "ISO-like country code (`US`, `UK`, `DE` ...)."
     },
     "lat": {
      "type": [
       "number",
       "null"
      ],
      "description": "Latitude (geocoded when the source publishes none)."
     },
     "lng": {
      "type": [
       "number",
       "null"
      ],
      "description": "Longitude."
     },
     "rent_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly asking rent in `currency` (lower bound when a range is published)."
     },
     "rent_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Upper bound of a published rent range."
     },
     "currency": {
      "type": [
       "string",
       "null"
      ],
      "description": "ISO currency of rent_min/rent_max."
     },
     "rent_usd": {
      "type": [
       "number",
       "null"
      ],
      "description": "rent_min converted to USD at a fixed rate."
     },
     "rent_per_sqft": {
      "type": [
       "number",
       "null"
      ],
      "description": "rent_usd / sqft_min when both are present and plausible."
     },
     "rent_per_sqm": {
      "type": [
       "number",
       "null"
      ],
      "description": "Same, per square metre."
     },
     "beds": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Bedrooms; 0 = studio."
     },
     "baths": {
      "type": [
       "number",
       "null"
      ],
      "description": "Bathrooms (may be fractional)."
     },
     "sqft_min": {
      "type": [
       "number",
       "null"
      ],
      "description": "Size in square feet."
     },
     "sqft_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Upper bound of a size range."
     },
     "property_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "Normalised: apartment, house, condo, townhouse, room, studio, ..."
     },
     "furnished": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "True when the source says furnished."
     },
     "available": {
      "type": [
       "string",
       "null"
      ],
      "description": "Availability as published: a date string or `NOW`."
     },
     "units_available": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Units available for floorplan-level rows."
     },
     "granularity": {
      "type": [
       "string",
       "null"
      ],
      "description": "`unit` or `floorplan`."
     },
     "image": {
      "type": [
       "string",
       "null"
      ],
      "description": "Primary photo URL (by reference; never re-hosted)."
     },
     "images": {
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      },
      "description": "Gallery URLs where the source publishes one."
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "The manager's listing text; generated boilerplate removed."
     },
     "amenities": {
      "type": [
       "array",
       "null"
      ],
      "items": {
       "type": "string"
      },
      "description": "Amenity strings as published."
     },
     "first_seen_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When HousingFeed first saw the listing at its source (ISO 8601)."
     },
     "last_seen_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When HousingFeed last verified it live at its source (ISO 8601)."
     },
     "scraped_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "Timestamp of the last successful read (ISO 8601)."
     },
     "days_listed": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Whole days since HousingFeed first saw the listing (to removed_at for a removed one)."
     },
     "neighborhood": {
      "type": [
       "string",
       "null"
      ]
     },
     "neighborhood_group": {
      "type": [
       "string",
       "null"
      ]
     },
     "publisher_name": {
      "type": [
       "string",
       "null"
      ]
     },
     "publisher_company": {
      "type": [
       "string",
       "null"
      ]
     },
     "rent_basis": {
      "type": [
       "string",
       "null"
      ]
     }
    },
    "required": [
     "id",
     "source_type",
     "url"
    ]
   },
   "Error": {
    "type": "object",
    "required": [
     "error",
     "code"
    ],
    "properties": {
     "error": {
      "type": "string",
      "description": "Short error name."
     },
     "code": {
      "type": "string",
      "description": "Stable machine-readable code (e.g. RATE_LIMITED, NOT_FOUND)."
     },
     "message": {
      "type": "string"
     },
     "hint": {
      "type": "string",
      "description": "What to do instead."
     },
     "docs": {
      "type": "string",
      "format": "uri"
     }
    }
   }
  },
  "securitySchemes": {
   "apifyToken": {
    "type": "apiKey",
    "in": "query",
    "name": "token",
    "description": "Your Apify API token (https://console.apify.com/account/integrations)."
   }
  }
 },
 "x-housingfeed": {
  "llms": "https://housingfeed.com/llms.txt",
  "markdown_negotiation": "Send `Accept: text/markdown` to any page URL for a Markdown rendering.",
  "versioning": "path (/api/v1/); X-API-Version header; Deprecation + Sunset headers and a 6-month overlap on any breaking change",
  "alias_paths": [
   "/api/sample"
  ],
  "display_feed_sample_request": "https://housingfeed.com/display-feed#sample",
  "mcp": "https://housingfeed.com/mcp",
  "mcp_apify": "https://apify.com/housingfeed/rental-listings-api/api/mcp"
 }
}