{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro PL Marketplace [💰$1.4/1K] | Prices, Sellers & EANs",
    "description": "[💰$1.4/1K] Extract Allegro marketplace data — product titles, prices, sellers, ratings, EANs and availability — for Polish e-commerce price monitoring, competitor research and catalog building.",
    "version": "1.0",
    "x-build-id": "oskC12CpdXnpvA3bK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~allegro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-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/ahmed_jasarevic~allegro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-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/ahmed_jasarevic~allegro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search on Allegro.pl, for example laptop gaming or iPhone 15. Each query costs one page request (~60 offers), so prefer a result limit of 60+ per query when you need volume. Add keywords to searchQueries rather than adding pages.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Offer, search, category or seller storefront URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItemsPerQuery": {
            "title": "Max items per query / URL",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "Upper bound of products to extract per search query or per listing/category/seller URL. Allegro serves ~50-60 products per page, so 60 is the most economical setting: one request returns the whole page. Search and category views are capped by Allegro at 100 pages (~6000 products per query); seller storefronts have no such cap and are followed to their real last page.",
            "default": 20
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query / URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional hard cap on the number of listing pages fetched per query/URL, independent of the item limit. Defaults to the number of pages needed to reach Max items per query (capped at 100 for search/category by Allegro)."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return offers priced at or above this value in PLN. Maps to Allegro's `price_from` filter (applied to search and category URLs)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return offers priced at or below this value in PLN. Maps to Allegro's `price_to` filter (applied to search and category URLs)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Filter by product condition (Allegro's \"stan\" filter).",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "newest"
            ],
            "type": "string",
            "description": "Order of the search/category results.",
            "default": "relevance"
          },
          "cacheTtlSecs": {
            "title": "Cache TTL (seconds)",
            "minimum": 0,
            "maximum": 2592000,
            "type": "integer",
            "description": "Reuse parsed pages from previous runs for this long. A cache hit skips the proxy request entirely and costs only a key-value read; the rows are still pushed to your dataset. Default 3600 (1 hour). Set 0 to disable. For daily monitoring, 86400 means each URL is fetched at most once a day.",
            "default": 3600
          },
          "barcodeCacheTtlSecs": {
            "title": "Barcode cache TTL (seconds)",
            "minimum": 0,
            "maximum": 2592000,
            "type": "integer",
            "description": "Barcode/EAN pages are cached for this long. Default 90000 (25 hours), so a recurring EAN batch pays one request per EAN per day instead of one per run. Set 0 to disable barcode caching for strictly one-off batches.",
            "default": 90000
          },
          "maxPageRequests": {
            "title": "Max paid page requests per run",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on paid listing/offer fetches in one run. Cache hits are free and do not count. Default 2000; 0 = unlimited. Prevents a misconfigured run with thousands of URLs from generating a large proxy bill.",
            "default": 2000
          },
          "scrapeProductDetails": {
            "title": "Scrape full product details",
            "type": "boolean",
            "description": "Visit each offer page for the deep dataset: full description, complete parameter table, rating + review count + score distribution, stock quantity, GTIN/EAN, warranty, return policy and full-resolution images. Costs one extra request per product and carries a small per-offer-page surcharge (`offer-detail`). Use it only when you need the detail block.",
            "default": false
          },
          "barcodeQuickLookup": {
            "title": "Barcode quick lookup",
            "type": "boolean",
            "description": "When a search query is a pure EAN/GTIN barcode (8–14 digits) and \"Max items per query\" is 1, skip the extra per-offer fetch and echo the searched barcode into the record's `gtin` field. The listing data still gives price, seller, rating, images and parameters. Each barcode needs its own listing page request and carries a small per-lookup surcharge (`barcode-lookup`). Turn OFF if you need descriptions, stock, warranty or return policy on barcode lookups.",
            "default": true
          },
          "geoCode": {
            "title": "Proxy exit country",
            "enum": [
              "pl",
              "de",
              "cz",
              "sk",
              "hu"
            ],
            "type": "string",
            "description": "Country used by the optional scrape.do transport. The default UNBLOCKER path selects the best country automatically. Keep \"pl\" for Polish prices when using scrape.do.",
            "default": "pl"
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many products or pages are processed in parallel (1-50). Keep 20 for the default UNBLOCKER path; raise it only if you also raise the Actor memory. Deep mode (offer pages) is internally capped at 8 to keep memory bounded.",
            "default": 20
          },
          "warmup": {
            "title": "Fast warm-up (advanced, costs proxy traffic)",
            "type": "boolean",
            "description": "OFF by default. When enabled, solves DataDome once in a stealth browser over a sticky RESIDENTIAL proxy and then reuses that one cookie for every query via curl-impersonate (~1s/page instead of ~60s). A solve pulls several MB through RESIDENTIAL, which is billed per GB, so this is only economical for large crawls (hundreds of pages). The default UNBLOCKER path is billed per successful request and is much cheaper for normal runs.",
            "default": false
          },
          "warmConcurrency": {
            "title": "Warm-up concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many stealth-browser DataDome solves may run at once. Warm-up now solves only once per run, so 1-2 is enough (each browser is ~300-500 MB).",
            "default": 2
          },
          "blockBrowserMedia": {
            "title": "Save proxy traffic during warm-up",
            "type": "boolean",
            "description": "Skip images, fonts, video and all third-party hosts inside the stealth browser used only to solve DataDome. Challenge scripts and first-party Allegro assets still load, so the solve behaves normally while residential proxy traffic (billed per byte) drops sharply. Turn off only if solves start failing.",
            "default": true
          },
          "sessionKeepaliveSecs": {
            "title": "Session keepalive (seconds)",
            "minimum": 0,
            "maximum": 900,
            "type": "integer",
            "description": "Keepalive for the shared warm session: after this many idle seconds a HEAD request refreshes the cookie without re-downloading a page. Set to 0 (default) to disable it and re-solve on demand instead.",
            "default": 0
          },
          "scrapeDoApiKey": {
            "title": "scrape.do API key (optional)",
            "type": "string",
            "description": "Optional scrape.do token. When set, listing and offer pages are fetched through scrape.do's managed DataDome bypass instead of the built-in warm-up path. Takes priority over proxyConfiguration and warmup."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave empty for the recommended setup: Apify UNBLOCKER, which solves Allegro's DataDome challenge server-side and bills 10 units (~$0.0015) per successful page. UNBLOCKER is by far the cheapest option for normal runs. Pick RESIDENTIAL only when you enable the optional warm-up (fast mode for very large crawls) — RESIDENTIAL is billed per GB and a single browser solve can cost more than dozens of UNBLOCKER pages. Setting groups to [\"UNBLOCKER\"] explicitly is also fine."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}