{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro.pl Scraper — Every Seller, Price, Stock, EAN/GTIN",
    "description": "Allegro.pl scraper for the Polish marketplace: an Allegro API alternative. Give it an EAN/GTIN, a URL, a seller, a category or a keyword — get every seller with price, stock, 30-day buyers, buy box and reviews. For price monitoring and repricing. $1 per 1,000 records delivered.",
    "version": "0.2",
    "x-build-id": "Wa8o5yboGncUIEa87"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/marzi.ai~allegro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-marzi.ai-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/marzi.ai~allegro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-marzi.ai-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/marzi.ai~allegro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-marzi.ai-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",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "AUTO",
              "PRODUCT",
              "SEARCH",
              "CATEGORY",
              "SELLER"
            ],
            "type": "string",
            "description": "AUTO reads whatever you give it: searchQueries, gtins and any allegro.pl link in startUrls (offer, product card, category, seller storefront, search). The strict modes accept one kind of link only — what a published task promises.",
            "default": "AUTO"
          },
          "searchQueries": {
            "title": "Search phrases",
            "type": "array",
            "description": "What to type into Allegro's search box, one phrase per line, e.g. \"powerbank 20000mah\". Polish works best — Allegro is a Polish marketplace. Each phrase is walked page by page.",
            "items": {
              "type": "string"
            }
          },
          "gtins": {
            "title": "GTIN / EAN codes",
            "type": "array",
            "description": "Barcodes to look up, one per line (8, 12, 13 or 14 digits). Each code is searched on Allegro; the record's source.gtin echoes the code, and with \"Open every offer page\" the gtin field shows the code the seller actually published.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "allegro.pl links: offers (/oferta/…), product cards (/produkt/… — every seller of the product), categories (/kategoria/…), seller storefronts (/uzytkownik/…) or searches (/listing?string=…). A ?p=N on a listing link starts the walk at that page. Only allegro.pl is accepted.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "allSellers": {
            "title": "Every seller of the product",
            "type": "boolean",
            "description": "For every product the run finds — from a GTIN/EAN, a search phrase, a category, a storefront or an offer link — also read the product's offer list and return one record per seller: price, price with delivery, stock, units sold, 30-day buyers and which offer holds the buy box. One extra page per product (60 offers a page), at most 50 products per run. Each seller's offer is its own record, so a product with 17 sellers costs 17 records.",
            "default": false
          },
          "searchQuery": {
            "title": "Search query (single)",
            "maxLength": 200,
            "type": "string",
            "description": "One phrase, kept for older tasks and API calls; the same as one line in Search phrases."
          },
          "maxProducts": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many products across every target. One product is one billable event. Runs are capped at 10,000.",
            "default": 100
          },
          "sort": {
            "title": "Sort (listings)",
            "enum": [
              "relevance",
              "popularity",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Allegro's own sort orders for searches, categories and storefronts. popularity is Allegro's \"most popular\" (by 30-day buyers); on a seller storefront Allegro serves it for the first page only.",
            "default": "relevance"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Allegro's condition filter (stan).",
            "default": "all"
          },
          "priceMin": {
            "title": "Price from (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to include, PLN."
          },
          "priceMax": {
            "title": "Price to (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to include, PLN."
          },
          "fetchDetails": {
            "title": "Open every offer page",
            "type": "boolean",
            "description": "Listings and product cards: also open each offer page to add stock, GTIN/EAN, units sold and this seller's own 30-day buyers, written reviews and rating distribution, review feature sentiment, description, grouped specifications, warranty, return policy, category path and full-size images. One extra page per product, so runs take longer. Offer links (PRODUCT) always carry these.",
            "default": false
          },
          "fetchReviews": {
            "title": "Fetch product reviews",
            "type": "boolean",
            "description": "Read the product's reviews for every record: rating, date, text (with Allegro's English translation when it has one), pros and cons, the seller bought from, variant, helpful votes, reviewer photos. Read from Allegro's own review feed, page by page - fast. Opens every offer page on listings. Billed as a second event per product with reviews, at the same price as the product, however many reviews it has.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many reviews per product (in the order chosen below). Runs are capped at 1,000 per product.",
            "default": 100
          },
          "reviewsSort": {
            "title": "Reviews order",
            "enum": [
              "newest",
              "most_helpful"
            ],
            "type": "string",
            "description": "newest: the latest reviews first (monitoring). most_helpful: Allegro's own order, the reviews shoppers found useful first.",
            "default": "newest"
          },
          "includeSponsored": {
            "title": "Include sponsored cards",
            "type": "boolean",
            "description": "Keep Allegro's paid ad slots in the results (flagged sponsored: true). Off by default: ads repeat on every page and usually duplicate organic results.",
            "default": false
          },
          "includeParameters": {
            "title": "Include parameters",
            "type": "boolean",
            "description": "Keep the product parameters (and, from offer pages, the grouped specification table) on every record. Off = null: parameters and images are over half of a record's size and rarely needed for a decision — the same default the Marzi MCP uses for AI clients.",
            "default": true
          },
          "includeImages": {
            "title": "Include images",
            "type": "boolean",
            "description": "Keep the image URLs on every record (imageUrl, the first picture, stays either way). Off = null.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Keep the seller's description (offer pages; flattened to text, up to 20,000 characters) on the record. Off = null — the smallest record for an AI agent.",
            "default": true
          },
          "concurrency": {
            "title": "Parallel sessions",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Browser sessions used at once. More is faster but not unbounded: Allegro's anti-bot regime is per identity, and the Actor paces every session.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}