{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps AI Leads | Score + Outreach",
    "description": "Google Maps AI lead generator: scrape local businesses, score HOT/WARM/COLD by ICP, get Claude outreach. Multi-city. Phones, websites, ratings. AI off $3/1k · AI on $5/1k. Sales-ready B2B leads—not a raw Maps dump.",
    "version": "0.1",
    "x-build-id": "zalPRlAvM0Al5ycLb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rohit_rathi~scored-local-leads-maps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rohit_rathi-scored-local-leads-maps",
        "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/rohit_rathi~scored-local-leads-maps/runs": {
      "post": {
        "operationId": "runs-sync-rohit_rathi-scored-local-leads-maps",
        "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/rohit_rathi~scored-local-leads-maps/run-sync": {
      "post": {
        "operationId": "run-sync-rohit_rathi-scored-local-leads-maps",
        "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": [
          "searchQueries",
          "locations"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Business categories or keywords to search (e.g. dentists, coffee shops).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, addresses, or areas. Multiple locations run in a single Actor run.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerLocation": {
            "title": "Max places per location",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap of places accepted per location (after dedup).",
            "default": 50
          },
          "maxPlacesTotal": {
            "title": "Max places total",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard cap across the whole run.",
            "default": 100
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google Maps UI language code (hl parameter).",
            "default": "en"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop places below this star rating (0 = no filter).",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Drop places with fewer reviews.",
            "default": 0
          },
          "mustHavePhone": {
            "title": "Must have phone",
            "type": "boolean",
            "description": "Only keep places with a phone number.",
            "default": false
          },
          "websiteFilter": {
            "title": "Website filter",
            "enum": [
              "any",
              "has",
              "missing"
            ],
            "type": "string",
            "description": "Filter by website presence.",
            "default": "any"
          },
          "excludeClosed": {
            "title": "Exclude permanently closed",
            "type": "boolean",
            "description": "Exclude permanently closed",
            "default": true
          },
          "enableLeadIntelligence": {
            "title": "Enable lead intelligence",
            "type": "boolean",
            "description": "Compute scores and (if gateway configured) AI reason + outreach. Uses owner LLM gateway secrets.",
            "default": true
          },
          "onlyOutputMinScore": {
            "title": "Only output min score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "When intelligence is on, drop leads below this score (0 = keep all scored).",
            "default": 0
          },
          "icpPreset": {
            "title": "Who are you selling to? (ranking mode)",
            "enum": [
              "sales_general",
              "agency_no_website",
              "franchise_expansion"
            ],
            "type": "string",
            "description": "Two-layer score: qualityScore (universal) + icpFitScore/leadScore (this mode). Default = any product (phone + reviews). Use web-agency mode only if you sell websites. Expansion = market density by review volume.",
            "default": "sales_general"
          },
          "customIcpNotes": {
            "title": "What do you sell? (for AI outreach)",
            "type": "string",
            "description": "Describe your product/offer. Shapes outreach + leadReason (e.g. commercial cleaning for restaurants, POS for cafes). Does not replace ranking mode above.",
            "default": ""
          },
          "enableContactEnrichment": {
            "title": "Enrich contacts from website",
            "type": "boolean",
            "description": "Opt-in: crawl business websites for public emails and social links.",
            "default": false
          },
          "enableMarketReport": {
            "title": "Market intelligence report",
            "type": "boolean",
            "description": "Opt-in: end-of-run market summary (uses LLM when gateway configured).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Browser concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Parallel browser pages. Higher = faster (uses more memory/CU). Default 5.",
            "default": 5
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Use Apify Proxy",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Apify proxy groups (e.g. RESIDENTIAL). Empty = default.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "skipTileExpansion": {
            "title": "Skip geo tile expansion",
            "type": "boolean",
            "description": "Faster. Only expand search tiles when disabled and results plateau below max.",
            "default": true
          },
          "aiMode": {
            "title": "AI outreach mode (pricing)",
            "enum": [
              "hot",
              "all",
              "off"
            ],
            "type": "string",
            "description": "Two main prices: off = $3/1k scored leads only; all = $5/1k with Sol outreach on every lead; hot = $3–5/1k (AI charged only on HOT leads that get outreach).",
            "default": "hot"
          },
          "llmMinScore": {
            "title": "Min score for LLM",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Skip LLM below this score (saves time/cost). Used with aiMode hot/all.",
            "default": 60
          },
          "extractMode": {
            "title": "Extract mode",
            "enum": [
              "list",
              "hybrid",
              "detail"
            ],
            "type": "string",
            "description": "list=search cards only (fastest). hybrid=list + detail when phone/site missing. detail=open every place page (slowest, richest).",
            "default": "list"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}