{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Scraper - Offers, Prices, Sellers",
    "description": "Scrape Allegro offers from search, category, seller or product URLs across Poland, Czechia, Slovakia and Hungary. Get prices, discounts, EAN/GTIN, seller signals and reviews, then export to CSV or JSON, use the API, schedule runs and connect integrations.",
    "version": "0.7",
    "x-build-id": "ca4yN59CK5bbjkMKC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spectre_scrape~allegro-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spectre_scrape-allegro-listings-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/spectre_scrape~allegro-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spectre_scrape-allegro-listings-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/spectre_scrape~allegro-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spectre_scrape-allegro-listings-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": {
          "dataType": {
            "title": "What do you want to scrape?",
            "enum": [
              "products",
              "productReviews",
              "sellerProfile"
            ],
            "type": "string",
            "description": "Pick one. Offers are the main data; reviews return a rating summary plus any review text Allegro embeds; seller profiles describe one seller.",
            "default": "products"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste any Allegro link: a search, category, seller shop, product, product-offers or single-offer page. The type and market are detected automatically.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search for, e.g. \"laptop\" or \"iphone 15\". Each becomes a listing search on the selected market.",
            "items": {
              "type": "string"
            }
          },
          "GTINs": {
            "title": "GTIN / EAN codes",
            "type": "array",
            "description": "Product barcodes to look up. Each code returns the first matching offer (quick lookup).",
            "items": {
              "type": "string"
            }
          },
          "market": {
            "title": "Country and currency",
            "enum": [
              "pl",
              "cz",
              "sk",
              "hu"
            ],
            "type": "string",
            "description": "Used for Search queries and GTIN codes. Start URLs use their own domain.",
            "default": "pl"
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "number",
            "description": "Lowest price to include, in the market currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "number",
            "description": "Highest price to include, in the market currency. Leave empty for no maximum."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Filter by item condition.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "newest"
            ],
            "type": "string",
            "description": "Ordering for search listings.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "How many rows?",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rows to save across the whole run. Use 0 for no limit (up to 5,000 for products).",
            "default": 100
          },
          "maxPages": {
            "title": "Pages per target",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Listing pages to load for each target. Allegro shows about 74 offers per page and allows up to 100 pages.",
            "default": 20
          },
          "maxItemsPerQuery": {
            "title": "Rows per query",
            "minimum": 0,
            "type": "integer",
            "description": "Optional per-target cap, in addition to the total. 0 means no per-target cap.",
            "default": 0
          },
          "scrapeEnrichment": {
            "title": "Fetch full offer details (deep mode)",
            "type": "boolean",
            "description": "Open every offer page to add description, full specs, GTIN, warranty, return policy, rating and full-resolution images. Slower and costs more requests.",
            "default": false
          },
          "maxDetailAgeHours": {
            "title": "Reuse cached details for",
            "minimum": 0,
            "type": "integer",
            "description": "Offer details younger than this are reused instead of re-fetched. 0 always fetches fresh.",
            "default": 168
          },
          "scrapeSellerContact": {
            "title": "Include seller company details",
            "type": "boolean",
            "description": "With deep mode, add NIP, company name, email, phone and website when the offer page shows a registered-trader block.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "type": "integer",
            "description": "Only for Product reviews. 0 means all available reviews.",
            "default": 0
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages to fetch at once. Higher is faster and uses more Apify Unblocker units.",
            "default": 5
          },
          "maxRequests": {
            "title": "Maximum Unblocker requests",
            "minimum": 0,
            "type": "integer",
            "description": "Safety budget: stop once this many page requests are used. 0 means no cap. Each request costs about 10 Apify units.",
            "default": 0
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "How long to wait for a single page before retrying.",
            "default": 60
          },
          "retriesPerRequest": {
            "title": "Retries per page",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a page that fails.",
            "default": 3
          },
          "delayBetweenRequestsMs": {
            "title": "Delay between pages",
            "minimum": 0,
            "type": "integer",
            "description": "Pause between pages of the same target. Leave as is unless you need to slow down.",
            "default": 800
          },
          "feedback": {
            "title": "Feedback",
            "type": "string",
            "description": "Optional: tell the maintainer what you needed or what was missing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}