{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead Finder for SEO & PPC Agencies",
    "description": "📍 Google Maps agency leads from $4 per 1,000. Qualify prospects and get structured sales-pipeline, CRM contact, PPC audit, and website-opportunity views with scores and evidence-based outreach angles.",
    "version": "0.1",
    "x-build-id": "NwgIVC4dmGK9Rlxi1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/feeng~google-maps-agency-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-feeng-google-maps-agency-lead-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/feeng~google-maps-agency-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-feeng-google-maps-agency-lead-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/feeng~google-maps-agency-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-feeng-google-maps-agency-lead-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": {
          "searchTerms": {
            "title": "🔍 Search term(s)",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Business types or services to find. Add multiple terms to build one deduplicated prospect list, for example dentists, roofers, and med spas.",
            "items": {
              "type": "string"
            },
            "default": [
              "dentists"
            ]
          },
          "location": {
            "title": "📍 Location (use one location per run)",
            "type": "string",
            "description": "One city, region, or country used for every search term, for example Austin, TX or London, UK. Leave empty only when every search term already contains a location.",
            "default": "Austin, TX"
          },
          "maxResultsPerSearch": {
            "title": "💯 Number of places to inspect (per search term)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum Google Maps places to inspect for each search term before qualification filters are applied.",
            "default": 25
          },
          "language": {
            "title": "🌍 Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt",
              "pl",
              "cs"
            ],
            "type": "string",
            "description": "Language used for Google Maps results and browser localization.",
            "default": "en"
          },
          "minReviews": {
            "title": "⭐ Minimum review count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep businesses with at least this many Google reviews. Use 0 to keep businesses with missing review counts.",
            "default": 0
          },
          "maxReviews": {
            "title": "Maximum review count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep businesses with no more than this many reviews. Use 1000000 to disable this filter.",
            "default": 1000000
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep businesses at or above this rating. Use 0 to disable the minimum rating filter.",
            "default": 0
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Keep businesses at or below this rating. A value around 4.3 is useful for reputation prospects; use 5 to disable.",
            "default": 5
          },
          "websiteFilter": {
            "title": "🌐 Website availability",
            "enum": [
              "all",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Find all businesses, only businesses with a website, or website-less prospects for web design outreach.",
            "default": "all"
          },
          "categoryIncludes": {
            "title": "Include categories containing",
            "type": "array",
            "description": "Optional case-insensitive words that must appear in the Google Maps category. Leave empty to allow every category.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "categoryExcludes": {
            "title": "Exclude categories containing",
            "type": "array",
            "description": "Optional case-insensitive category words to remove from the result set.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeIrrelevantResults": {
            "title": "Remove obviously unrelated Maps results",
            "type": "boolean",
            "description": "Remove businesses whose category and name do not match the search niche, including unrelated sponsored Maps results. Disable only for intentionally broad discovery searches.",
            "default": true
          },
          "enrichmentMode": {
            "title": "💼 Lead enrichment level",
            "enum": [
              "basic",
              "contacts",
              "websiteAudit",
              "full"
            ],
            "type": "string",
            "description": "Choose one transparent, all-in result tier. Businesses without a website are automatically charged as basic leads because no website enrichment can be performed.",
            "default": "basic"
          },
          "maxWebsitePages": {
            "title": "Pages checked per website",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum home/contact/about pages fetched per business in Contacts, Website audit, or Full mode. Higher values can find more signals but increase run time.",
            "default": 3
          },
          "websiteTimeoutSecs": {
            "title": "Website request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum seconds to wait for each public website request.",
            "default": 15
          },
          "includeAuditScreenshots": {
            "title": "📸 Save website evidence screenshots",
            "type": "boolean",
            "description": "In Website audit or Full mode, save a viewport screenshot for the first businesses as key-value store records. Screenshots are point-in-time evidence and are not embedded in CSV exports.",
            "default": false
          },
          "maxEvidenceScreenshots": {
            "title": "Maximum evidence screenshots",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Safety limit for screenshot records created during one run.",
            "default": 10
          },
          "focusService": {
            "title": "🎯 Service you want to sell",
            "enum": [
              "balanced",
              "ppc",
              "seo",
              "web_design",
              "reputation"
            ],
            "type": "string",
            "description": "Adjust the combined opportunity score and suggested outreach service to your agency offer.",
            "default": "balanced"
          },
          "includeCompetitorBenchmark": {
            "title": "🏁 Compare leads with local competitors",
            "type": "boolean",
            "description": "Compare each business only with deduplicated businesses collected for the same search term and location in this run. No external Actor or paid API is used.",
            "default": true
          },
          "benchmarkCompetitorCount": {
            "title": "Comparison businesses per lead",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of the strongest collected peers included as concrete comparison examples.",
            "default": 3
          },
          "generateSalesReport": {
            "title": "📄 Generate sales audit report",
            "type": "boolean",
            "description": "Create SALES_AUDIT_REPORT.json, a print-ready HTML report, and a PDF report in the run key-value store. Included in the selected result tier.",
            "default": true
          },
          "minimumLeadScore": {
            "title": "Minimum lead gap score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Remove records below this general lead score. Use 0 to keep all qualified businesses.",
            "default": 0
          },
          "minimumPpcOpportunityScore": {
            "title": "Minimum PPC opportunity score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Remove records below this PPC and conversion opportunity score. Use 0 to keep all.",
            "default": 0
          },
          "minimumWebsiteOpportunityScore": {
            "title": "Minimum website opportunity score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Remove records below this web-design, technical SEO, performance, and conversion experience score. Use 0 to keep all.",
            "default": 0
          },
          "minimumAgencyOpportunityScore": {
            "title": "Minimum combined agency score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only export prospects meeting this service-weighted combined score. Use 0 to keep all.",
            "default": 0
          },
          "minimumPriorityTier": {
            "title": "Minimum priority tier",
            "enum": [
              "all",
              "warm",
              "hot"
            ],
            "type": "string",
            "description": "Optionally export only warm or hot prospects after the audit and scoring are complete.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort final lead list by",
            "enum": [
              "agencyOpportunity",
              "leadScore",
              "ppcOpportunityScore",
              "ppcReadinessScore",
              "websiteOpportunityScore",
              "competitorGapScore",
              "reviewCount"
            ],
            "type": "string",
            "description": "Choose which score determines the first rows in the dataset and CSV export.",
            "default": "agencyOpportunity"
          },
          "websiteConcurrency": {
            "title": "⚡ Concurrent website audits",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of business websites enriched in parallel. Lower this if target websites rate-limit requests.",
            "default": 3
          },
          "maxTotalResults": {
            "title": "🛑 Maximum places per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety limit across all search terms. This controls run time and prevents unexpectedly large runs.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings for Google Maps. Residential proxies are recommended for larger runs or regions where direct access is blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}