{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps B2B Local Lead, Website Ad-Pixel Gap & Reputation A",
    "description": "Extract verified Google Maps B2B local business leads, public HTML emails, 3-state Meta/Google/TikTok ad-pixel gaps vs GTM and Consent Mode v2, 21 booking/call-tracking widgets, and deterministic 0-100 Agency Opportunity Scores with outreach pitch hooks.",
    "version": "1.0",
    "x-build-id": "Q9WfOVWRWwTim8pU4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voxatools~google-maps-b2b-local-lead-tech-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voxatools-google-maps-b2b-local-lead-tech-auditor",
        "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/voxatools~google-maps-b2b-local-lead-tech-auditor/runs": {
      "post": {
        "operationId": "runs-sync-voxatools-google-maps-b2b-local-lead-tech-auditor",
        "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/voxatools~google-maps-b2b-local-lead-tech-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-voxatools-google-maps-b2b-local-lead-tech-auditor",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search Queries or Local Niches + Cities",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "List of Google Maps local business search queries (2 to 500 characters per query; normalized via NFC + whitespace collapse + lowercase and hashed in full without silent truncation; out-of-bounds queries are rejected pre-flight as INVALID_QUERY_LENGTH_REJECTED; e.g., \"dentists in Austin TX\", \"HVAC contractors in Dallas TX\", \"dentists in Miami FL\"). Supports Minimal 1-Field Call for AI Agents.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 500
            },
            "default": [
              "dentists in Austin TX"
            ]
          },
          "countryCode": {
            "title": "Google Maps Search Region (ISO-3166-1 alpha-2)",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter country code passed as gl parameter to Google Maps search feed (e.g., \"us\", \"gb\", \"ca\", \"au\", \"de\"). Kept strictly isolated from observed business address jurisdiction.",
            "default": "us"
          },
          "languageCode": {
            "title": "Search Language Code (hl)",
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$",
            "minLength": 2,
            "maxLength": 10,
            "type": "string",
            "description": "BCP-47 / ISO-639-1 language code passed as hl parameter to Google Maps search feed (e.g., \"en\", \"de\", \"fr\", \"es\").",
            "default": "en"
          },
          "latitude": {
            "title": "Optional Viewport Center Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional decimal latitude (-90 to 90, paired with longitude and rounded to 4 decimals in pb & scopeKey) anchoring the Google Maps pb viewport coordinate. When omitted alongside longitude, uses a neutral country-wide continental span so city/region geocoding in q resolves naturally."
          },
          "longitude": {
            "title": "Optional Viewport Center Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional decimal longitude (-180 to 180, paired with latitude and rounded to 4 decimals in pb & scopeKey) anchoring the Google Maps pb viewport coordinate. When omitted alongside latitude, uses a neutral country-wide continental span."
          },
          "viewportRadiusMeters": {
            "title": "Viewport Altitude / Span Meters",
            "minimum": 1000,
            "maximum": 250000,
            "type": "integer",
            "description": "Viewport span in meters encoded into the !1d parameter when explicit latitude/longitude coordinates are provided (1,000 to 250,000 meters; default 50,000).",
            "default": 50000
          },
          "maxLeadsPerQuery": {
            "title": "Max Deduplicated Leads Per Query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of deduplicated local business leads emitted per search query across paginated Maps XSSI pages (start offset 0, 20, 40...; 1 to 200, default 20).",
            "default": 20
          },
          "maxQueriesPerRun": {
            "title": "Max Queries Per Run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard upper bound on search queries processed in a single run (1 to 100, default 10) to guarantee predictable memory and execution bounds.",
            "default": 10
          },
          "includeStorefrontTechAndPixelAudit": {
            "title": "Enable Plane 2 Storefront Ad-Pixel, Consent v2, Widget & Email Audit (+$0.40/1k Verified)",
            "type": "boolean",
            "description": "When true, fetches first-party business websites over direct HTTP (0 browsers, SSRF-guarded) to extract public emails, 3-state Meta/Google/TikTok/LinkedIn pixel vs GTM status, Consent Mode v2, and booking/call-tracking widgets (+$0.0004/lead ONLY when storefrontAuditVerified === true). Default false keeps Minimal 1-Field Call at $2.60/1k (1,923 leads on $5 Free Credit).",
            "default": false
          },
          "maxStorefrontPagesPerLead": {
            "title": "Max Storefront HTML Pages Per Lead",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum first-party HTML pages inspected per lead when includeStorefrontTechAndPixelAudit is true (1 = homepage only; 2 = homepage + /contact; 3 = homepage + /contact + /about).",
            "default": 2
          },
          "includeAgencyPitchDossier": {
            "title": "Enable Deterministic 0-100 Agency Opportunity Score & Cold Pitch Hook (+$0.30/1k Verified)",
            "type": "boolean",
            "description": "When true, computes the closed-form 0-100 Agency Opportunity & Ad-Gap Score (v1.0.0) and synthesizes a vertical-specific B2B outreach pitch hook without requiring external LLM API keys (+$0.0003/lead ONLY when agencyPitchDossierVerified === true).",
            "default": false
          },
          "minRating": {
            "title": "Minimum Google Maps Star Rating Filter",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Optional minimum star rating threshold (1.0 to 5.0) to filter local business leads prior to Dataset emission and PPE billing ($0.00 filter fee)."
          },
          "maxRating": {
            "title": "Maximum Google Maps Star Rating Filter (Reputation Recovery Targeting)",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Optional maximum star rating ceiling (1.0 to 5.0, e.g. 4.2) so Reputation Management Agencies can target businesses suffering from low ratings ($0.00 filter fee)."
          },
          "minReviews": {
            "title": "Minimum Google Maps Review Count Filter",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional minimum Google Maps review count threshold (e.g., 15 or 50 reviews) to ensure established operating businesses ($0.00 filter fee)."
          },
          "websitePresenceFilter": {
            "title": "Website Presence Qualification Filter",
            "enum": [
              "ALL_LEADS",
              "FIRST_PARTY_WEBSITE_ONLY",
              "NO_WEBSITE_OR_SOCIAL_ONLY_PROSPECTS"
            ],
            "type": "string",
            "description": "Filter leads by website ownership status: ALL_LEADS (default), FIRST_PARTY_WEBSITE_ONLY (for ad-pixel/SEO audits), or NO_WEBSITE_OR_SOCIAL_ONLY_PROSPECTS (for web-design agencies).",
            "default": "ALL_LEADS"
          },
          "onlyMissingAdPixels": {
            "title": "Only Emit Leads Without Hardcoded Direct Ad Pixels",
            "type": "boolean",
            "description": "When true (requires includeStorefrontTechAndPixelAudit=true), filters output to businesses where directAdPixelsDetected is empty (NOT_OBSERVED_NO_PIXEL_OR_GTM_IN_STATIC_HTML or NOT_OBSERVED_IN_STATIC_HTML_GTM_CONTAINER_PRESENT).",
            "default": false
          },
          "onlyNewOrChangedLeadsSinceLastRun": {
            "title": "Incremental Delta Radar Mode (Only Emit New or Changed Places)",
            "type": "boolean",
            "description": "When true, compares current results against batched KVS state (VOXA-LOCAL-LEAD-RADAR-STATE) for the matching upstream scopeKey and emits ONLY newly appeared businesses or businesses whose rating/reviews, ad-pixels/widgets, or contact/website changed.",
            "default": false
          },
          "maxChargedUsd": {
            "title": "Hard Run Spend Ceiling (USD)",
            "minimum": 0.01,
            "maximum": 500,
            "type": "number",
            "description": "Strict pre-push atomic PPE budget ceiling in USD (minimum $0.01, default $5.00). Halts record emission cleanly before cumulative event charges can exceed maxChargedUsd.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Optional Apify Proxy Fallback Configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration used strictly as an Actor-side fallback on HTTP 429 rate limits (default direct Zero-Proxy HTTP; locked to allowApifyProxy: false on Web Funnel)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}