{"openapi":"3.1.0","info":{"title":"Apartments.com US Rentals Units and Fees (x402 & MCP)","version":"0.1.0","description":"US Apartments.com rental listings, floorplans, available units, fee schedules, amenities and reviews, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/apartments-com/v1/search":{"post":{"operationId":"apartments_com_search","summary":"Apartments.com US Rentals Units and Fees: Search US Apartments.com rental listings","description":"Query US rental property listings, floorplans and unit fees by city, start URLs and rent/bed/bath filters. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["apartments-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"location":{"type":"string","description":"Enter one US city and state, such as Austin, TX. Start URLs take priority when both fields are supplied."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Apartments.com search, listing, or sitemap URLs, including URLs on its subdomains. These are used instead of Location."},"propertyType":{"type":"string","description":"Select a rental property category. The default ('apartments') returns all rental types in the area; choose 'apartments_only', 'houses', 'condos', 'townhomes', or 'rooms' to filter by category.","default":"apartments","enum":["apartments","apartments_only","houses","condos","townhomes","rooms","all"]},"maxPages":{"type":"integer","description":"Optional page limit from 1 to 18. Leave at the default for normal runs; increasing this does not increase the row allowance.","default":1,"minimum":1,"maximum":18},"scrapeDetails":{"type":"boolean","description":"Basic listing details are already requested in normal runs. Enable this to apply maxDetailFailRatio after at least two detail attempts.","default":false},"includeUnits":{"type":"boolean","description":"Add separate floorplan and available unit rows with parent listing identity and location. Each row is billed and counts toward maxItems.","default":false},"minRent":{"type":"integer","description":"Only return listings with monthly rent at or above this amount in US dollars.","minimum":0},"maxRent":{"type":"integer","description":"Only return listings with monthly rent at or below this amount in US dollars.","minimum":0},"minBeds":{"type":"integer","description":"Minimum number of bedrooms, from 0 to 10. Use 0 for Studio.","minimum":0,"maximum":10},"maxBeds":{"type":"integer","description":"Maximum number of bedrooms, from 0 to 10.","minimum":0,"maximum":10},"minBaths":{"type":"number","description":"Minimum number of bathrooms, from 0 to 10. Half baths such as 1.5 are allowed.","minimum":0,"maximum":10},"maxBaths":{"type":"number","description":"Maximum number of bathrooms, from 0 to 10.","minimum":0,"maximum":10},"minSqft":{"type":"integer","description":"Minimum floor area in square feet.","minimum":0},"maxSqft":{"type":"integer","description":"Maximum floor area in square feet.","minimum":0},"petPolicy":{"type":"string","description":"Only return listings that match this pet policy.","enum":["dogs","cats","dogs_and_cats","no_pets"]},"amenities":{"type":"array","items":{"type":"string"},"description":"Amenity codes that listings must offer. Examples: \"WASHER_DRYER\", \"AIR_CONDITIONING\", \"DISHWASHER\", \"BALCONY\", \"POOL\", \"GYM\", \"PARKING\", \"GARAGE_PARKING\", \"HARDWOOD_FLOORS\", \"EV_CHARGING\", \"FURNISHED\", \"GATED\", \"WALK_IN_CLOSETS\", \"DOG_PARK\"."},"optionFlags":{"type":"array","items":{"type":"string"},"description":"Named listing flags to require. Examples: \"noBrokerFee\", \"isNew\", \"isForRentByOwner\", \"isNewConstruction\", \"rentByRoom\", \"acceptingApplications\", \"hasVideo\", \"has3DTour\", \"hasInPersonTour\", \"hasSelfGuidedLiveVideoTour\"."},"homeStyles":{"type":"array","items":{"type":"string"},"description":"Building style codes. Examples: \"DUPLEX\", \"NEW_CONSTRUCTION\", \"FEWER_THAN_50_UNITS\", \"WALK_UP\", \"BROWNSTONE\", \"PRE_WAR\"."},"minRating":{"type":"integer","description":"Minimum overall property rating, from 1 to 5.","minimum":1,"maximum":5},"renterRating":{"type":"integer","description":"Minimum renter review rating, from 1 to 5.","minimum":1,"maximum":5},"schoolRatingMin":{"type":"integer","description":"Minimum rating of nearby schools, from 1 to 10.","minimum":1,"maximum":10},"schoolLevels":{"type":"array","items":{"type":"string"},"description":"School levels to apply the school rating to: \"elementary\", \"middle\", \"high\"."},"specialty":{"type":"array","items":{"type":"string"},"description":"Specialty housing types: \"senior\", \"military\", \"student\", \"corporate\", \"short_term\", \"income_restricted\"."},"dealType":{"type":"array","items":{"type":"string"},"description":"Pricing and deal filters: \"rent_special\", \"best_value\", \"top_deal\", \"luxury\", \"cheap\"."},"moveInDate":{"type":"string","description":"Latest move-in date, in YYYY-MM-DD format.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"availableOnMin":{"type":"string","description":"Earliest date a unit becomes available, in YYYY-MM-DD format.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"availableOnMax":{"type":"string","description":"Latest date a unit becomes available, in YYYY-MM-DD format.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"minLeaseMonths":{"type":"integer","description":"Minimum rental term in months, from 1 to 60.","minimum":1,"maximum":60},"maxLeaseMonths":{"type":"integer","description":"Maximum rental term in months, from 1 to 60.","minimum":1,"maximum":60},"minYearBuilt":{"type":"integer","description":"Earliest year the building was built.","minimum":1800,"maximum":2100},"maxYearBuilt":{"type":"integer","description":"Latest year the building was built.","minimum":1800,"maximum":2100},"keywords":{"type":"string","description":"Free-text keywords to match in listing text."},"radiusMiles":{"type":"number","description":"Search radius around the location in miles, from 0.1 to 100.","minimum":0.1,"maximum":100},"includePhotos":{"type":"boolean","description":"Request listing photos and available neighborhood, language, and other listing information. Some listings may not provide these fields.","default":false},"includeFees":{"type":"boolean","description":"Request property, floorplan, and unit fees when available. Also enables available floorplan and unit rows, each billed and counted toward maxItems.","default":false},"includeWalkscore":{"type":"boolean","description":"Request available walking, transit, and cycling scores and their descriptions.","default":false},"includeReviews":{"type":"boolean","description":"Add separate review rows with parent listing identity and location. Each review row is billed and counts toward maxItems.","default":false},"includeFeatures":{"type":"boolean","description":"Request available community and unit feature lists.","default":false},"includePropertyMap":{"type":"boolean","description":"Request available property-map information. Not every listing supplies a map.","default":false},"includeRentCalendar":{"type":"boolean","description":"Request available move-in rent-calendar information for up to rentCalendarMaxUnits units per listing. Also enables floorplan and unit rows, each billed and counted toward maxItems.","default":false},"includeSubmarket":{"type":"boolean","description":"Request available submarket names, identifiers, and geographic information.","default":false},"includeTours":{"type":"boolean","description":"Request available tour types, settings, dates, and unit virtual-tour links. Also enables floorplan and unit rows, each billed and counted toward maxItems.","default":false},"rentCalendarMaxUnits":{"type":"integer","description":"Maximum units per listing to request rent-calendar information for, from 1 to 10. Only applies when rent calendars are requested.","default":3,"minimum":1,"maximum":10},"commute":{"type":"object","description":"Optional object with latitude, longitude, commuteMinutes, and transportationMethod (1 car, 2 transit, 3 bicycle, 4 walking). Filtering uses an enclosing area rather than an exact travel-time boundary, and listings without coordinates can remain."},"geog":{"type":"object","description":"Optional Apartments.com geographic object with type, id, box, and c values. Leave empty to search by Location or Start URLs."},"geogSlice":{"type":"string","description":"Leave empty. Used only by the developer for testing."},"sort":{"type":"string","description":"Optional sort order. Supported values: \"default\", \"lowest_rent\", \"newest\", \"highest_rent\", \"has_video\", \"has_3d_tour\", \"recently_updated\". Leave empty for the source order."},"maxResults":{"type":"integer","description":"Maximum rows per location or Start URL, from 1 to 200; default 70. Listings, floorplans, units, and reviews count together, subject to your total cost limit and the free-plan limit of 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"location":"Austin, TX","scrapeDetails":false,"includeUnits":false,"includeReviews":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_apartments_com"},"example":{"jobId":"job_apartmen_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","propertyName":"example_propertyName","price":10,"priceHigh":10,"beds":10}],"meta":{"site":"apartments-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/apartments-com/v1/health":{"get":{"operationId":"apartments_com_health","summary":"Apartments.com US Rentals Units and Fees: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["apartments-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_apartments_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"Row ID"},"propertyName":{"type":["string","null"],"title":"Property"},"price":{"type":["number","null"],"title":"From"},"priceHigh":{"type":["number","null"],"title":"High"},"beds":{"type":["number","null"],"title":"Beds"},"baths":{"type":["number","null"],"title":"Baths"},"sqft":{"type":["number","null"],"title":"Sqft"},"streetAddress":{"type":["string","null"],"title":"Street"},"city":{"type":["string","null"],"title":"City"},"state":{"type":["string","null"],"title":"State"},"postalCode":{"type":["string","null"],"title":"ZIP"},"telephone":{"type":["string","null"],"title":"Phone"},"managementCompany":{"type":["string","null"],"title":"Management company"},"rating":{"type":["number","null"],"title":"Rating"},"availableUnitCount":{"type":["number","null"],"title":"Units available"},"yearBuilt":{"type":["number","null"],"title":"Year built"},"listingUrl":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped at"}},"additionalProperties":true},"Response_apartments_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_apartments_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}