Documentation
Allegro API reference for every operation
Reference for the Allegro API: inputs, defaults, limits and reply fields for category, offer, search and seller operations.
See also: Allegro Marketplace Data overview and prices · Allegro API guide: workflows across operations
On this page
Allegro API category tree fields (`allegro-categories`)
allegro-categories accepts q and name as alternative names for body.query, matched case-insensitively against a category's own name and against its full path, so a term appearing partway down the path can still match. An unrecognised value for body.query, body.parent_id, body.leaf_only or body.limit is ignored and that input's own default, or no filter at all, applies instead.
The branch from the top of the tree down to the returned category comes back as plain text, and leaf shows whether it carries an offer grid rather than further subcategories. parent_id names the node directly above it in the tree, distinct from the category's own id.
Fields in this section (5)
allegro-categories, body.query, body.parent_id, body.leaf_only, body.limit
`allegro-category`: browsing by id, slug or URL
allegro-category returns offers[] in the same shape as allegro-search. Alongside those rows, the reply also carries total, last_page and pages_fetched for the category being browsed, together with category_path, which names this one category's own position in the tree. body.category accepts a numeric id, a slug such as laptopy-491, or the category's full URL; a department landing page that has no offer grid of its own is rejected with that reason rather than returning an empty list.
An unrecognised value for body.max_pages, body.sort or body.min_price is ignored and that input's own default, or no filter at all, applies instead. The same is true for body.max_price, body.condition and body.free_delivery; only body.category itself can make this call fail outright.
Fields in this section (9)
allegro-category, allegro-search, body.category, body.max_pages, body.sort, body.min_price, body.max_price, body.condition, body.free_delivery
`allegro-offer`: offer detail fields
allegro-offer accepts either body.offer_id — the digits in an offer's own URL — or body.offer_url, which also accepts the alias url; a request that cannot be resolved from whichever one is sent is rejected. A caller can read body.offer_id straight out of an offer's own address on allegro.pl, the digits that follow /oferta/, or send that whole address unchanged as body.offer_url instead. price_string is the listing's own display string for the price, shown alongside price.amount and price.currency; image_url is the single main photo, while images[] carries the rest of the gallery.
seller.login is the seller's handle and seller.listing_url links to that seller's own catalogue page, and description carries the listing's full write-up rather than a short summary. Because either input resolves to the very same record, a caller only ever needs to keep track of one of the two rather than converting between them.
Fields in this section (3)
allegro-offer, body.offer_id, body.offer_url
`allegro-search`: keyword search and its reply
allegro-search returns one row per matching offer, together with total, last_page and pages_fetched for the search itself. Each row carries the fields below:
| Field | What it tells you |
|---|---|
id / url | the offer's identifier and its link |
title | the listing's own title text |
price.amount / price.currency | the price and the currency it is quoted in |
delivery_text | the row's own delivery-cost text |
seller.login | the handle of the seller behind that row |
super_seller | a seller Allegro has marked with its own badge |
positive_feedback_percent | the share of past buyers who left positive feedback |
rating / rating_count | how the offer itself has been rated, and by how many reviews |
images[] | the photos attached to that one row |
parameters[] | the attributes the offer's own listing declares |
Only body.query can make the call fail: an unrecognised value for body.max_pages, body.sort or body.min_price is ignored and that input's own default, or no filter at all, applies instead. The same is true for body.max_price, body.condition and body.free_delivery.
body.category instead narrows the same keyword search to one category slug, rather than switching to allegro-category's own id, slug or URL reference. body.min_price and body.max_price combine freely: sending both at once narrows the match to the range between them rather than only to the tighter of the two.
Fields in this section (10)
allegro-search, allegro-category, body.query, body.max_pages, body.sort, body.min_price, body.max_price, body.condition, body.free_delivery, body.category
`allegro-seller-offers`: one seller's catalogue
allegro-seller-offers returns offers[] in the same shape as allegro-search. The reply also carries seller, total, last_page and pages_fetched, scoped to the one seller named in body.seller. body.seller takes that seller's own login handle, the same value a search result's seller.login or a seller's own profile URL carries; an unrecognised value for body.max_pages or body.sort is ignored, but a request that cannot resolve body.seller itself is rejected.
That same login can be copied from a seller's own profile address on allegro.pl, right after /uzytkownik/, as well as from a previous result row. body.sort orders this one seller's own catalogue by relevance, price_asc, price_desc or newest. It has no popularity choice, unlike allegro-category and allegro-search, which both offer that order across a whole category or result set.
Fields in this section (6)
allegro-seller-offers, allegro-category, allegro-search, body.seller, body.max_pages, body.sort
`allegro-suggested`: a quick related-offers reply
allegro-suggested returns offers[] in the same shape as allegro-search, together with a single total, for a quick set of offers related to body.query rather than a paginated result set. There is no max_pages, sort or price filter to send, and a request that cannot resolve body.query is rejected.
Because this call always answers from the first matching page, it suits a 'more like this' panel shown beside an offer or a search result far better than a walk through a whole catalogue, which allegro-search or allegro-category paged with body.max_pages fits instead. Its own total therefore describes only that one quick set rather than a wider count across a paginated catalogue.
Fields in this section (5)
allegro-suggested, body.query, allegro-search, allegro-category, body.max_pages
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.
Category Lookup
POST /api/v1/allegro/allegro-categories
Finds an Allegro category by name or lists a category's direct children, returning each one's id, path and whether it is a leaf.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.leaf_only | boolean | Optional | false | — | — |
body.limit | integer | Optional | 50 | — | 1–500 |
body.parent_id | string | Optional | — | — | — |
body.query | string | Optional | — | — | — |
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/allegro/allegro-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"laptopy"}}'Response fields
categories[]idnamepathparent_idleafurl
counttotal
Browse Category
POST /api/v1/allegro/allegro-category
Lists the offers filed under one Allegro category by its id, slug or URL, with price, condition and delivery filters and multi-page fetching.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category | string | Required | — | — | — |
body.condition | string | Optional | — | "new""used" | — |
body.free_delivery | boolean | Optional | — | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.max_price | number | Optional | — | — | — |
body.min_price | number | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""popularity""newest" | — |
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/allegro/allegro-category' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category":"laptopy-491"}}'Offer Detail
POST /api/v1/allegro/allegro-offer
Returns one Allegro offer's price, photo gallery, seller handle and description by its id or URL.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.offer_id | string | Optional | — | — |
body.offer_url | string | Optional | — | — |
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/allegro/allegro-offer' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"offer_id":"18673156866"}}'Response fields
offeridurltitlepriceamountcurrency
price_stringimage_urlimages[]sellerloginlisting_url
description
Keyword Search
POST /api/v1/allegro/allegro-search
Searches Allegro by keyword and returns matching offers with price, delivery, seller and rating fields, filterable by price, condition, delivery and category.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.category | string | Optional | — | — | — |
body.condition | string | Optional | — | "new""used" | — |
body.free_delivery | boolean | Optional | — | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.max_price | number | Optional | — | — | — |
body.min_price | number | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""popularity""newest" | — |
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/allegro/allegro-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"iphone 15"}}'Seller Offers
POST /api/v1/allegro/allegro-seller-offers
Lists one Allegro seller's active catalogue by their login, fetching more than one page of listings in a single call.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.seller | string | Required | — | — | — |
body.max_pages | integer | Optional | 1 | — | 1–10 |
body.sort | string | Optional | "relevance" | "relevance""price_asc""price_desc""newest" | — |
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/allegro/allegro-seller-offers' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"seller":"AppleOnly"}}'Suggested Offers
POST /api/v1/allegro/allegro-suggested
Returns a quick set of Allegro offers related to a keyword, for a 'more like this' or discovery panel.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.query | 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/allegro/allegro-suggested' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"iphone 15"}}'How calls work
POST /api/v1/allegro/<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: