{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Scraper: Offers, Sellers, Reviews & EAN Lookup",
    "description": "Scrape Allegro (pl, cz, sk) from a keyword, EAN or link: search results, every seller's offer of a product, full offer details, product reviews, and seller ratings with company data. Export to Excel, CSV or JSON.",
    "version": "0.0",
    "x-build-id": "YBTSU1qb4K3KY1z4n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sourabhbgp~allegro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sourabhbgp-allegro-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/sourabhbgp~allegro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sourabhbgp-allegro-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/sourabhbgp~allegro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sourabhbgp-allegro-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "productOffers",
              "offerDetails",
              "reviews",
              "seller"
            ],
            "type": "string",
            "description": "Pick what to scrape, then fill the section with the same name below. Settings of the other modes are ignored.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search keywords or EANs",
            "type": "array",
            "description": "One per line, as you would type it in Allegro's search box, for example iphone 15 or an EAN such as 0195949018817.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Allegro search, category or seller links",
            "type": "array",
            "description": "Search, category or seller pages from allegro.pl, allegro.cz or allegro.sk, for example https://allegro.pl/kategoria/smartfony-i-telefony-komorkowe-165, https://allegro.pl/listing?string=lego&stan=nowe or https://allegro.pl/uzytkownik/luxtrade-pl. Filters already in the link are kept. Each link is scraped in its own market.",
            "items": {
              "type": "string",
              "pattern": "^\\s*https?://(www\\.|m\\.)?allegro\\.(pl/(listing|kategoria/|uzytkownik/)|cz/(vyhledavani|kategorie/|uzivatel/|obchod/)|sk/(vyhladavanie|kategoria/|pouzivatel/|obchod/))\\S*\\s*$"
            }
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many offers for each keyword or link. Allegro lists at most about 6,000 products for one search (often fewer); split bigger searches with a price range or category.",
            "default": 100
          },
          "includeSponsored": {
            "title": "Include sponsored offers",
            "type": "boolean",
            "description": "Also return the sponsored offers Allegro mixes into the results (marked placement SPONSORED). They repeat on every page, so each one is returned once. Search mode only: on a product's offers list every offer is returned, sponsored or not.",
            "default": false
          },
          "productUrls": {
            "title": "Allegro product links or IDs",
            "type": "array",
            "description": "Product pages or a product's offers list from allegro.pl, allegro.cz or allegro.sk, for example https://allegro.pl/produkt/smartfon-apple-iphone-15-6-gb-128-gb-5g-czarny-2c471a7b-e083-42cc-b811-faffef64ef77 or https://allegro.pl/oferty-produktu/2c471a7b-e083-42cc-b811-faffef64ef77, or a bare product ID (searched on the market below). Filters already in an offers-list link are kept.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(https?://(www\\.|m\\.)?allegro\\.(pl/(produkt|oferty-produktu)/|cz/(produkt|nabidky-produktu)/|sk/(produkt|ponuky-produktu)/)\\S*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\\s*$"
            }
          },
          "eans": {
            "title": "EANs",
            "type": "array",
            "description": "Barcodes (8, 12, 13 or 14 digits). Each is looked up with Allegro's search on the market below, and every seller's offer of the product found is returned.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(\\d{8}|\\d{12,14})\\s*$"
            }
          },
          "maxOffersPerProduct": {
            "title": "Max offers per product",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many offers for each product or EAN.",
            "default": 100
          },
          "offerUrls": {
            "title": "Allegro offer links or IDs",
            "type": "array",
            "description": "Offer pages from allegro.pl, allegro.cz or allegro.sk, for example https://allegro.pl/oferta/18880522525, a product link with ?offerId=, or a bare offer ID (looked up on the market below). One row per offer with every detail the offer page shows.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(https?://(www\\.|m\\.)?allegro\\.(pl/(oferta/|produkt/\\S*[?&]offerId=)|cz/(nabidka/|produkt/\\S*[?&]offerId=)|sk/(ponuka/|produkt/\\S*[?&]offerId=))\\S*|\\d{8,13})\\s*$"
            }
          },
          "reviewProducts": {
            "title": "Products to get reviews for",
            "type": "array",
            "description": "One per line: an Allegro product link or product ID, an offer link (its product's reviews are returned), or an EAN. Reviews on Allegro belong to the product, not to one seller's offer.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(https?://(www\\.|m\\.)?allegro\\.(pl|cz|sk)/\\S+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|\\d{8}|\\d{12,14})\\s*$"
            }
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many reviews for each product.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "mostHelpful",
              "newest"
            ],
            "type": "string",
            "description": "Allegro offers two orders.",
            "default": "mostHelpful"
          },
          "reviewRating": {
            "title": "Stars",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only reviews with this many stars.",
            "default": "all"
          },
          "sellers": {
            "title": "Seller links or IDs",
            "type": "array",
            "description": "Seller pages from allegro.pl, allegro.cz or allegro.sk (for example https://allegro.pl/uzytkownik/luxtrade-pl), or numeric seller IDs. To get a seller's offers, use Search mode with the same link.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(https?://(www\\.|m\\.)?allegro\\.(pl/uzytkownik/|cz/(uzivatel|obchod)/|sk/(pouzivatel|obchod)/)\\S+|\\d{3,12})\\s*$"
            }
          },
          "maxRatingsPerSeller": {
            "title": "Max ratings per seller",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Ratings to return after the seller row. 0 returns the seller row only. Allegro lists the last 12 months.",
            "default": 100
          },
          "sellerRatingFilter": {
            "title": "Ratings",
            "enum": [
              "all",
              "positive",
              "negative"
            ],
            "type": "string",
            "description": "All ratings, or only buyers who recommend or do not recommend the seller.",
            "default": "all"
          },
          "includeSellerCompany": {
            "title": "Add company details",
            "type": "boolean",
            "description": "Company name, tax ID, court register number, address and BDO number, read from one of the seller's offer pages (one extra page per seller).",
            "default": true
          },
          "market": {
            "title": "Market",
            "enum": [
              "pl",
              "cz",
              "sk"
            ],
            "type": "string",
            "description": "Which Allegro site keywords, EANs and bare product, offer or seller IDs use. Links always use their own site.",
            "default": "pl"
          },
          "includeOfferDetails": {
            "title": "Add full offer details",
            "type": "boolean",
            "description": "Also open each offer's page and add EAN, manufacturer code, brand, stock, every parameter, description, delivery methods, returns, warranty, sales of the offer and the seller's company details (name, tax ID, address, ratings). One extra page per offer, so runs take longer. Works in search and product offers.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "priceWithDeliveryAsc",
              "priceWithDeliveryDesc",
              "popularity",
              "endingSoon",
              "newest"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only offers at or above this price, in the market's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only offers at or below this price, in the market's currency."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New or used offers only.",
            "default": "all"
          },
          "offerType": {
            "title": "Offer type",
            "enum": [
              "all",
              "buyNow",
              "auction"
            ],
            "type": "string",
            "description": "Buy now or auctions only. allegro.pl only: allegro.cz and allegro.sk have no auctions.",
            "default": "all"
          },
          "freeDelivery": {
            "title": "Free delivery only",
            "type": "boolean",
            "description": "Only offers with free delivery.",
            "default": false
          },
          "smartOnly": {
            "title": "Allegro Smart! only",
            "type": "boolean",
            "description": "Only offers with Allegro Smart! delivery.",
            "default": false
          },
          "superSellerOnly": {
            "title": "Super Sellers only",
            "type": "boolean",
            "description": "Only offers from Super Sellers.",
            "default": false
          },
          "deliveryOneDay": {
            "title": "Delivery in one day only",
            "type": "boolean",
            "description": "Only offers Allegro says arrive in one day.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}