{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead & Competitor Intelligence",
    "description": "Discover local businesses from Google Maps and turn them into sales-ready leads with contact enrichment, opportunity scoring, reputation signals, competitor summaries, and change monitoring.",
    "version": "0.1",
    "x-build-id": "qMb7KYzZcC3VIzuMr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahunter_labs~google-maps-lead-competitor-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahunter_labs-google-maps-lead-competitor-intelligence",
        "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/datahunter_labs~google-maps-lead-competitor-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-datahunter_labs-google-maps-lead-competitor-intelligence",
        "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/datahunter_labs~google-maps-lead-competitor-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-datahunter_labs-google-maps-lead-competitor-intelligence",
        "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": {
          "searchQueries": {
            "title": "Business searches",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "Search phrases such as 'dentists in Berlin' or 'plumbers in Manchester'. Each query is processed independently.",
            "items": {
              "type": "string"
            },
            "default": [
              "dentists in Athens Greece"
            ]
          },
          "startUrls": {
            "title": "Google Maps URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Optional public Google Maps search or place URLs. Use these when you already have exact Maps URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPlacesPerQuery": {
            "title": "Maximum places per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of unique business places returned for each search query or search URL.",
            "default": 25
          },
          "language": {
            "title": "Google Maps language",
            "type": "string",
            "description": "BCP-47 style language code used for the Google Maps interface, for example en, de, fr, es, it, or el.",
            "default": "en"
          },
          "enrichWebsites": {
            "title": "Enrich business websites",
            "type": "boolean",
            "description": "Visit each public business website and a small number of contact/about pages to extract displayed emails, phones, and social profiles.",
            "default": true
          },
          "maxWebsitePages": {
            "title": "Maximum website pages per lead",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Maximum number of public pages visited on each business website when website enrichment is enabled.",
            "default": 3
          },
          "minimumRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Optional whole-star minimum rating filter from 0 to 5. Set to 0 to disable the filter.",
            "default": 0
          },
          "minimumReviewCount": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Minimum Google Maps review count required for a returned business. Set to 0 to disable the filter.",
            "default": 0
          },
          "requireWebsite": {
            "title": "Require a website",
            "type": "boolean",
            "description": "Return only businesses that expose a public website on Google Maps.",
            "default": false
          },
          "requirePhone": {
            "title": "Require a phone number",
            "type": "boolean",
            "description": "Return only businesses that expose a public phone number on Google Maps.",
            "default": false
          },
          "excludeClosed": {
            "title": "Exclude closed businesses",
            "type": "boolean",
            "description": "Exclude businesses that Google Maps marks as permanently or temporarily closed.",
            "default": true
          },
          "monitorChanges": {
            "title": "Monitor business changes",
            "type": "boolean",
            "description": "Persist business state across runs and detect new businesses or changes to rating, review count, phone, website, address, and closure status.",
            "default": false
          },
          "onlyChanges": {
            "title": "Return only changes after baseline",
            "type": "boolean",
            "description": "When monitoring is enabled, return all businesses on the first baseline run and only new or changed businesses on later runs.",
            "default": false
          },
          "forceRefresh": {
            "title": "Force fresh Google Maps fetch",
            "type": "boolean",
            "description": "Ignore cached query results and fetch fresh Google Maps data for this run.",
            "default": false
          },
          "cacheTtlMinutes": {
            "title": "Cache lifetime in minutes",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "How long successful query results may be reused before Google Maps is fetched again.",
            "default": 360
          },
          "maxConcurrency": {
            "title": "Maximum browser concurrency",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Maximum number of Google Maps place pages processed concurrently. Use 1 for lowest blocking/memory risk; 2 can improve speed when enough memory is allocated.",
            "default": 1
          },
          "pageTimeoutSeconds": {
            "title": "Page timeout",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Maximum seconds allowed for a Google Maps page navigation before it is treated as a recoverable timeout.",
            "default": 30
          },
          "maxRequestsPerRun": {
            "title": "Maximum requests per run",
            "minimum": 2,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard safety budget covering Google Maps navigations and optional website-enrichment HTTP requests.",
            "default": 250
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Maximum retry attempts after a timeout, transient source error, or detected blocking signal.",
            "default": 2
          },
          "retryBackoffSeconds": {
            "title": "Retry backoff seconds",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Base number of seconds used for bounded exponential retry backoff.",
            "default": 2
          },
          "maxProxyRotations": {
            "title": "Maximum proxy rotations",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of proxy-session rotations used only after a direct request is blocked or repeatedly fails.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify or custom proxy configuration. Direct browsing is attempted first; configured proxies are used only after blocking or repeated transient failures.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}