Category Lookup
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.
Loading / 加载中…
Allegro Marketplace Data · E-commerce & marketplace data
This catalogue covers Allegro's six public operations: finding a category by name or listing its children, browsing one category without a keyword, single offer detail, keyword search, one seller's paged catalogue, and a quick set of offers related to a keyword. Category browsing, search, seller listings and suggested offers each return rows priced in PLN with delivery, seller and rating fields, while offer detail adds the full price, photo gallery, seller handle and description for one listing, and category lookup returns the category ids used to browse by category or to filter a search instead of guessing a slug.
JSON in, a structured response out. Every public gateway endpoint uses POST.
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.
Lists the offers filed under one Allegro category by its id, slug or URL, with price, condition and delivery filters and multi-page fetching.
Returns one Allegro offer's price, photo gallery, seller handle and description by its id or URL.
Searches Allegro by keyword and returns matching offers with price, delivery, seller and rating fields, filterable by price, condition, delivery and category.
Lists one Allegro seller's active catalogue by their login, fetching more than one page of listings in a single call.
Returns a quick set of Allegro offers related to a keyword, for a 'more like this' or discovery panel.
Every node that allegro-categories hands back belongs to the same tree: a category's own id differs from the identifier of the node directly above it, and a top-level node has no such parent at all. The branch leading down to that node comes back as plain text, independently of whether that node is a dead end or has further branches beneath it. A node with no further branches beneath it, the kind this tree calls a leaf, does not change the reply's shape at all: only whether there is anything left to open beneath it differs from one further up the tree.
Because allegro-category is scoped to the one category its body.category reference names, a single call can only ever return offers from inside that one branch of the tree. allegro-search, by contrast, matches body.query against the whole catalogue regardless of category, so one search call can surface matching rows drawn from several different categories at once — something no single allegro-category call can do.
Narrowing that same search to just one category, with its own body.category slug filter, still searches by keyword inside that category rather than switching to allegro-category's id-or-URL lookup; the two calls never merge into one request. The slug that filter accepts is the same short form allegro-category's own reference uses, so a value worth trying on one is worth trying on the other.
Every offer row that allegro-search, allegro-category, allegro-seller-offers or allegro-suggested returns carries the same core fields, listed here with what each one tells you:
| Field | What it tells you |
|---|---|
price.amount | the numeric price for that one row, paired with price.currency |
delivery_text | a short line describing what delivery costs on that particular row |
seller.login | names which seller is behind that particular row |
super_seller | shows whether Allegro has recognised that particular seller with its own badge |
positive_feedback_percent | the share of past buyers who rated that seller positively |
rating_count | the number of ratings backing that row's own rating figure |
images[] | the set of photos attached to that particular row |
parameters[] | the attributes that offer's own listing declares |
The id, title and url alongside these identify and link to the listing itself.
body.sort orders either allegro-category or allegro-search by five different values. relevance is the default, followed by price_asc, price_desc, popularity and newest — five ways of reordering the same result set.
allegro-seller-offers accepts the same field, but only within one seller's own catalogue, and with one order missing: popularity is not among its choices, since ranking by overall popularity makes sense across a whole category or result set but not within a single seller's own listings alone. A reply's pages_fetched need not equal its last_page on any of these three calls: the first counts what this one call actually retrieved, the second counts how many pages exist for that query, category or seller in total, and only when a request's body.max_pages reaches or exceeds that total do the two figures converge.
Unlike allegro-category, allegro-search and allegro-seller-offers, allegro-suggested reports neither of those two page counts: it has exactly one total, counting only the small set it always hands back from a single page, never a count that spans more than that single page. It also takes no sort or price input at all, so the keyword in body.query alone is the only lever over what comes back, with nothing left to narrow or reorder it.
Allegro began in 1999 in Poznań, Poland as an online auction website before growing into the country's leading online marketplace. Its listings have come from both individual sellers and professional company accounts since Allegro opened dedicated business seller accounts in 2009. In October 2020 Allegro listed on the Warsaw Stock Exchange in what was, at the time, the largest initial public offering in Poland's history.
Allegro also owns Ceneo, a separate Polish price-comparison website it acquired in 2006. Prices across the marketplace are shown in the Polish złoty, the country's currency, written with the code PLN.
POST /api/v1/allegro/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).body.limit on allegro-categories accepts 1 to 500 rows, defaulting to 50 when left out; a value outside that range is ignored rather than rejected, and the default of 50 applies in its place.body.max_pages on allegro-category, allegro-search and allegro-seller-offers accepts 1 to 10 pages, defaulting to 1 when left out.allegro-category requires body.category.allegro-offer requires either body.offer_id or body.offer_url; a request that cannot be resolved from whichever one is sent is rejected.allegro-search, allegro-seller-offers and allegro-suggested each require their own body.query or body.seller; leaving it out is rejected rather than returning every offer.body.sort, body.condition, body.free_delivery, body.min_price, body.max_price, body.parent_id or body.leaf_only is ignored on every operation that accepts it, and that input's own default, or no filter at all, applies instead.body.category?Call allegro-categories first, optionally with body.query set to the category's name or part of its path. Each returned category carries its own id, the value allegro-category's body.category expects; allegro-search's own body.category filter instead takes a category slug. Pass body.parent_id instead of a query to list one category's direct children rather than searching the whole tree by name.
leaf_only filter on category lookup keep?Setting body.leaf_only to true on allegro-categories keeps only leaf categories: the ones that actually carry an offer grid of their own rather than further subcategories underneath them. A non-leaf category returned without that filter still has an id, but browsing it directly with allegro-category only works once it is a leaf, since a department-level landing page with no offer grid is rejected rather than browsed.
Send the keyword in body.query to allegro-search; it is required, and the call is rejected without it. Unlike allegro-category, which needs an already-resolved category id, slug or URL in body.category, allegro-search matches free text in any language against the whole catalogue, and can still be narrowed to one category with its own body.category slug filter if needed.
Send body.min_price and body.max_price in PLN, body.condition as new or used, and body.free_delivery as true, to either allegro-category or allegro-search. All four filters are optional and combine freely, and an unrecognised value for any of them is ignored rather than rejected, so the call still succeeds with that one filter left off instead.
Send body.max_pages to allegro-category, allegro-search or allegro-seller-offers: the call fetches that many pages of results in a single response rather than over separate follow-up requests. pages_fetched confirms how many pages the call actually returned for that query, category or seller, which can come back fewer than requested when last_page is lower than body.max_pages.
Send either body.offer_id, the digits from the offer's own URL, or the full link in body.offer_url, which also accepts the alias url, to allegro-offer. Either one resolves to the same single record; if the value you send cannot be matched to an offer, the call comes back rejected instead of an empty result.
Send that seller's login handle in body.seller to allegro-seller-offers; the same handle appears in a search, category or suggested result's seller information, or in the seller's own profile URL. body.max_pages fetches up to 10 of that seller's own listing pages in one call, and body.sort orders them by relevance, price_asc, price_desc or newest.
Send the keyword in body.query to allegro-suggested; it returns a single quick set of related offers from the first matching page rather than a paginated result set, with no max_pages, sort or price filter to send. Use allegro-search instead when the workflow needs more than that first page or needs its own filters.