Documentation
999.md API reference for 2 operations
Reference for the 999.md API: what the listing ID and the search inputs do, how the two search pages fit together and what the returned listing fields mean.
See also: 999.md Moldova Classifieds API overview and prices · 999.md API guide: search, paging and listing lookups
On this page
Listing detail: post-999-md-listing-detail
This operation reads one ad and returns its primary record. body.listing_id names the ad in one of two forms: the numeric ID that a search row reports, or the canonical 999.md address of the ad, whose path is the Romanian section followed by that ID. Because the field is a string, the same input carries either form.
Among the returned fields, description is the long ad text that search rows leave out, attributes carries the public characteristics listed on the ad, and seller is the block describing who posted it. source_price keeps the price as the ad shows it, beside the price amount and its currency; price_mode tells how that price is stated, and down_payment is the down payment figure on the ad.
gtin is the retail barcode number of the item. url is the address of the ad itself, which suits a link that sends a user to the original page, and images holds the photos attached to the ad.
Fields in this section (2)
post-999-md-listing-detail, body.listing_id
Keyword search: post-999-md-search
This operation runs a full-text search over Moldovan classified ads and presents the rows in Romanian. body.query carries the text; a query longer than 40 characters is rejected rather than cut short. The smallest request, a query on its own, reads the first 10 matches, because the page and the page size fall back to their defaults.
body.page and body.limit work as a pair: the limit sets the page size and the page picks the first or the second slice of that size, so page 2 is only meaningful when it is sent with the limit used for page 1. In the reply, count reports how many rows this page holds, which can be lower than the limit on a short result, source_total is the overall match count for the query, and has_more shows whether results continue past the current page. Past page 2 the search stops, so a query whose overall count is larger than twice the limit reaches only part of its matches.
Fields in this section (4)
post-999-md-search, body.query, body.page, body.limit
Moving from a search row to a 999.md API listing record
A search row and a listing record share their identity and price fields, so a value can be compared between the two without conversion. The listing_id taken from any row of post-999-md-search is accepted unchanged by post-999-md-listing-detail, and the record that comes back adds the ad text, the attributes and the seller to what the row already showed.
Code that stores both should key them on listing_id, because the same ad can appear on page 1 of one run and on page 2 of a later one. Rows already carry gtin and the price fields, so matching a used item to a catalogue product, or filtering by price, can happen before any lookup is spent on it.
Fields in this section (3)
post-999-md-search, post-999-md-listing-detail, body.listing_id
{
"body": {
"query": "apartament",
"page": 2,
"limit": 20
}
}
{
"body": {
"listing_id": "https://999.md/ro/88886722"
}
}
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.
Listing detail
POST /api/v1/md-999/post-999-md-listing-detail
Returns the detailed record of one 999.md ad, looked up by its numeric ID or its canonical address.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.listing_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/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"}}'Response fields
listing_idurltitlepricecurrencysource_priceprice_modedown_paymentdescriptionimagesattributessellergtin
Keyword search
POST /api/v1/md-999/post-999-md-search
Searches 999.md classified ads by free text and returns one page of compact listing rows.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.limit | integer | Optional | 10 | — | 1–20 |
body.page | integer | Optional | 1 | — | 1–2 |
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/md-999/post-999-md-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"limit":3,"query":"iphone"}}'Response fields
querypagelimitcountresults[]listing_idurltitlepricecurrencysource_priceprice_modedown_paymentimagesgtin
source_totalhas_more
How calls work
POST /api/v1/md-999/<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: