How 999.md works
999.md is a Moldovan classifieds board where sellers post ads with photos and a description and buyers find them by keyword. The price in such an ad is the seller's asking price.
An appraiser quoted on the Chisinau housing market says asking prices can sit well above the prices at which flats actually sell, so listings do not mirror the market directly. Housing analysts still look at the number of apartments listed for sale on 999.md as a rough cross-check of supply, while noting that the same apartment is often posted more than once.
From a 999.md API search to a listing record
A research workflow starts broad and narrows down. Run post-999-md-search with a keyword in body.query, read the rows in results, and pick the ads worth a closer look by their title, price and currency. Keep the url of each row as well, so that a user of your tool can open the ad itself.
For each chosen row, pass its listing_id to post-999-md-listing-detail as body.listing_id. The record adds the ad text in description, the characteristics in attributes and the seller block, none of which a search row contains. Because each lookup returns a single ad, fetch records only for the rows you will use: expanding a page of 20 rows takes 20 separate lookups, while a shortlist of three needs three.
Paging inside the two-page search window
Search pages are numbered 1 and 2 only, and each holds up to 20 rows, so one query reaches at most 40 rows. To collect that window, send page 1 with body.limit set to 20, check has_more, and only then send page 2 with the same limit. Mixing sizes breaks the window: with 10 rows on page 1 and 20 on page 2, the second page starts after row 20 and the rows between the end of page 1 and that point are never fetched.
On page 2, has_more can still show that further results exist, yet page 3 is rejected, so read it there as a sign to narrow the query. When source_total is larger than the window, the remaining matches cannot be reached by paging; split the search into narrower keywords by adding words to the query, and merge the runs by listing_id so that an ad found by two keywords is kept once.
Tracking asking prices with repeated searches
Price monitoring for flats or cars works by repeating the same search on a schedule and comparing the runs. Keep body.query and body.limit identical between runs so that the windows line up, and store each row under its listing_id together with the time of the run. A price change then shows up as a different price for the same ID, and an ad that has left the results is an ID that no longer appears.
Compare amounts only within one currency: rows priced in different currencies cannot be averaged or summed as a single figure. Keep source_total as a series of its own, since it counts the matches for the query, while count only gives the rows that arrived on each page.
Pitfalls in 999.md listing data
Send body.listing_id as a string even though the ID itself is a number, because the field is typed as a string and also accepts a canonical address. An address only works in its canonical form, the Romanian address that ends in the ID; any other form of link is rejected, so when in doubt send the bare ID taken from a search row.
Keep queries within 40 characters, since a longer one is rejected. Finally, a body.limit of 0 or above 20 is rejected rather than trimmed to the nearest allowed size, and an empty body.query is rejected as well.
[
{
"body": {
"query": "apartament",
"limit": 20
}
},
{
"body": {
"query": "apartament",
"page": 2,
"limit": 20
}
},
{
"body": {
"listing_id": "88886722"
}
}
]
{
"body": {
"query": "iphone 13",
"limit": 5
}
}
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/md-999/post-999-md-listing-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"listing_id":"88886722"}}'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.
999.md Moldova Classifieds API overview and prices · Read the API reference · Try it in the playground