{
  "openapi": "3.0.1",
  "info": {
    "title": "Ze Delivery Scraper",
    "description": "Extract products with real prices and discounts from Zé Delivery, Brazil's largest beverage delivery platform (Ambev). Supports 15 categories: beers, wines, spirits, snacks, and more. Location-based pricing.",
    "version": "1.0",
    "x-build-id": "y6VJZKzJAxrSCG6bx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yasmany.casanova~ze-delivery-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yasmany.casanova-ze-delivery-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/yasmany.casanova~ze-delivery-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yasmany.casanova-ze-delivery-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/yasmany.casanova~ze-delivery-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yasmany.casanova-ze-delivery-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": [
              "products",
              "categories"
            ],
            "type": "string",
            "description": "Extraction mode",
            "default": "products"
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "URL of the category page (e.g., https://www.ze.delivery/produtos/categoria/cervejas)"
          },
          "categorySlug": {
            "title": "Category Slug",
            "enum": [
              "cervejas",
              "vinhos",
              "destilados",
              "drinks-prontos",
              "ofertas",
              "nao-alcoolicos",
              "zero-fit",
              "salgadinhos",
              "churrasco",
              "chopp",
              "aguas-gelo",
              "sobremesas",
              "mercearia",
              "conveniencia",
              "sorvetes"
            ],
            "type": "string",
            "description": "Category slug. Available: cervejas, vinhos, destilados, drinks-prontos, ofertas, nao-alcoolicos, zero-fit, salgadinhos, churrasco, chopp, aguas-gelo, sobremesas, mercearia, conveniencia, sorvetes",
            "default": "cervejas"
          },
          "address": {
            "title": "Delivery Address",
            "type": "object",
            "description": "Delivery address (required to get product prices). Uses São Paulo default if not provided.",
            "properties": {
              "latitude": {
                "title": "Latitude",
                "type": "number",
                "description": "Latitude of the delivery location"
              },
              "longitude": {
                "title": "Longitude",
                "type": "number",
                "description": "Longitude of the delivery location"
              },
              "street": {
                "title": "Street",
                "type": "string",
                "description": "Street name"
              },
              "number": {
                "title": "Number",
                "type": "string",
                "description": "Street number"
              },
              "neighborhood": {
                "title": "Neighborhood",
                "type": "string",
                "description": "Neighborhood name"
              },
              "city": {
                "title": "City",
                "type": "string",
                "description": "City name"
              },
              "province": {
                "title": "State",
                "type": "string",
                "description": "State code (e.g., SP, RJ)",
                "maxLength": 2
              },
              "zipcode": {
                "title": "ZIP Code",
                "type": "string",
                "description": "ZIP/Postal code"
              }
            },
            "default": {
              "latitude": -23.561414,
              "longitude": -46.6558819,
              "street": "Avenida Paulista",
              "number": "1578",
              "neighborhood": "Bela Vista",
              "city": "São Paulo",
              "province": "SP",
              "zipcode": "01310-200"
            }
          },
          "maxProducts": {
            "title": "Max Products",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of products to extract (0 = all)",
            "default": 0
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of pages to fetch (pagination limit)",
            "default": 50
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of retry attempts on failure",
            "default": 3
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Enable Apify proxy. Uses residential proxy if available, otherwise datacenter. Recommended for reliability.",
            "default": true
          },
          "proxyCountry": {
            "title": "Proxy Country",
            "enum": [
              "BR",
              "US",
              "DE",
              "GB",
              "FR"
            ],
            "type": "string",
            "description": "Proxy country code. Use BR for best results with Zé Delivery.",
            "default": "BR"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}