Resolving a typed place before you search
Start by sending a renter's typed city, ZIP code, neighbourhood or address into body.query on apartments-locations; the same field also accepts q or term. Pick a returned place's latitude and longitude, or its bounding_box outright, and pass either straight into apartments-search as body.latitude and body.longitude, or body.bounding_box, instead of asking the renter to narrow their own search area by hand. Each place's available_unit_count and market can help a workflow decide which of several same-named suggestions — a city and a neighbourhood sharing one name, for instance — is the one worth searching next.
Reading one property's rating and coordinates after a search
An apartments-search row already carries a building's property_id and url; its rent_min, rent_max and amenities; and its pet_policy_summary and phone, so a workflow holding those fields from a search does not need a second call just to repeat them. Send the same property_id, or the row's own url, into body.property_id on apartments-property-detail only when a building's renter rating is needed; when its exact latitude and longitude are needed; when its neighborhood label is needed; or when its formatted rent_display and beds_display strings are needed — none of those four appear on a search row.
body.property_id also accepts id, listing_id or listing_key in place of a URL, so whichever value a prior step already holds can be sent as it is. Because rating never appears in a search reply, ranking a short list of candidates by renter rating has to run after at least one apartments-property-detail call per candidate, rather than being possible from the search step alone.
Narrowing a search by price, bedrooms, pets and media
Layer body.min_rent and body.max_rent, in US dollars, with body.min_beds and body.max_beds — counting a studio as 0, up to 6 — to match a renter's budget and space before reading further filters; a building with no published rent drops out of the results whenever either rent bound is set. Add body.pets to keep only buildings whose short amenity list mentions pets, body.amenities for one or more exact phrases a building's own list must contain, and body.specials_only, body.has_3d_tour or body.has_video to keep only buildings advertising a current move-in special or carrying one of those media types. All of these run on the rows apartments-search already resolved from body.location, body.bounding_box or coordinates, so they narrow a result set rather than defining a new search area.
Keeping one sort order across a paged Apartments.com API search
Pick one body.sort value — ascending or descending rent, newest or recently updated listings, distance from the box centre, media-first, or the default best match — and send that same value on every call in a run, since a value sent on one call does not carry over to the next, and mixing two sort values across a paged walk produces an inconsistent order. Start body.page at 1 and raise it by one each call while holding body.limit, from 1 to 200, defaulting to 40, steady throughout, and stop once a page comes back with fewer buildings than the limit requested, since that page is the last one with rows left to read.
total_units and new_unit_count describe the whole searched area rather than only the page just returned, so neither figure should be treated as a count of the rows in hand. Applying the rent, bedroom, pet, amenity and media filters together with body.sort on the very first call, rather than adding them only once a walk has already started, keeps every page of that walk built from the same filtered and ordered set.
Reading per-bed-count pricing before summarising a building
A building with several unit sizes lists one entry per bed count inside its own floor_plans array, each carrying beds and beds_label; rent_from and rent_to; and rent_display and price_is_from — rather than one flattened row per unit size. Reading that array before the building-level rent_min, rent_max, beds_min and beds_max summary avoids treating the summary, which spans every floor plan a building lists, as the price of any one specific bed count. price_is_from on a floor plan marks that its rent_from or rent_to is a starting figure rather than a fixed one, which matters when a workflow displays a single number instead of the whole range.
Apartments.com in brief
A pet fee, pet rent and a pet deposit are three different costs in a rental listing: a one-time nonrefundable fee, a recurring monthly surcharge and a deposit held against pet damage and returned after move-out. A radius search returns listings within a chosen distance of a point, such as an address, converted to coordinates before the distance filter runs. Renters comparing rental listings weigh price and location as their top two considerations, ranking bedroom count and specific amenities lower.
[
{
"body": {
"query": "austin"
}
},
{
"body": {
"location": "Austin, TX",
"min_beds": 2,
"max_rent": 2500,
"pets": true
}
}
]{
"body": {
"property_id": "pdh91xs"
}
}Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
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.
# 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"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Apartments.com API: search, property detail and locations overview and prices · Read the API reference · Try it in the playground