{
  "openapi": "3.0.1",
  "info": {
    "title": "Zoro Scraper",
    "description": "Scrape wholesale retail products from Zoro.com (Grainger's brand) - search by keyword, browse 27 categories or fetch by product URL. Prices, list prices, brands, MPNs, ratings, specs and images.",
    "version": "1.0",
    "x-build-id": "toZoa4ENfiD2pNQye"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~zoro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-zoro-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/crawlerbros~zoro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-zoro-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/crawlerbros~zoro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-zoro-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "browseByCategory",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword query, e.g. `drill`, `paper towels`, `safety glasses` (mode=search).",
            "default": "drill"
          },
          "category": {
            "title": "Category (mode=browseByCategory)",
            "enum": [
              "tools-machining/c/z2",
              "shipping-packaging-office-supplies/c/z9",
              "plumbing/c/z3",
              "safety/c/z1",
              "abrasives-polishers/c/1",
              "adhesives-tapes/c/4",
              "electrical-supplies/c/23",
              "electronics/c/15050",
              "fasteners/c/9",
              "food-service-restaurant-supplies/c/67",
              "furniture-linens-decor/c/530",
              "grounds-outdoor/c/21",
              "hardware-building-materials/c/27",
              "heating-cooling/c/30",
              "janitorial-cleaning-supplies/c/25",
              "lab-equipment-supplies/c/z50",
              "lighting/c/22",
              "material-handling/c/z4",
              "medical-personal-care/c/76",
              "paint-coatings-supplies/c/26",
              "power-transmission/c/z8",
              "pumps/c/39",
              "raw-materials/c/37",
              "storage-workspace/c/15",
              "test-instruments-gauges/c/24",
              "vehicle-maintenance/c/z10",
              "welding-soldering-brazing/c/6"
            ],
            "type": "string",
            "description": "Top-level category to browse. All subcategories are included via Zoro's shop-all listing."
          },
          "categoryUrl": {
            "title": "Category URL override (mode=browseByCategory)",
            "type": "string",
            "description": "Any zoro.com category URL, e.g. `https://www.zoro.com/cordless-drills/c/5861/`. Takes precedence over `category` and lets you browse subcategories directly."
          },
          "startUrls": {
            "title": "Product URLs (mode=byUrl)",
            "type": "array",
            "description": "One or more zoro.com product URLs to fetch, e.g. `https://www.zoro.com/.../i/G805612238/`.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "brand": {
            "title": "Brand filter",
            "enum": [
              "3M",
              "Milwaukee Tool",
              "Dewalt",
              "Bosch",
              "Makita",
              "Klein Tools",
              "Stanley",
              "Black & Decker",
              "Craftsman",
              "Ryobi",
              "SK Hand Tool",
              "Gorilla",
              "Honeywell",
              "Lincoln Electric",
              "Porter-Cable",
              "RIDGID",
              "Wera",
              "Wiha",
              "Diablo",
              "Lenox",
              "Irwin",
              "TEKTON",
              "Knipex",
              "Proto",
              "Greenlee",
              "Moen",
              "Delta Faucet",
              "American Standard",
              "Charlotte Pipe",
              "SharkBite"
            ],
            "type": "string",
            "description": "Only emit products from this brand (case-insensitive). Products without a brand name pass through."
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop products priced below this. Products without a listed price pass through."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop products priced above this."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only emit products rated at least this (0–5, one decimal). Products without a rating pass through."
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Only emit products whose title (or description) contains this text, case-insensitive."
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "For search/category modes: also fetch each product's detail page for description, specs, UPC, availability and category path. Increases runtime and request count.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Zoro works without a proxy on most networks; if set, Apify proxy is used automatically as a fallback when requests are rate-limited or blocked. Leave the group unset to use your account's first available proxy group (e.g. RESIDENTIAL), or pick a specific group.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}