{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Industrial Scraper",
    "description": "Scrape Global Industrial (globalindustrial.com) - US industrial & B2B supplies marketplace with 1M+ products. Search by keyword, browse by category, fetch by product ID or URL - prices, brands, availability, ratings, images, specs.",
    "version": "1.0",
    "x-build-id": "R2EBfxdY4VNcG4pjg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~globalindustrial-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-globalindustrial-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~globalindustrial-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-globalindustrial-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~globalindustrial-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-globalindustrial-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",
              "byCategory",
              "byProductIds",
              "byUrls"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword, e.g. `workbench`, `pallet jack`, `3m respirator`. (mode=search)",
            "default": "adjustable workbench"
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "best_selling"
            ],
            "type": "string",
            "description": "Search result ordering. (mode=search)",
            "default": "relevance"
          },
          "categoryPreset": {
            "title": "Category preset",
            "enum": [
              "Building Supplies",
              "Carts & Trucks",
              "Fasteners & Hardware",
              "Foodservice & Retail",
              "Furniture & Decor",
              "HVAC & Fans",
              "Janitorial & Facility Maintenance",
              "Lighting & Electrical",
              "Machining",
              "Material Handling",
              "Medical & Laboratory",
              "Motors & Power Transmission",
              "Office & School Supplies",
              "Packaging & Shipping",
              "Plumbing & Pumps",
              "Raw Materials",
              "Safety & Security",
              "Storage & Shelving",
              "Tools & Instruments",
              "Vehicle Maintenance",
              "Workbenches & Shop Desks",
              "Abrasives",
              "Air Compressors & Accessories",
              "Air Tools & Accessories",
              "Hand Tools",
              "Hose & Cord Reels",
              "Measurement & Layout Tools",
              "Outdoor Tools & Power Equipment",
              "Pneumatic Hoses & Connectors",
              "Power Tools",
              "Scales",
              "Sockets & Bits",
              "Testing & Inspection Instruments",
              "Tool Storage",
              "Welding",
              "Dollies",
              "Forklifts & Attachments",
              "Pallet Trucks & Jacks",
              "Electrical Boxes",
              "Batteries & Chargers",
              "HVAC Controls",
              "Wire Shelving",
              "Food Storage",
              "Foam & Foam Strips",
              "Adhesives, Sealants & Tape"
            ],
            "type": "string",
            "description": "Popular department / category shortcuts. Overridden by `categoryPath` if both are set. (mode=byCategory)"
          },
          "categoryPath": {
            "title": "Category path",
            "type": "string",
            "description": "Any category URL or path, e.g. `/c/tools/power_tools`, `/c/tools/abrasives/sanding_discs`, `https://www.globalindustrial.com/t/hvac`. Takes precedence over `categoryPreset`. (mode=byCategory)"
          },
          "includeSubcategories": {
            "title": "Include subcategories",
            "type": "boolean",
            "description": "Emit a `category` record with the subcategory tree when browsing a category. (mode=byCategory, byUrls)",
            "default": false
          },
          "productIds": {
            "title": "Product item keys",
            "type": "array",
            "description": "Global Industrial item keys (numeric IDs), e.g. `33082504`. A `https://www.globalindustrial.com/p/<slug>-<key>` URL also works — the trailing key is extracted. (mode=byProductIds)",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "URLs",
            "type": "array",
            "description": "Product (`/p/...`), category (`/c/...`, `/t/...`) or search (`/searchResult?q=...`) URLs. (mode=byUrls)",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "Full URL, e.g. https://www.globalindustrial.com/p/variable-speed-control-switch-with-6-ft-plug"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Drop products cheaper than this (uses the listing price)."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Drop products more expensive than this (uses the listing price)."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only products with at least this average rating."
          },
          "brand": {
            "title": "Brand filter",
            "type": "string",
            "description": "Only products whose brand contains this text, e.g. `3M`, `Metro`, `Vestil`."
          },
          "containsKeyword": {
            "title": "Keyword in title",
            "type": "string",
            "description": "Only products whose title contains this text (case-insensitive)."
          },
          "inStockOnly": {
            "title": "In-stock only",
            "type": "boolean",
            "description": "Only products whose availability status is InStock.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on product records emitted per run (1–1000).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The site only serves US IPs (CloudFront geo-restriction). Apify AUTO proxy with country `US` is prefilled and free on every plan.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}