{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Price Scraper — All Sellers & Prices by URL",
    "description": "Give a product or offer URL, get every seller + price for that product on Allegro.pl — sorted, with min/max/avg. Built by Klevio — Polish e-commerce specialists.",
    "version": "0.6",
    "x-build-id": "E1pJ5PFPnoikConE5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/klevio~allegro-price-comparison/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-klevio-allegro-price-comparison",
        "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-price-comparison/runs": {
      "post": {
        "operationId": "runs-sync-klevio-allegro-price-comparison",
        "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-price-comparison/run-sync": {
      "post": {
        "operationId": "run-sync-klevio-allegro-price-comparison",
        "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": [
          "productUrls"
        ],
        "properties": {
          "productUrls": {
            "title": "Allegro product / offer URLs",
            "type": "array",
            "description": "Lista URL-i Allegro: /produkt/... lub /oferta/... (działa też business.allegro.pl). Dla każdego aktor znajdzie wszystkie oferty wszystkich sprzedawców + ceny. Max 1000 na run, jeden URL per linia.",
            "items": {
              "type": "string"
            }
          },
          "topNOffers": {
            "title": "Top N ofert per produkt",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maks. liczba ofert do zwrócenia per EAN/URL. Default 20 pokrywa 99% przypadków (większość produktów ma 5-20 sprzedawców).",
            "default": 20
          },
          "sortBy": {
            "title": "Sortowanie ofert",
            "enum": [
              "price-asc",
              "price-desc",
              "rating-desc"
            ],
            "type": "string",
            "description": "Kolejność ofert w wyniku (i które trafią do top N).",
            "default": "price-asc"
          },
          "smartFilter": {
            "title": "Filtr Allegro Smart!",
            "enum": [
              "all",
              "smart-only",
              "exclude-smart"
            ],
            "type": "string",
            "description": "Allegro Smart! = darmowa dostawa.",
            "default": "all"
          },
          "includePromoted": {
            "title": "Uwzględnij oferty promowane (sponsorowane)",
            "type": "boolean",
            "description": "Jeśli WYŁĄCZONE — pomijamy oferty paid-promoted (sponsored placements). Czystsza data dla price comparison.",
            "default": true
          },
          "brightDataWssUrl": {
            "title": "Bright Data WSS URL (opcjonalne)",
            "type": "string",
            "description": "Zostaw puste — domyślnie używamy naszej infrastruktury. Jeśli masz własne konto Bright Data — wklej swój WSS URL."
          },
          "maxConcurrency": {
            "title": "Równoległość",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Liczba równoległych sesji browsera. Default 2 dla balansu speed/reliability.",
            "default": 2
          },
          "minDelayMs": {
            "title": "Min delay (ms) — DataDome safety",
            "minimum": 0,
            "type": "integer",
            "description": "Minimalne opóźnienie między żądaniami. Wyższe = bezpieczniejsze dla DataDome.",
            "default": 1500
          },
          "maxDelayMs": {
            "title": "Max delay (ms) — DataDome safety",
            "minimum": 0,
            "type": "integer",
            "description": "Maksymalne opóźnienie między żądaniami. Aktor losuje wartość między min a max.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}