{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Leads - Outscraper Alternative, Websites Checked",
    "description": "Google Maps scraper for leads, an Outscraper alternative that checks each business website: missing, dead, parked, no HTTPS, not mobile-ready, slow. Scored with reasons; optional emails and socials. $1.50 per 1,000 places (the most used Google Maps scraper charges $4), $2 per 1,000 sites checked.",
    "version": "0.1",
    "x-build-id": "YIw5mMeQjXsSJbDPY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~google-maps-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-google-maps-leads",
        "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/locaihost~google-maps-leads/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-google-maps-leads",
        "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/locaihost~google-maps-leads/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-google-maps-leads",
        "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": [
          "searchTerms",
          "locations"
        ],
        "properties": {
          "searchTerms": {
            "title": "What to search for",
            "type": "array",
            "description": "Business types to search on Google Maps, e.g. \"dentist\", \"plumber\", \"law firm\". Every term is searched in every location below.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Where to search",
            "type": "array",
            "description": "Towns, cities or areas, e.g. \"Austin, TX\", \"Leeds, UK\". Each is looked up on Google Maps first.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerQuery": {
            "title": "Max businesses per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Google stops at about 120 results for one search in one place. To cover a big city, split it into several smaller locations.",
            "default": 10
          },
          "checkWebsites": {
            "title": "Check each business's website",
            "type": "boolean",
            "description": "Fetch each website and report HTTPS, mobile-readiness, speed, CMS, footer copyright year, SSL expiry, DMARC and email provider. This is what produces the lead score. Businesses with no website are never charged a check.",
            "default": true
          },
          "websiteCheckSample": {
            "title": "Price first: check only a random sample of websites",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "0 (the default) checks every website. Set 10–500 to check only that many websites, picked at random (the same search always picks the same ones). The run then returns and charges ONLY those businesses, one place plus one website check each, so its price is known before it starts. It reports how many of them are hits, the estimated hits in the whole list and what the full run would cost. Businesses with no website or only a social page are counted, not returned. Needs website checks on; onlyNew is ignored.",
            "default": 0
          },
          "sampleSeed": {
            "title": "Sample seed (optional)",
            "type": "string",
            "description": "Leave empty and the same search always picks the same random sample. Enter any word or number to draw a different random sample of the same search; the same seed always gives the same sample again."
          },
          "includeContacts": {
            "title": "Add contact details from each business's own website",
            "type": "boolean",
            "description": "Off by default. Needs website checks on. Reads the homepage the check already fetched plus at most 2 more pages on the same site (the contact page, then the about page, found from its links; robots.txt is respected) and adds emails (shared business mailboxes such as info@ or bookings@ only; addresses that look like a person's are dropped), Facebook, Instagram, LinkedIn company, X, TikTok and YouTube links, and the contact page URL. Charged as one contact-details event per business, only when its website gives at least one email or social profile.",
            "default": false
          },
          "leadProfile": {
            "title": "Score leads for",
            "enum": [
              "web-design",
              "seo",
              "email-security",
              "local-marketing"
            ],
            "type": "string",
            "description": "Which problems count as a reason to call. The same business scores differently for different sellers: a missing DMARC record matters to an IT provider and not to a web designer.",
            "default": "web-design"
          },
          "websiteFilter": {
            "title": "Only return businesses whose website is…",
            "enum": [
              "any",
              "none",
              "has",
              "problem"
            ],
            "type": "string",
            "description": "\"A problem\" covers no website, social-only, unreachable, parked, broken or no HTTPS — the ones worth calling.",
            "default": "any"
          },
          "skipClosed": {
            "title": "Skip permanently closed businesses",
            "type": "boolean",
            "description": "Closed businesses are never a lead.",
            "default": true
          },
          "onlyNew": {
            "title": "Only businesses new since the last run",
            "type": "boolean",
            "description": "Remembers what this saved task already returned, so a daily or weekly schedule becomes a new-business radar. Off by default so the first run returns everything.",
            "default": false
          },
          "language": {
            "title": "Results language",
            "type": "string",
            "description": "Two-letter language code used for Google's result text.",
            "default": "en"
          },
          "countryCode": {
            "title": "Search from country",
            "type": "string",
            "description": "Two-letter country code Google searches from, e.g. \"us\", \"gb\", \"sg\". Affects which results are shown.",
            "default": "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}