{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Local Business Lead Trigger Radar",
    "description": "Find local businesses on Google Maps, detect profile changes and sales triggers, and export qualified leads with contact details and explainable opportunity scores.",
    "version": "0.1",
    "x-build-id": "b7q2FeyMDbRS9bzFc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexascout~google-maps-local-business-lead-trigger-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexascout-google-maps-local-business-lead-trigger-radar",
        "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/nexascout~google-maps-local-business-lead-trigger-radar/runs": {
      "post": {
        "operationId": "runs-sync-nexascout-google-maps-local-business-lead-trigger-radar",
        "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/nexascout~google-maps-local-business-lead-trigger-radar/run-sync": {
      "post": {
        "operationId": "run-sync-nexascout-google-maps-local-business-lead-trigger-radar",
        "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 niches or search queries",
            "type": "array",
            "description": "Business types or services to find, such as dentists, roofers, restaurants, or HVAC contractors.",
            "default": [
              "dentists"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Target locations",
            "type": "array",
            "description": "Cities, neighborhoods, ZIP codes, or regions combined with every search query.",
            "default": [
              "Queens, New York, USA"
            ],
            "items": {
              "type": "string"
            }
          },
          "googleMapsUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Optional Google Maps search or place URLs to analyze directly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerQuery": {
            "title": "Maximum businesses per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum place candidates collected from each query-location combination.",
            "default": 5
          },
          "maxTotalPlaces": {
            "title": "Maximum businesses in this run",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cost and runtime limit across every query and direct URL.",
            "default": 5
          },
          "minimumLeadScore": {
            "title": "Qualified-lead score threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Businesses at or above this transparent 0–100 score are marked as qualified leads. All analyzed businesses remain visible and billable.",
            "default": 25
          },
          "enrichWebsites": {
            "title": "Find public email and social profiles",
            "type": "boolean",
            "description": "Visit public business websites and extract visible email addresses and social links.",
            "default": true
          },
          "maxWebsitePages": {
            "title": "Website pages per business",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum public website pages checked per business, including the homepage.",
            "default": 2
          },
          "collectRecentReviews": {
            "title": "Analyze recent reviews",
            "type": "boolean",
            "description": "Sample recent reviews to detect negative feedback and missing owner responses. This uses more browser time.",
            "default": false
          },
          "maxRecentReviews": {
            "title": "Recent reviews per business",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum recent reviews sampled from each business.",
            "default": 0
          },
          "compareWithPreviousRun": {
            "title": "Detect changes since the previous run",
            "type": "boolean",
            "description": "Save a private baseline and report new businesses, rating drops, review spikes, contact changes, closures, and reopenings on later runs.",
            "default": true
          },
          "historyKey": {
            "title": "History key",
            "maxLength": 60,
            "type": "string",
            "description": "Optional stable key shared by scheduled runs. Leave empty to derive it automatically from the searches and locations.",
            "default": ""
          },
          "resetBaseline": {
            "title": "Reset the saved baseline",
            "type": "boolean",
            "description": "Ignore prior history and replace it with this run after collection.",
            "default": false
          },
          "ratingDropThreshold": {
            "title": "Rating-drop trigger",
            "minimum": 0.1,
            "maximum": 2,
            "type": "number",
            "description": "Minimum decrease in Google rating that creates a rating-drop trigger.",
            "default": 0.2
          },
          "reviewGrowthThreshold": {
            "title": "Review-growth trigger",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Minimum number of new reviews between runs that creates a review-activity trigger.",
            "default": 5
          },
          "negativeReviewSpikeThreshold": {
            "title": "Negative-review spike trigger",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum increase in sampled negative reviews between runs.",
            "default": 1
          },
          "lowReviewCountThreshold": {
            "title": "Low review-count opportunity",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Businesses below this known review count receive a review-growth opportunity signal.",
            "default": 20
          },
          "language": {
            "title": "Google Maps language",
            "minLength": 2,
            "maxLength": 5,
            "type": "string",
            "description": "Language code used for consistent labels and parsing.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country hint",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter country hint used by Google Maps.",
            "default": "US"
          },
          "maxConcurrency": {
            "title": "Maximum browser concurrency",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Keep this at 1 for reliable, memory-safe, and cost-controlled Google Maps collection.",
            "default": 1
          },
          "navigationTimeoutSecs": {
            "title": "Page timeout",
            "minimum": 15,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum duration of an individual Google Maps navigation.",
            "default": 45
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is recommended. Residential groups are not selected by default, which keeps the initial cost predictable.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}