{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Supermarket & Pharmacy Prices — EAN and CEP",
    "description": "Brazilian supermarket and pharmacy prices (Atacadão, Prezunic, Supernosso, Savegnago, Pague Menos and more) by keyword or EAN barcode, with regional price by CEP. Price monitoring, promotions, cesta básica and competitor tracking. Pay only per product delivered.",
    "version": "1.0",
    "x-build-id": "moOPhDy2FlyihWbhO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/joao_crevellari~supermercados-brasil/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-joao_crevellari-supermercados-brasil",
        "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/joao_crevellari~supermercados-brasil/runs": {
      "post": {
        "operationId": "runs-sync-joao_crevellari-supermercados-brasil",
        "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/joao_crevellari~supermercados-brasil/run-sync": {
      "post": {
        "operationId": "run-sync-joao_crevellari-supermercados-brasil",
        "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": {
          "searchTerms": {
            "title": "Termos de busca / Search terms",
            "type": "array",
            "description": "Product names to search, e.g. \"arroz 5kg\", \"café 500g\". Each term is searched in every selected store. / Cada termo é buscado em cada loja.",
            "items": {
              "type": "string"
            }
          },
          "eans": {
            "title": "Códigos de barras (EAN) / Barcodes",
            "type": "array",
            "description": "Compare o mesmo produto entre redes. Só entra o SKU com o mesmo código. / Compare the exact same product across chains.",
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Lojas / Stores",
            "type": "array",
            "description": "Vazio = todos os supermercados. Farmácias só entram se escolhidas. / Empty = all supermarkets.",
            "items": {
              "type": "string",
              "enum": [
                "atacadao",
                "supernosso",
                "prezunic",
                "savegnago",
                "covabra",
                "mambo",
                "supermuffato",
                "giassi",
                "paguemenos",
                "drogariaspacheco"
              ],
              "enumTitles": [
                "Atacadão (supermercado, Nacional)",
                "Supernosso (supermercado, MG)",
                "Prezunic (supermercado, RJ)",
                "Savegnago (supermercado, SP)",
                "Covabra (supermercado, SP)",
                "Mambo (supermercado, SP)",
                "Super Muffato (supermercado, PR)",
                "Giassi (supermercado, SC)",
                "Pague Menos (farmácia, Nacional)",
                "Drogarias Pacheco (farmácia, RJ/SP/MG)"
              ]
            }
          },
          "postalCode": {
            "title": "CEP / Brazilian ZIP code",
            "type": "string",
            "description": "Opcional. Preço da região do CEP quando a loja atende; senão, preço padrão da loja (o campo postalCode vem vazio). / Optional regional prices; falls back to the store default."
          },
          "maxResultsPerSearch": {
            "title": "Máximo por termo e loja / Max per term and store",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum products for each search term in each store. / Máximo de produtos por termo em cada loja.",
            "default": 20
          },
          "onlyAvailable": {
            "title": "Só produtos disponíveis / Only in stock",
            "type": "boolean",
            "description": "Skip products that are out of stock. / Pula produtos sem estoque.",
            "default": true
          },
          "maxResults": {
            "title": "Máximo total / Max total results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after N products in total. You only pay for delivered products (US$ 0.002 each). / Máximo total; você só paga pelos produtos entregues.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}