{
  "openapi": "3.0.1",
  "info": {
    "title": "Ferguson Scraper | Products, Prices and Specs",
    "description": "Ferguson scraper for ferguson.com plumbing, HVAC and waterworks products: turn Item #s, part numbers, UPCs, links, keywords or brands into rows with price, MPN, UPC, UNSPSC, brand, category, specs, packaging and PDF spec sheets. 10 items in 3 seconds, 28 fields each, no Ferguson account needed.",
    "version": "1.0",
    "x-build-id": "J10ES1mbZ5Brhd0RE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~ferguson-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-ferguson-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/silentflow~ferguson-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-ferguson-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/silentflow~ferguson-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-ferguson-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": {
          "itemIds": {
            "title": "🆔 Ferguson Item #s",
            "type": "array",
            "description": "The Item # shown on each Ferguson product page (the number at the end of the link, e.g. <code>217</code> in <code>/product/.../217.html</code>). Paste a few or thousands: every Item # returns its row, whatever the max items setting. <code>Item #217</code> and full product links are read too; anything that is not a number is looked up as a part number.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Ferguson links",
            "type": "array",
            "description": "Links from ferguson.com: a product page, a category page (<code>https://www.ferguson.com/category/valves/ball-valves/</code>), a brand page (<code>https://www.ferguson.com/category/kohler/</code>) or a search page (<code>/search?q=ball+valve</code>). A category link covers every subcategory under it.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Search Ferguson's catalog like the search box, e.g. <code>tankless water heater</code>, <code>ball valve</code>. Returns up to <b>max items</b> products per keyword, most relevant first.",
            "items": {
              "type": "string"
            }
          },
          "partNumbers": {
            "title": "🔩 Manufacturer part numbers or UPCs",
            "type": "array",
            "description": "Match your own references to Ferguson items: a manufacturer part number (<code>31100</code>, <code>K-31588-0</code>) or a 12 to 14 digit UPC/GTIN (<code>095691311009</code>). Each value returns the Ferguson items that carry it, up to <b>max items</b> per value. Values with no Ferguson item are listed in the log.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max items per keyword, category, brand or part number",
            "minimum": 1,
            "type": "integer",
            "description": "Caps each keyword, category link, brand and part number. A list of Item #s is never cut. Cost and run time grow with this number: 100 items of a category take about a minute, while a list of 100 Item #s takes about 15 seconds.",
            "default": 100
          },
          "brands": {
            "title": "🏷️ Brands",
            "type": "array",
            "description": "Brand names as you know them, e.g. <code>KOHLER</code>, <code>Mr. Steam</code>, <code>RIDGID</code>. <b>Alone</b>, each brand lists its own Ferguson catalog (up to max items). <b>With keywords, category links or part numbers</b>, only items of these brands are kept (a bare part number such as <code>31090</code> can belong to several brands).",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "↕️ Sort",
            "enum": [
              "relevance",
              "mostReviewed",
              "highestRated"
            ],
            "type": "string",
            "description": "Order of keyword, category and brand results before the cap applies. <b>Most reviewed</b> brings the products contractors buy most often first.",
            "default": "relevance"
          },
          "includeVariants": {
            "title": "🎨 Every finish and size",
            "type": "boolean",
            "description": "Add, after each item, the other items of its product family: every size of a wrench, every finish of a faucet. Each one is its own row with its own Item #, price and UPC. The <code>variantIds</code> column lists them either way.",
            "default": false
          },
          "debugMode": {
            "title": "🐞 Debug mode",
            "type": "boolean",
            "description": "Write detailed logs. Leave off for normal runs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}