{"openapi":"3.1.0","info":{"title":"Allegro Products Prices and Sellers (x402 & MCP)","version":"0.1.0","description":"Allegro and Allegro Lokalnie product offers, prices, sellers, categories and EAN matches across Poland, Czechia, Slovakia and Hungary, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://ai.opendata.best"}],"paths":{"/s/allegro-pl/v1/search":{"post":{"operationId":"allegro_pl_search","summary":"Allegro Products Prices and Sellers: Search Allegro products, categories, deals and suggestions","description":"Listing and catalog rows by keyword, startUrls, category, department, deals or lokalnie. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["allegro-pl","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose Auto to select a mode from your target fields, or choose a specific mode below. allegro_api, categories (needs a browser session), image_search and wakacje are currently unavailable: they stop at the input check with an error, return no rows and are not charged.","default":"auto","enum":["auto","search","category","department","deals","suggestions","lokalnie","lokalnie_crawl","allegro_api"]},"query":{"type":"string","description":"Enter one keyword for search, Lokalnie, Allegro API search or Wakacje. With Auto selected, this field starts a keyword search."},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Optional list of keywords. Each keyword is collected separately, up to maxResults rows for each keyword; every row is charged."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Allegro page URLs as strings or objects with a url field. The URL determines the market."},"categoryId":{"type":"string","description":"Enter the numeric category ID from an Allegro category URL."},"categoryIds":{"type":"array","items":{"type":"string"},"description":"Optional list of category IDs. Each category is collected separately, up to maxResults rows for each category; every row is charged."},"categorySlug":{"type":"string","description":"Enter the text part of the category URL when known, for category or seller-category listings."},"departmentCode":{"type":"string","description":"Enter a department code, such as elektronika or moda, for department mode."},"city":{"type":"string","description":"Enter a city for Lokalnie, such as warszawa."},"country":{"type":"string","description":"Choose the main Allegro market: Poland, Czechia, Slovakia or Hungary.","default":"pl","enum":["pl","cz","sk","hu"]},"domain":{"type":"string","description":"Choose the matching Allegro domain. A supplied page URL takes priority; Lokalnie and Wakacje use their Polish domains.","default":"allegro.pl","enum":["allegro.pl","allegro.cz","allegro.sk","allegro.hu","allegrolokalnie.pl","wakacje.allegro.pl"]},"order":{"type":"string","description":"Choose relevance, price ascending, price descending, price with delivery, newest or popularity. Availability varies by page.","default":"m","enum":["m","p","pd","d","n","qd"]},"p":{"type":"integer","description":"Enter the starting category page number, from 1 to 500.","default":1,"minimum":1,"maximum":500},"priceFrom":{"type":"number","description":"Minimum offer price in the selected market currency, where the page supports this filter."},"priceTo":{"type":"number","description":"Maximum offer price in the selected market currency, where the page supports this filter."},"condition":{"type":"string","description":"Enter the site condition value, such as new or used, where supported."},"buyNow":{"type":"boolean","description":"Request buy-now offers only, where supported."},"freeShipping":{"type":"boolean","description":"Request offers with free shipping, where supported."},"offerType":{"type":"string","description":"Enter the offer-type filter used by the selected page."},"currency":{"type":"string","description":"Optional display currency code (PLN, EUR, CZK, HUF) for batch offer lookup."},"enrichDetails":{"type":"boolean","description":"Add available brand, barcode, attributes, images and other offer details. This is optional and may take longer; in Lokalnie discovery it can also add separately billed related offers within the row limit.","default":false},"scrapeProductDetails":{"type":"boolean","description":"Alternative switch for enrichDetails. Enabling either switch requests available product details.","default":false},"fields":{"type":"array","items":{"type":"string"},"description":"Optional list of output field names to include on each returned row."},"maxResults":{"type":"integer","description":"Maximum rows for each keyword, URL, category, barcode or other target, from 1 to 500; default 70. All row types share the limit, with the whole run constrained by your maximum charge and Free plan limits of 200 rows per run and 10 runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"query":"rower","country":"pl","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_allegro_pl"},"example":{"jobId":"job_allegro-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","offerId":"example_offerId","productId":"example_productId","title":"example_title","price":10,"currency":"example_currency"}],"meta":{"site":"allegro-pl","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/allegro-pl/v1/offers":{"post":{"operationId":"allegro_pl_offers","summary":"Allegro Products Prices and Sellers: Offer, product, reviews or EAN lookup","description":"Offer details, product catalog offers, reviews or EAN matches from Allegro. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["allegro-pl","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Choose Auto to select a mode from your target fields, or choose a specific mode below. allegro_api, categories (needs a browser session), image_search and wakacje are currently unavailable: they stop at the input check with an error, return no rows and are not charged.","default":"offer","enum":["offer","product","product_offers","reviews","ean"]},"offerId":{"type":"string","description":"Enter the numeric identifier of a single-seller offer."},"offerIds":{"type":"array","items":{"type":"string"},"description":"List of numeric Allegro offer IDs for batch offer lookup (mode=offer)."},"productId":{"type":"string","description":"Enter the catalog product UUID from an Allegro product URL."},"ean":{"type":"string","description":"Enter one EAN barcode instead of the eans list."},"eans":{"type":"array","items":{"type":"string"},"description":"Enter 8–14 digit EAN or GTIN barcodes for EAN lookup. Results may include near matches; keywords belong in search mode."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Allegro page URLs as strings or objects with a url field. The URL determines the market."},"country":{"type":"string","description":"Choose the main Allegro market: Poland, Czechia, Slovakia or Hungary.","default":"pl","enum":["pl","cz","sk","hu"]},"domain":{"type":"string","description":"Choose the matching Allegro domain. A supplied page URL takes priority; Lokalnie and Wakacje use their Polish domains.","default":"allegro.pl","enum":["allegro.pl","allegro.cz","allegro.sk","allegro.hu","allegrolokalnie.pl","wakacje.allegro.pl"]},"currency":{"type":"string","description":"Optional display currency code (PLN, EUR, CZK, HUF) for batch offer lookup."},"enrichDetails":{"type":"boolean","description":"Add available brand, barcode, attributes, images and other offer details. This is optional and may take longer; in Lokalnie discovery it can also add separately billed related offers within the row limit.","default":false},"fields":{"type":"array","items":{"type":"string"},"description":"Optional list of output field names to include on each returned row."},"maxResults":{"type":"integer","description":"Maximum rows for each keyword, URL, category, barcode or other target, from 1 to 500; default 70. All row types share the limit, with the whole run constrained by your maximum charge and Free plan limits of 200 rows per run and 10 runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"offer","offerId":"12345678901","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_allegro_pl"},"example":{"jobId":"job_allegro-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","offerId":"example_offerId","productId":"example_productId","title":"example_title","price":10,"currency":"example_currency"}],"meta":{"site":"allegro-pl","endpoint":"offers","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/allegro-pl/v1/sellers":{"post":{"operationId":"allegro_pl_sellers","summary":"Allegro Products Prices and Sellers: Seller profile and listings","description":"Offers and profile rows for a specific Allegro sellerLogin. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["allegro-pl","eCommerce"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sellerLogin":{"type":"string","description":"Enter the seller login used in the storefront URL."},"query":{"type":"string","description":"Enter one keyword for search, Lokalnie, Allegro API search or Wakacje. With Auto selected, this field starts a keyword search."},"categoryId":{"type":"string","description":"Enter the numeric category ID from an Allegro category URL."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Enter Allegro page URLs as strings or objects with a url field. The URL determines the market."},"country":{"type":"string","description":"Choose the main Allegro market: Poland, Czechia, Slovakia or Hungary.","default":"pl","enum":["pl","cz","sk","hu"]},"domain":{"type":"string","description":"Choose the matching Allegro domain. A supplied page URL takes priority; Lokalnie and Wakacje use their Polish domains.","default":"allegro.pl","enum":["allegro.pl","allegro.cz","allegro.sk","allegro.hu","allegrolokalnie.pl","wakacje.allegro.pl"]},"order":{"type":"string","description":"Choose relevance, price ascending, price descending, price with delivery, newest or popularity. Availability varies by page.","default":"m","enum":["m","p","pd","d","n","qd"]},"p":{"type":"integer","description":"Enter the starting category page number, from 1 to 500.","default":1,"minimum":1,"maximum":500},"fields":{"type":"array","items":{"type":"string"},"description":"Optional list of output field names to include on each returned row."},"maxResults":{"type":"integer","description":"Maximum rows for each keyword, URL, category, barcode or other target, from 1 to 500; default 70. All row types share the limit, with the whole run constrained by your maximum charge and Free plan limits of 200 rows per run and 10 runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"sellerLogin":"allegro","maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_allegro_pl"},"example":{"jobId":"job_allegro-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"recordType":"example_recordType","offerId":"example_offerId","productId":"example_productId","title":"example_title","price":10,"currency":"example_currency"}],"meta":{"site":"allegro-pl","endpoint":"sellers","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/allegro-pl/v1/health":{"get":{"operationId":"allegro_pl_health","summary":"Allegro Products Prices and Sellers: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["allegro-pl","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_allegro_pl":{"type":"object","properties":{"recordType":{"type":["string","null"],"title":"Type"},"offerId":{"type":["string","null"],"title":"Offer ID"},"productId":{"type":["string","null"],"title":"Product ID"},"title":{"type":["string","null"],"title":"Title"},"price":{"type":["number","null"],"title":"Price"},"currency":{"type":["string","null"],"title":"Currency"},"promoted":{"type":["boolean","null"],"title":"Ad"},"sellingMode":{"type":["string","null"],"title":"Mode"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"domain":{"type":["string","null"],"title":"Domain"},"country":{"type":["string","null"],"title":"Country"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_allegro_pl":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_allegro_pl"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}