Documentation
Apartments.com API reference
Reference for the Apartments.com API: what its three operations accept, their defaults and bounds, and what each one's reply holds.
See also: Apartments.com API: search, property detail and locations overview and prices · Apartments.com API guide: search, filters and lookups
On this page
apartments-locations: place details and map data
Sending q or term instead of query into body.query reaches the same field, since apartments-locations treats the three as alternative names for one value, not three separate inputs. A returned row's type names which of five kinds of place it is — city, ZIP code, neighbourhood, county or street address — and its market gives the metro market apartments.com groups that place under, rather than repeating the city or state already in the row. display is the place's own label text, not a second copy of its city and state.
county and postal_code describe the place's own location when it is one of those kinds, rather than describing buildings inside it, and available_unit_count counts units apartments.com currently lists at that specific place, not in any wider area around it. The latitude, longitude and bounding_box a row carries are the values to copy into apartments-search's own body.latitude, body.longitude or body.bounding_box fields, since none of apartments-locations' own fields is itself accepted back into that search.
Fields in this section (3)
apartments-locations, body.query, body.limit
apartments-property-detail: one building's identity and rent
body.property_id also accepts id, listing_id, listing_key or a full apartments.com URL in place of the building's own listing key, so whichever of those four forms a prior step already holds can be sent as it is. The returned rent_display and beds_display are formatted text, while rent_min, rent_max, beds_min and beds_max are the bounds behind that same text, so a caller comparing figures across buildings should read those fields rather than parsing the display strings. rating is the building's own renter rating, separate from anything a search row carries, since apartments-search does not return a rating at all.
neighborhood is a label for the building's area, distinct from the city and street fields that give its postal address, and image is a single main photo rather than a fuller photo set. A full floor-plan table, fee schedule or pet policy for this building appears in neither this reply nor any other this API returns; the nearest equivalents are apartments-search's own floor_plans, pet_policy_summary and amenities fields, read from that other operation instead.
Fields in this section (2)
apartments-property-detail, body.property_id
apartments-search: setting the search area
body.location also accepts query, q, city, postcode or zip in place of a typed city, ZIP code, neighbourhood or address, and whichever name is used, the value is resolved to a map box before the search itself runs. body.bounding_box, or its alternative name bbox, takes that box directly as south,west,north,east, or as an object naming its lower-right and upper-left corners, and skips the resolving step entirely, which matters when a prior apartments-locations call already returned a box to reuse. body.latitude also accepts lat, and body.longitude also accepts lng or lon; both must be sent together to define a centre point, and body.radius_miles then sizes the box drawn around that point, in miles, taking effect only in that coordinate mode and not when body.location or body.bounding_box is used instead.
Fields in this section (6)
apartments-search, body.location, body.bounding_box, body.latitude, body.longitude, body.radius_miles
apartments-search: rent, bedroom and amenity filters
body.min_rent and body.max_rent are applied to the rows this operation already resolved, in US dollars, rather than changing which buildings are looked up in the first place, and a building with no published rent drops out whenever either bound is set, since there is no figure to weigh against it. body.min_beds and body.max_beds count a studio as 0 bedrooms, running up to 6, and like the rent bounds, both are applied to the resolved rows rather than to the search area. body.pets checks only whether a building's short amenity list mentions pets, since the building's full pet policy is not part of any reply this API returns.
body.amenities takes one or more phrases and keeps a building only when its own amenity list contains every one of them, matched without regard to letter case, against the same short list apartments-search's own rows publish. body.has_3d_tour, body.has_video and body.specials_only each keep only rows whose own has_3d_tour, has_video or specials fields show that the building carries that media type or that offer. An unrecognised value for body.pets, body.has_3d_tour, body.has_video or body.specials_only is ignored and each field's own default of false applies in its place.
Fields in this section (10)
apartments-search, body.min_rent, body.max_rent, body.min_beds, body.max_beds, body.pets, body.amenities, body.has_3d_tour, body.has_video, body.specials_only
Sort order, paging and the fields the Apartments.com API returns for a search
body.sort sets the row order — a default best match, ascending or descending rent, newest or recently updated listings, distance from the box centre, or rows with a 3D tour or video first — and that order is set before the rent, bedroom, pet, amenity and media filters above remove any rows, so filtering a sorted call never changes the relative order of the rows that remain. body.limit sets how many building rows come back, from 1 to 200, defaulting to 40, and body.page steps through results from page 1 to page 100. An unrecognised body.sort value is ignored and the default best-match order applies in its place.
Each returned row holds property_id, url and name for the building; its address, street, city, state and postal_code; a short amenities list and a pet_policy_summary; a phone field for leasing contact and any current specials; and a main image with its image_count, plus has_video and has_3d_tour showing whether that building carries either media type. A building offering more than one unit size lists one entry per bed count inside its own floor_plans array instead of a single flattened row; each entry carries beds and beds_label alongside rent_from and rent_to; rent_display formats that range as text and price_is_from marks whether it is a starting figure; the row's own rent_min, rent_max, beds_min and beds_max then summarise that range across every floor plan listed. Beyond the row list, a reply also carries total_units, the count of every available unit in the searched area rather than the number of rows returned; new_unit_count, how many of those units are newly listed; the resolved location and bounding_box for the search actually run; the page and limit actually applied; and filters_applied_by, reporting which of the sent row filters were applied in producing that reply.
Fields in this section (4)
apartments-search, body.sort, body.page, body.limit
{
"body": {
"property_id": "pdh91xs"
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Place lookup
POST /api/v1/apartments/apartments-locations
Turns a typed city, ZIP code, neighbourhood, county or address into location ids, coordinates and a map box that apartments-search accepts.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.limit | integer | Optional | 15 | — | 1–15 |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/apartments/apartments-locations' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"austin"}}'Response fields
locations[]location_iddisplaytypecitystatepostal_codecountymarketlatitudelongitudebounding_boxavailable_unit_count
Property detail
POST /api/v1/apartments/apartments-property-detail
Looks up one rental building by its listing key or apartments.com URL, returning its address, coordinates, rating, rent range and bed range.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.property_id | string | Required | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/apartments/apartments-property-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"property_id":"pdh91xs"}}'Response fields
propertyproperty_idnameurlstreetcitystatelatitudelongituderatingrent_displayrent_minrent_maxbeds_displaybeds_minbeds_maximageneighborhood
Apartment search
POST /api/v1/apartments/apartments-search
Searches rental buildings by place, map box or coordinates, with filters for rent, bedrooms, pets, amenities and media, sorted and paged.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.amenities | string[] | Optional | — | — | — |
body.bounding_box | string | Optional | — | — | — |
body.has_3d_tour | boolean | Optional | false | — | — |
body.has_video | boolean | Optional | false | — | — |
body.latitude | number | Optional | — | — | — |
body.limit | integer | Optional | 40 | — | 1–200 |
body.location | string | Optional | — | — | — |
body.longitude | number | Optional | — | — | — |
body.max_beds | integer | Optional | — | — | 0–6 |
body.max_rent | integer | Optional | — | — | 0–9007199254740991 |
body.min_beds | integer | Optional | — | — | 0–6 |
body.min_rent | integer | Optional | — | — | 0–9007199254740991 |
body.page | integer | Optional | 1 | — | 1–100 |
body.pets | boolean | Optional | false | — | — |
body.radius_miles | number | Optional | 5 | — | 0.25–50 |
body.sort | string | Optional | "default" | "default""rent_low_to_high""rent_high_to_low""newest""recently_updated""distance""3d_tour""video" | — |
body.specials_only | boolean | Optional | false | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/apartments/apartments-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"limit":40,"location":"Austin, TX"}}'How calls work
POST /api/v1/apartments/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: