{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Scraper | PL CZ SK HU Prices Sellers Offers",
    "description": "Scrape Allegro.pl, Allegro.cz, Allegro.sk & Allegro.hu — search, categories, Strefa Okazji deals, sellers, product hubs, multi-offers & EAN. Extract offerId, prices, sellers, ads flags. Export Excel/CSV/JSON. Unofficial — not affiliated with Allegro.",
    "version": "0.1",
    "x-build-id": "9izhFVpK9iJ6pHnSl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~allegro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~allegro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~allegro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": [
              "search",
              "category",
              "categories",
              "department",
              "deals",
              "product",
              "product_offers",
              "offer",
              "seller",
              "lokalnie",
              "ean",
              "image_search",
              "wakacje"
            ],
            "type": "string",
            "description": "search | category | categories | department | deals | product | product_offers | offer | seller | lokalnie | ean | image_search | wakacje",
            "default": "search"
          },
          "country": {
            "title": "Country",
            "enum": [
              "pl",
              "cz",
              "sk",
              "hu"
            ],
            "type": "string",
            "description": "Allegro market: pl (default), cz, sk, hu",
            "default": "pl"
          },
          "domain": {
            "title": "Domain",
            "enum": [
              "allegro.pl",
              "allegro.cz",
              "allegro.sk",
              "allegro.hu",
              "allegrolokalnie.pl",
              "wakacje.allegro.pl"
            ],
            "type": "string",
            "description": "allegro.pl | allegro.cz | allegro.sk | allegro.hu | allegrolokalnie.pl | wakacje.allegro.pl",
            "default": "allegro.pl"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword for search / lokalnie / wakacje. Console Test prefills a short PL keyword so Start works without extra fields.",
            "default": "kawa"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional list of keywords; first is used when query is empty",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Numeric category id for /kategoria/{slug}-{id}"
          },
          "categorySlug": {
            "title": "Category slug",
            "type": "string",
            "description": "Optional slug prefix for category / seller subcategory URL"
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional list; first used when categoryId empty",
            "items": {
              "type": "string"
            }
          },
          "departmentCode": {
            "title": "Department code",
            "type": "string",
            "description": "e.g. elektronika, moda — for mode=department"
          },
          "productId": {
            "title": "Product UUID",
            "type": "string",
            "description": "Allegro product catalog UUID"
          },
          "offerId": {
            "title": "Offer ID",
            "type": "string",
            "description": "Numeric single-seller offer id"
          },
          "sellerLogin": {
            "title": "Seller login",
            "type": "string",
            "description": "Seller storefront login"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Allegro URLs (auto-routed). Each item may be a string or an Apify request-list object with a url field.",
            "items": {
              "type": "string"
            }
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "m",
              "p",
              "pd",
              "d",
              "n",
              "qd"
            ],
            "type": "string",
            "description": "Verified: m relevance | p price asc | pd price desc | d price+delivery | n newest | qd popularity",
            "default": "m"
          },
          "p": {
            "title": "Category page",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Category pagination ?p=N",
            "default": 1
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum offers/products to return. Console Test prefills 1 listing so a first run stays short. Free plan capped at 200.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Follow up to min(maxResults,20) listing URLs for brand/gtin/params/images",
            "default": false
          },
          "scrapeProductDetails": {
            "title": "Scrape product details",
            "type": "boolean",
            "description": "Alias of enrichDetails",
            "default": false
          },
          "priceFrom": {
            "title": "Price from",
            "type": "number",
            "description": "Maps to price_from query param"
          },
          "priceTo": {
            "title": "Price to",
            "type": "number",
            "description": "Maps to price_to query param"
          },
          "condition": {
            "title": "Condition",
            "type": "string",
            "description": "Maps to stan= (new|used|…)"
          },
          "buyNow": {
            "title": "Buy now only",
            "type": "boolean",
            "description": "Maps to buyNow=1"
          },
          "freeShipping": {
            "title": "Free shipping",
            "type": "boolean",
            "description": "Maps to freeShipping=1"
          },
          "offerType": {
            "title": "Offer type",
            "type": "string",
            "description": "Maps to offerType="
          },
          "seller": {
            "title": "Seller filter",
            "type": "string",
            "description": "SERP seller= filter (login)"
          },
          "city": {
            "title": "City / geo",
            "type": "string",
            "description": "city= filter; recommended for lokalnie"
          },
          "experimentalFilters": {
            "title": "Experimental filters",
            "type": "object",
            "description": "Opaque extra query keys (side-evidence only until Chrome-pinned)"
          },
          "shippingCountry": {
            "title": "Shipping country",
            "type": "string",
            "description": "Diagnostics-only unless URL-effective"
          },
          "eans": {
            "title": "EANs / GTINs",
            "type": "array",
            "description": "For mode=ean — barcode reverse lookup via page search",
            "items": {
              "type": "string"
            }
          },
          "ean": {
            "title": "EAN",
            "type": "string",
            "description": "Single EAN alias"
          },
          "imageUrl": {
            "title": "Image URL",
            "type": "string",
            "description": "For mode=image_search — worker downloads and uploads if control available"
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional HTTPS Cloud Run override (allowlisted). Production uses Actor env WORKER_BASE_URL."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}