Using the Andele Mandele API from search to full product detail
Start with andele-mandele-search's body.query for free text, or leave it out and browse with body.category_id, body.attribute_ids and the other filters alone; no input at all is accepted too. Each row in the response carries no title and no seller detail, only enough to identify and price it, so take a row's id and call andele-mandele-product with body.id to read its full title, description, condition, images and seller. body.id also accepts product_id as an alternative name for the same field, and body.url works in its place when a row's url is what you have instead of its id.
Resolving categories, attributes and brands before searching
Call andele-mandele-categories first to find a category_id: 1 is Dāmām (women), 2 is Bērniem (kids), 54 is Kungiem (men), 70 is Mājai (home) and 433 is Transports, with narrower ids such as 3 for women's dresses or 16 for women's shoes nested underneath. Pass that category_id to andele-mandele-filters to read its attributes and their value ids: condition ids 19 (new), 21 (used, excellent), 220 (used, good), 20 (used, with flaws) and 22 (vintage) recur across categories, while size value ids are specific to each category's own size table, such as 24 for clothing size S or 62 for shoe size 36.
Pass the ids you want into andele-mandele-search's body.attribute_ids, OR-ing ids of the same attribute and AND-ing different attributes together. For a brand, call andele-mandele-brands with a name such as zara and pass the id it returns, or a documented id such as 23 for ZARA, 106 for Massimo Dutti or 61462 for Max Mara, into body.brand_ids.
Paging through search results without missing or repeating rows
Fix every filter and body.sort for a search and then raise body.page by one on each call, checking has_more after every response and stopping once it is false or body.page reaches last_page; changing a filter partway through a paged walk can shift which rows fall on which page, so keep the filters steady across the walk. body.page_size, 48 rows by default or 96 when set, changes how many rows each page holds and so how many pages the same results span, without changing how many rows match in total.
Comparing sold and on-sale listings for pricing
Set body.sold_only to true to pull listings that have already sold rather than ones still for sale, pairing it with body.category_id and body.attribute_ids so the comparison holds the item roughly constant; body.sold_only draws from a short recent window of sold listings rather than the complete sales history, so treat it as a recent-sales sample rather than a long-run archive. Set body.on_sale to true instead to find listings currently in a seller's time-limited sale: each row then carries sale_percent and old_price_kind, naming whether old_price_eur is the before_sale price or the seller's original_retail price.
Follow either filter with andele-mandele-product on a row's id to read the fuller sale object, with percent, price_eur and expires_at, for one listing at a time. Each row surfaced either way also carries shown_attributes, the narrower set of attribute values the row itself displays, which is not the same list as the attributes andele-mandele-filters exposes for that category.
Checking a listing's status before acting on it
andele-mandele-search rows carry is_sold, is_reserved, is_inactive and status_label, a readable label for the same state, so a caller can skip rows that are no longer buyable without a second call. andele-mandele-product repeats is_sold and is_reserved and adds sold_at, the time a sold listing sold, and availability, which marks whether the listing can still be bought; call it with the row's id or url once a row looks worth a closer look. related_listings_count on that fuller record is a count only, so a related-listings feature needs its own separate search rather than reading that count as a dataset. favorites_count and applications_count, present on both the row and the fuller record, count how many buyers have favourited the listing and how many have applied to buy it.
Andele Mandele explained
Līva Jaunozola started Andele Mandele in 2008 as informal clothing swaps among friends in Latvia, during the country's economic downturn. Without external funding, that grew into a marketplace now counted among Latvia's best-known venues for secondhand clothing, shoes, accessories, bags, children's items, household goods, books, electronics and vehicles, still pairing its online catalogue with in-person markets that bring together hundreds of sellers and buyers. The site lets a buyer follow a seller or a brand directly, so new listings from either reach that buyer without a repeated search.
[
{
"body": {
"query": "nike",
"category_id": 3,
"sort": "newest"
}
},
{
"body": {
"id": 16184947
}
}
]{
"body": {
"brand_ids": [
"23"
],
"attribute_ids": [
"24",
"19"
],
"category_id": 3
}
}{
"body": {
"sold_only": true,
"category_id": 3,
"page_size": 96
}
}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/andele-mandele/andele-mandele-brands' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"zara"}}'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.
Andele Mandele API: search, product, categories, filters, brands overview and prices · Read the API reference · Try it in the playground