{
  "openapi": "3.0.1",
  "info": {
    "title": "Houzz Pros & Contractors with State License Verification",
    "description": "Which Houzz pros in a city are licensed contractors? Search Houzz by location and trade: name, phone, address, rating and reviews per pro, plus state license verification (status, number, type, expiry, how it matched) where we hold that state's records. $0.0025 per pro, +$0.006 per license found.",
    "version": "0.0",
    "x-build-id": "y7pXNSePunlUQXIsE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~houzz-pros-contractor-license-verification/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-houzz-pros-contractor-license-verification",
        "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/scrapebench~houzz-pros-contractor-license-verification/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-houzz-pros-contractor-license-verification",
        "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/scrapebench~houzz-pros-contractor-license-verification/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-houzz-pros-contractor-license-verification",
        "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": {
          "locations": {
            "title": "Locations (city, state)",
            "type": "array",
            "description": "US cities to search, each as city and two-letter state, e.g. \"Richmond, VA\" or \"Dallas, TX\". Every location is searched for every trade. Prefer this list over 'location' (single, kept for saved tasks and combined with it).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trades": {
            "title": "Trades",
            "type": "array",
            "description": "Houzz categories to list (default general-contractor): general-contractor, home-builders, design-build (design-build firms), kitchen-and-bath-remodelers, home-remodeling, home-additions-and-extensions, roofing-and-gutter (roofers), electrical-contractors (electricians), plumbing-contractors (plumbers), hvac-contractors (heating and cooling), landscape-contractors. Prefer this list over 'trade' (single, kept for saved tasks).",
            "items": {
              "type": "string",
              "enum": [
                "general-contractor",
                "home-builders",
                "design-build",
                "kitchen-and-bath-remodelers",
                "home-remodeling",
                "home-additions-and-extensions",
                "roofing-and-gutter",
                "electrical-contractors",
                "plumbing-contractors",
                "hvac-contractors",
                "landscape-contractors"
              ],
              "enumTitles": [
                "General contractors",
                "Home builders",
                "Design-build firms",
                "Kitchen & bath remodelers",
                "Home remodeling",
                "Home additions",
                "Roofing & gutters",
                "Electricians",
                "Plumbers",
                "Heating & cooling",
                "Landscape contractors"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum pros per search",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "Cap on pros PER location and trade (up to 1,500). Billed $0.0025 per pro delivered, plus $0.006 for each license found: 1,000 pros = $2.50 plus at most $6.00. Keep it small to test.",
            "default": 30
          },
          "includeLicense": {
            "title": "Check state licenses",
            "type": "boolean",
            "description": "The state-board check: match each pro against the state's contractor license records (status, number, type, expiry, how it matched). +$0.006 only when a license is found; not_found and ambiguous are free. A state we hold no records for gets one free row. The license number the pro lists on Houzz comes on every row, whatever this is set to. Off = no state check.",
            "default": true
          },
          "includeProfile": {
            "title": "Open each profile page",
            "type": "boolean",
            "description": "Off by default and rarely needed: website, services, areas served, job cost and the license number already come with every row. On = also open each pro's Houzz profile page (about 0.75 MB each) for review aspects, the latest review, badges and social links. Houzz often refuses those pages from cloud servers; the rows then keep the search fields and one free row says so.",
            "default": false
          },
          "profileUrls": {
            "title": "Houzz profile URLs",
            "type": "array",
            "description": "Houzz professional profile URLs to check (https://www.houzz.com/professionals/...), each returned like a search result with its license check. Runs beside or instead of locations. Houzz often refuses profile pages from cloud servers; a refused one gives one free row. Prefer this list over 'profileUrl' (single, kept for saved tasks).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (single)",
            "type": "string",
            "description": "One city and state, e.g. \"Richmond, VA\". Prefer 'locations'; this is kept for saved tasks and combined with it."
          },
          "trade": {
            "title": "Trade (single)",
            "type": "string",
            "description": "One Houzz trade, as in 'trades'. Prefer 'trades'; this is kept for saved tasks."
          },
          "profileUrl": {
            "title": "Houzz profile URL (single)",
            "type": "string",
            "description": "One Houzz profile URL. Prefer 'profileUrls'; this is kept for saved tasks."
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Default: the standard Apify datacenter proxy (API: {\"useApifyProxy\": true}). The run retries on a fresh session when Houzz refuses one. If a run returns a free 'blocked' row, retry later or choose another proxy 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}