A 99acres API workflow: search, then open a listing
A search and a detail call work together in two steps:
- Start with
post-99acres-searchfor a city, a locality or a place name together with the filters you need, and read the rows that come back. - Every row carries the
listing_idthatpost-99acres-listingtakes inbody.listing_id, so pass it on; the second call needs nothing else.
A search row already holds the price, the areas, the locality, the coordinates and the poster, which is enough for a results list or a price comparison. Open a listing in full only when you need what a row leaves out, such as the amenities, the RERA details, every photo, the facing, the expiry date or the advertiser's office address and masked phone. The row's url works as well, because the listing operation also accepts the full 99acres URL.
Narrow a city search to localities
To narrow a city search to the localities you care about:
- Run a first search with
body.city_idalone, for example 19 for Pune; it returns rows from across the city, each with itslocalityandlocality_id. - Collect the ids of the neighbourhoods you care about.
- Send them together in
body.locality_id, separated by commas, for a follow-up search limited to those localities.
When you only have a place name, body.query resolves names such as baner or mumbai to a locality, a city or a project, which saves looking up the id first. Text that cannot be matched to a place is refused, so keep body.query for place names and express the home you want, such as its number of bedrooms, through the filters instead.
Budgets in rupees and price steps
Price bounds are whole rupees, so the 50 L step is sent as 5000000. For rent and pg searches the bounds are monthly rupee amounts rather than purchase prices.
The search widens each bound to the nearest of its own price steps and treats the band loosely, so plan for some rows outside your budget: they come back with outside_price_filter set to true and can be filtered out after the call. For a project unit priced as a range, compare your budget with both price_inr and price_max_inr, since the upper end can fall outside the budget even when the lower end fits it.
Featured rows, project units and page size
Search rows come in three kinds, and listing_kind names each one:
featuredrows for featured placementsproject_unitrows for units in a builder's new project- ordinary
listingrows
Featured rows are added on top of body.limit, so a first page requested with a limit of 25 can return more than 25 rows; count what arrived rather than assuming the limit. To keep only ordinary advertisements in an analysis, filter on listing_kind after the call, since no input selects the kind of row. There is no sort input either, so order the rows by price_inr, price_per_sqft_inr or posted_at on your side, and store them keyed by listing_id when you collect several pages.
Field names and values that trip up 99acres API calls
A few names and values need care:
bhkis also accepted forbody.bedrooms,seller_typeforbody.posted_by,cityforbody.city_id,qandkeywordforbody.query, andidandprop_idforbody.listing_id.body.bedroomsandbody.property_typeare strings, so send 2,3 or 1,4 as one quoted string rather than as a number or an array.- Property type ids differ between segments, and the residential ids such as 1 for Residential Apartment do not apply to a commercial search.
body.posted_since_daysaccepts only 1, 3, 7, 15 and 30, so the closest choice to two weeks is 15.body.transactiondefaults to buy andbody.segmentto residential, so a rental or commercial search has to name its values.
99acres in brief
Listings on 99acres use Indian property terms. Carpet area is the usable floor area inside the walls of a home; built-up area adds the walls and, for apartments, the balcony; super built-up area adds a proportionate share of common spaces such as corridors, lifts and the clubhouse, and that difference is called loading. RERA refers to the Real Estate (Regulation and Development) Act, 2016, under which each state has an authority with which real estate projects register.
A PG, or paying guest accommodation, is a private residence where the owner lets people stay for a fee. A new booking is a purchase from the developer, and a resale is an existing home bought from its current owner.
[
{
"body": {
"city_id": 19,
"transaction": "buy",
"bedrooms": "2",
"posted_by": "owner"
}
},
{
"body": {
"listing_id": "S94838160"
}
}
]{
"body": {
"locality_id": "1074",
"transaction": "rent",
"bedrooms": "2,3",
"furnishing": "furnished",
"limit": 50
}
}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/acres-99/post-99acres-listing' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"listing_id":"S94838160"}}'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.
99acres Property Listings API overview and prices · Read the API reference · Try it in the playground