{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Seller Scraper — Full Catalog + EAN, SKU, Descriptions",
    "description": "Scrape any Allegro.pl or business.allegro.pl seller's full catalog. Two modes: full product data with EAN/SKU/descriptions, or cheap listing-only for price monitoring. Works where other Allegro scrapers fail.",
    "version": "0.1",
    "x-build-id": "yg5Gnrhw0SNYSI30z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/klevio~allegro-seller-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-klevio-allegro-seller-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/klevio~allegro-seller-scraper/runs": {
      "post": {
        "operationId": "runs-sync-klevio-allegro-seller-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/klevio~allegro-seller-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-klevio-allegro-seller-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": "Tryb działania",
            "enum": [
              "seller",
              "product"
            ],
            "type": "string",
            "description": "SKLEP SPRZEDAWCY = podajesz URL sprzedawcy/sklepu, scraper zbiera cały katalog z paginacją. PRODUKTY PO URL = podajesz listę konkretnych URL-i produktów, scraper wchodzi w każdy i wyciąga szczegóły.",
            "default": "seller"
          },
          "brightDataWssUrl": {
            "title": "Bright Data WSS URL — OPCJONALNE (tylko dla power users)",
            "type": "string",
            "description": "Zostaw PUSTE — domyślnie używamy naszej infrastruktury Bright Data (cena obejmuje proxy i DataDome bypass). Jeśli masz WŁASNE konto Bright Data Browser API i chcesz rozliczać się bezpośrednio z nimi, wklej swój wss://brd-customer-XXX-zone-YYY:PASSWORD@brd.superproxy.io:9222 (znajdziesz w Bright Data Dashboard → Zones → [zone] → Access Parameters). Pole zaszyfrowane."
          },
          "sellerUrl": {
            "title": "URL sklepu (tryb: seller)",
            "type": "string",
            "description": "Pełny URL strony sprzedawcy, np. https://allegro.pl/uzytkownik/BamTrade lub https://business.allegro.pl/uzytkownik/BamTrade. Oba formaty są obsługiwane."
          },
          "productUrls": {
            "title": "URL produktów (tryb: product)",
            "type": "array",
            "description": "Lista URLi produktów Allegro do scrapowania szczegółów. Akceptowane formaty: allegro.pl/oferta/... oraz allegro.pl/produkt/...",
            "items": {
              "type": "string"
            }
          },
          "maxProducts": {
            "title": "Maks. liczba produktów",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit dla trybu seller. Ustawienie 0 = bez limitu (cały katalog). Default to bezpieczne 3 — podnieś do 100/1000/10000+ dla prawdziwej pracy.",
            "default": 3
          },
          "fetchProductDetails": {
            "title": "Wchodź w każdy produkt i pobieraj szczegóły (EAN, SKU, opis, zdjęcia)",
            "type": "boolean",
            "description": "WŁĄCZONE (zalecane): pełny profil produktu — URL, nazwa, cena, EAN, SKU, opis, zdjęcia. ~30s/produkt, ~$12-15 / 1000 produktów. WYŁĄCZONE (tryb monitoring cen): tylko URL, nazwa, cena, offerId, mainImage. BEZ EAN/SKU/opisu. Błyskawiczne i 30-50× tańsze: ~$0.30-0.50 / 1000. Idealne dla repricera/śledzenia cen konkurencji.",
            "default": true
          },
          "maxRequestsPerCrawl": {
            "title": "Hard limit requestów na run (safety)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Bezpiecznik — twardy limit requestów w jednym uruchomieniu. Scraper zatrzyma się po tej liczbie niezależnie od maxProducts. Default 5 (1 listing + 3-4 produkty, dobre na test). Dla pracy podnieś do 100-1000+.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Równoległość",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Liczba równoległych sesji browsera. Każda sesja Bright Data zużywa GB. Zalecane 1 na test, 2-3 na produkcji.",
            "default": 1
          },
          "minDelayMs": {
            "title": "Min. opóźnienie (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimalne opóźnienie między requestami w milisekundach. Wyższy delay = mniej podejrzany wzorzec dla DataDome = więcej pełnych stron zamiast challenge.",
            "default": 1500
          },
          "maxDelayMs": {
            "title": "Max. opóźnienie (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Maksymalne opóźnienie między requestami w milisekundach. Scraper losuje wartość pomiędzy min a max dla każdego requestu.",
            "default": 4000
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}