Allegro API workflow: from a category name to a category id
To browse into a single category rather than search by keyword, resolve its id first and reuse it directly:
- Call
allegro-categories, withbody.queryset to the category's name if you know it, orbody.parent_idto list one branch's own children. - Read the
idof the category you want from the reply. - Send that same
idasbody.categorytoallegro-category.
The call in step 3 returns offers in the same shape as a search, together with category_path, total, last_page and pages_fetched for that one category. A department landing page with no offer grid of its own is rejected at this step rather than browsed, so resolving the id first also confirms the category can actually be browsed before any filter or sort option is added on top of it.
Searching by keyword, then opening one offer's full record
A workflow that starts from a shopper's own words rather than a category id looks like this: call allegro-search with body.query set to what they typed, then take the id of the row they pick and send it straight to allegro-offer as body.offer_id. allegro-offer also accepts the full offer address under body.offer_url, with the alias url, so a link copied from a result page works as the input just as well as the row's own id does.
The full record allegro-offer returns adds the listing's price_string, main image_url and full description, none of which a search row carries on its own. Fetching that full record only once a shopper opens one offer keeps the first search call itself lighter, since those extra fields live outside the row.
Fetching more than one page in a single Allegro call
body.max_pages lets allegro-category, allegro-search and allegro-seller-offers fetch more than one page in a single call: send it as a value from 1 to 10, and a search page holds roughly 60 offers, so a value of 5 can return several hundred rows in one response rather than one page at a time. pages_fetched confirms how many pages the call actually returned, and last_page tells you how many pages exist in total for that query, category or seller; when last_page is lower than the body.max_pages you sent, pages_fetched comes back lower too; simply treat a reply whose pages_fetched already matches last_page as the end of what that one call can reach. Because 10 is the most pages any single call can fetch, a result set larger than that is read as the first 10 pages of it, not as the whole thing.
Filtering and sorting for a target price range
To compare offers in a target price band, run allegro-category or allegro-search with both body.min_price and body.max_price set in PLN. Add body.condition as new or used if only one matters, and set body.sort to price_asc so the cheapest matching row comes first.
Leaving body.sort out instead returns the relevance order both calls default to. body.free_delivery set to true narrows the same call to rows whose own delivery is free, and it combines with the price and condition filters rather than replacing them, so a request can ask for new, free-delivery items under one price all at once.
A seller's paged catalogue, or a lighter related-offers alternative
To follow one seller's paged catalogue, up to 10 pages per call, rather than a single search, send that seller's login — copied from a search result's own seller.login field, or from the seller's profile address on allegro.pl — as body.seller to allegro-seller-offers. Order that seller's own listings with body.sort set to newest, price_asc or price_desc; the popularity order allegro-category and allegro-search both offer is not one of this call's choices, since it ranks a whole category or result set rather than one seller's own catalogue. For a lighter alternative that needs no seller at all, send the same kind of keyword used for a search straight to allegro-suggested instead, and read its single quick set of related offers in place of running a full search of your own.
Branching from one search row to offer detail and a seller's catalogue
A single allegro-search row carries enough to branch into two further calls without running another search. Send the row's own id to allegro-offer as body.offer_id for that one listing's full detail, and separately send the same row's seller.login to allegro-seller-offers as body.seller to see up to 10 more pages of that seller's other currently listed items. Because both of these follow-up calls read fields already present on the search row, a shopper browsing one result can move on to either the full listing or the seller's paged catalogue without typing anything else, and the two calls can run in either order, or together, since neither one depends on the other's answer.
Allegro explained
Allegro's marketplace listings come from both private individuals and professional sellers: the platform began as an auction site open to the public and added dedicated business seller accounts in 2009, so a seller's catalogue can belong to either kind of account. Allegro Pay is the platform's own financing service, letting a buyer split a purchase into installments rather than paying the full price at checkout. Prices across every listing are shown in the Polish złoty, written with the currency code PLN.
[
{
"body": {
"query": "iphone 15",
"max_pages": 1,
"sort": "price_asc"
}
},
{
"body": {
"offer_id": "18673156866"
}
}
]{
"body": {
"category": "laptopy-491",
"max_pages": 2,
"sort": "price_asc",
"condition": "new",
"free_delivery": true
}
}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/allegro/allegro-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"laptopy"}}'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.
Allegro Marketplace Data overview and prices · Read the API reference · Try it in the playground