{
  "openapi": "3.0.1",
  "info": {
    "title": "HVAC & Plumbing Leads US/CA/UK/AU + ServiceTitan/Jobber",
    "description": "Home services leads from Google Maps in the US, Canada, UK and Australia: HVAC, plumbing, electrical, roofing and pest contractors with phone, website and their field-service software (ServiceTitan, Housecall Pro, Jobber...), financing, agency, roll-up owner, dealer badges and licences. No cap.",
    "version": "0.1",
    "x-build-id": "cWckoTw9fMgo8ituE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~home-services-leads-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-home-services-leads-finder",
        "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/yugenox~home-services-leads-finder/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-home-services-leads-finder",
        "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/yugenox~home-services-leads-finder/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-home-services-leads-finder",
        "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": {
          "trades": {
            "title": "Trades",
            "type": "array",
            "description": "Contractor types to find on Google Maps. Each preset searches its usual terms and keeps only places in that trade's Maps categories.",
            "items": {
              "type": "string",
              "enum": [
                "hvac",
                "plumbing",
                "electrical",
                "roofing",
                "pest",
                "garage-door",
                "cleaning",
                "landscaping"
              ],
              "enumTitles": [
                "HVAC",
                "Plumbing",
                "Electrical",
                "Roofing",
                "Pest control",
                "Garage door",
                "House cleaning",
                "Landscaping / lawn care"
              ]
            }
          },
          "searchTerms": {
            "title": "Extra search terms",
            "type": "array",
            "description": "Any other Google Maps searches (e.g. \"water heater installation\", \"solar installer\"). These are not limited to a trade's categories.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, ZIP / postal codes, counties or states, one per line (\"Austin, TX\", \"75201\", \"Calgary, AB\", \"Leeds\", \"Brisbane QLD\"). A city is searched across its whole area, nearest tiles first.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "CA",
              "GB",
              "AU"
            ],
            "type": "string",
            "description": "Country of the locations.",
            "default": "US"
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional: search a square of this half-width around each location's centre instead of the city's boundary. 0 = the location's own area.",
            "default": 0
          },
          "domains": {
            "title": "Your own domains (domain-list mode)",
            "type": "array",
            "description": "Instead of Google Maps: check these contractor websites (one domain or URL per line). Re-running the same list reports software switches since the last run. Answered domains only are charged.",
            "items": {
              "type": "string"
            }
          },
          "maxLeads": {
            "title": "Max leads",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many saved leads (or domains). No other cap.",
            "default": 100
          },
          "independentOnly": {
            "title": "Independents only",
            "type": "boolean",
            "description": "Keep only contractors whose website shows no roll-up owner and no franchise brand.",
            "default": false
          },
          "excludeFranchises": {
            "title": "Exclude franchises",
            "type": "boolean",
            "description": "Drop franchise brands (Mr. Rooter, One Hour, Benjamin Franklin ...) and sites saying \"independently owned and operated\".",
            "default": false
          },
          "noSoftwareOnly": {
            "title": "No field-service software found (tech gap)",
            "type": "boolean",
            "description": "Keep only contractors whose website was read and shows none of the field-service platforms we detect.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only leads with a website",
            "type": "boolean",
            "description": "Drop Maps listings without a website.",
            "default": false
          },
          "minReviews": {
            "title": "Minimum Google reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Drop places with fewer reviews. 0 = keep all.",
            "default": 0
          },
          "strictCategory": {
            "title": "Strict trade categories",
            "type": "boolean",
            "description": "Keep only places whose Google Maps category matches the trade (recommended). Off = keep everything the search returns.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new contractors",
            "type": "boolean",
            "description": "For scheduled runs: return only contractors not saved by earlier runs with the same search (or the same monitor name).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for the onlyNew memory / domain baseline, so several schedules can share or separate it."
          },
          "checkWebsites": {
            "title": "Check websites",
            "type": "boolean",
            "description": "Read each contractor's website for software, financing, owner, badges and licences. Off = Maps data only (faster, same price).",
            "default": true
          },
          "maxPagesPerSite": {
            "title": "Pages per website",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Homepage plus up to 2 more pages (financing, contact / about, the location page). Same price.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (default, included in every plan).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}