{
  "openapi": "3.0.1",
  "info": {
    "title": "Allegro Scraper: Products, Prices & Seller Leads",
    "description": "Collect public Allegro offers, seller profiles, and product reviews from searches, links, offer numbers, or EAN barcodes. Get prices, delivery, sellers, product details, and ratings. Add published seller emails, phones, and websites when needed.",
    "version": "4.0",
    "x-build-id": "kfujBj81x3gj2KIzY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~allegro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-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/maximedupre~allegro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-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/maximedupre~allegro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-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",
        "required": [
          "resultType"
        ],
        "properties": {
          "maxItems": {
            "title": "Maximum rows per input",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many output rows from each submitted search, number, barcode, or URL. Zero or an empty field means all available rows until each input is exhausted. This limit applies to Offers, Seller profiles, and Product reviews."
          },
          "resultType": {
            "title": "Result type",
            "enum": [
              "offers",
              "sellerProfiles",
              "productReviews"
            ],
            "type": "string",
            "description": "Choose Offers, Seller profiles, or Product reviews. Fill in the fields for that result type. Fields for other result types are ignored."
          },
          "target": {
            "title": "Find offers by",
            "enum": [
              "search",
              "listingPages",
              "sellerStorefronts",
              "offers",
              "offerNumbers",
              "barcodes"
            ],
            "type": "string",
            "description": "For Offers, choose how to find offers. Keyword search uses Search terms. Seller storefronts uses Seller storefront URLs. Direct offers uses Offer or product URLs. Other methods use the field with the same name."
          },
          "listingUrls": {
            "title": "Category or listing pages: URLs",
            "type": "array",
            "description": "For Offers with Category or listing pages, add complete public Allegro category or search URLs. The search criteria in each URL are kept unless a filter or sort choice below sets the same choice.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "offerNumbers": {
            "title": "Offer numbers: Numbers",
            "type": "array",
            "description": "For Offers with Offer numbers, enter one Allegro offer number per entry. Keep each number as shown by Allegro.",
            "items": {
              "type": "string"
            }
          },
          "barcodes": {
            "title": "Barcodes: EAN or GTIN codes",
            "type": "array",
            "description": "For Offers with Barcodes, enter one full EAN or GTIN code per entry. Keep leading zeros.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "For Offers, return offers at or above this amount in the marketplace currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "For Offers, return offers at or below this amount in the marketplace currency. Leave empty for no maximum."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used",
              "like-new",
              "refurbished",
              "damaged",
              "incomplete"
            ],
            "type": "string",
            "description": "For Offers, keep all conditions or select one condition. If Allegro does not show a condition, the offer may still be returned.",
            "default": "all"
          },
          "sort": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "popularity",
              "newest",
              "priceWithDeliveryAsc",
              "priceWithDeliveryDesc",
              "endingSoon",
              "productRating"
            ],
            "type": "string",
            "description": "For Offers, choose Allegro's result order where available. Direct offers and Offer numbers keep the submitted order. Sort choices can vary by marketplace and listing.",
            "default": "relevance"
          },
          "includeSponsored": {
            "title": "Include sponsored offers",
            "type": "boolean",
            "description": "For Offers, include offers that Allegro marks as sponsored. Turn off to leave out those offers.",
            "default": true
          },
          "reviewMethod": {
            "title": "Find reviews by",
            "enum": [
              "search",
              "products"
            ],
            "type": "string",
            "description": "For Product reviews, Keyword search uses Search terms to find products. Product links uses the product links in Offer or product URLs."
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "For Keyword search in Offers or Product reviews, enter one or more searches. Each entry is one full search phrase and uses the same settings.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "pl",
              "cz",
              "sk",
              "hu"
            ],
            "type": "string",
            "description": "Choose the marketplace for Keyword search in Offers or Product reviews, and for Offer numbers and Barcodes in Offers. URL methods use the marketplace in each URL.",
            "default": "pl"
          },
          "sellerUrls": {
            "title": "Seller storefront URLs",
            "type": "array",
            "description": "Add complete public Allegro seller storefront URLs. Seller profiles returns the public seller profiles. Offers with Seller storefronts returns the sellers' offers.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "offerUrls": {
            "title": "Offer or product URLs",
            "type": "array",
            "description": "Add complete public Allegro URLs. Offers with Direct offers accepts offer links and product links; product links return sellers' offers for that product. Each URL is handled on its own, without a substitute offer on a mismatch. Product reviews with Product links uses product links to return their reviews.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeSellerEmails": {
            "title": "Include seller email addresses",
            "type": "boolean",
            "description": "For Offers and Seller profiles, collect published company email addresses for the seller, where available. When off, collect none of these values, whatever the limit below.",
            "default": false
          },
          "maxSellerEmails": {
            "title": "Maximum seller email addresses per row",
            "minimum": 0,
            "type": "integer",
            "description": "For Offers and Seller profiles, include up to this many seller company email addresses per row, where available, when the Include switch is on. Leave empty to use 3. Zero means all available values.",
            "default": 3
          },
          "includeSellerPhones": {
            "title": "Include seller phone numbers",
            "type": "boolean",
            "description": "For Offers and Seller profiles, collect published company phone numbers for the seller, where available. When off, collect none of these values, whatever the limit below.",
            "default": false
          },
          "maxSellerPhones": {
            "title": "Maximum seller phone numbers per row",
            "minimum": 0,
            "type": "integer",
            "description": "For Offers and Seller profiles, include up to this many seller company phone numbers per row, where available, when the Include switch is on. Leave empty to use 3. Zero means all available values.",
            "default": 3
          },
          "includeSellerWebsites": {
            "title": "Include seller websites",
            "type": "boolean",
            "description": "For Offers and Seller profiles, collect published company websites for the seller, where available. When off, collect none of these values, whatever the limit below.",
            "default": false
          },
          "maxSellerWebsites": {
            "title": "Maximum seller websites per row",
            "minimum": 0,
            "type": "integer",
            "description": "For Offers and Seller profiles, include up to this many seller company websites per row, where available, when the Include switch is on. Leave empty to use 3. Zero means all available values.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}