{
  "openapi": "3.0.1",
  "info": {
    "title": "VTEX Scraper — Prices, EAN & Stock from Any VTEX Store",
    "description": "Scrape products from any VTEX store (Plaza Vea, Éxito, Farmacity, Pague Menos...): EAN, brand, category, price, list price, discount, installments, stock and seller. Keyword, category, full-catalog, URL and barcode modes. From US$2.00 per 1,000 products.",
    "version": "0.1",
    "x-build-id": "6j7vPfw2h84iBJnUs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~vtex-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-vtex-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/fabrikit~vtex-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-vtex-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/fabrikit~vtex-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-vtex-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": {
          "domains": {
            "title": "Store domains",
            "type": "array",
            "description": "One or more VTEX store domains, e.g. `www.plazavea.com.pe`, `www.jumbocolombia.com`, `www.farmacity.com`, `www.paguemenos.com.br`. Every store is checked first (is it VTEX? which API answers?) and skipped with a clear message if it can't be used. Not needed in `urls` mode (the store is taken from each URL).",
            "default": [
              "www.plazavea.com.pe"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "category",
              "catalog",
              "urls",
              "ean",
              "check"
            ],
            "type": "string",
            "description": "`search`: keyword search. `category`: every product in the categories below. `catalog`: the whole store, walking its category tree. `urls`: specific product pages. `ean`: look up barcodes (great for comparing one product across stores). `check`: only test whether each domain is a usable VTEX store (no products, nothing charged).",
            "default": "search"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords for `search` mode, in the store's language (`leche` for Spanish-speaking stores, `leite` for Brazilian ones). Each term runs on every store. Up to 2,550 results per term are reachable directly; bigger result sets are split by price range automatically.",
            "default": [
              "leche"
            ],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "For `category` mode. Any of: a category URL (`https://www.plazavea.com.pe/lacteos-y-huevos/leche`), a path (`/lacteos-y-huevos/leche` or `Lácteos y Huevos > Leche`), a category id (`846`) or an id path (`/845/846/`). Paths are matched against each store's own category tree, so the same path can run on several stores of one chain.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "For `urls` mode. Product pages from any VTEX store, e.g. `https://www.plazavea.com.pe/leche-gloria-entera-uhtcon-vitamina-a-cy-d-caja-1l/p`. Add `?skuId=123` to get only that variant.",
            "items": {
              "type": "string"
            }
          },
          "eans": {
            "title": "EAN / GTIN barcodes",
            "type": "array",
            "description": "For `ean` mode. Barcodes to look up on every store in `domains`, e.g. `7751271019545`. Only the matching SKU is returned.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products (total)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows across all stores. One row = one SKU (or one product if \"One row per SKU\" is off).",
            "default": 50
          },
          "maxItemsPerStore": {
            "title": "Max products per store",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cap per store, so one big store doesn't use the whole budget in multi-store runs. `0` = no per-store cap.",
            "default": 0
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "top_sales",
              "newest",
              "best_discount",
              "name_asc"
            ],
            "type": "string",
            "description": "Order of search and category results (ignored once a large category is split by price range).",
            "default": "relevance"
          },
          "oneRowPerSku": {
            "title": "One row per SKU",
            "type": "boolean",
            "description": "On: every variant (size, color, pack) is its own row with its own EAN, price and stock. Off: one row per product (its first available SKU).",
            "default": true
          },
          "onlyAvailable": {
            "title": "Only in-stock products",
            "type": "boolean",
            "description": "Drop SKUs that are out of stock or have no active offer.",
            "default": false
          },
          "includeDetails": {
            "title": "Include specifications and description",
            "type": "boolean",
            "description": "Add the product's specification table (as an object) and its plain-text description. No extra requests, but rows get larger.",
            "default": false
          },
          "salesChannel": {
            "title": "Sales channel (advanced)",
            "type": "string",
            "description": "VTEX trade policy id (`sc` parameter). Leave empty to get the prices the public website shows."
          },
          "autoResidentialProxy": {
            "title": "Auto-switch to residential proxy when blocked",
            "type": "boolean",
            "description": "If a store answers 403/anti-bot to the default IPs, retry that store through Apify RESIDENTIAL proxy in the store's country.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Most VTEX stores answer plain requests, so no proxy is used by default. The actor switches a store to residential proxy by itself if it gets blocked (see the option above).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}