{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Business Intelligence",
    "description": "Collect structured lead data and competitive insights from Google Maps for lead generation, local SEO, and market research. Perfect for digital agencies, sales teams, and market researchers",
    "version": "0.0",
    "x-build-id": "8nDRdpKtXYzw7j2TJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happitap~google-maps-business-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happitap-google-maps-business-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/happitap~google-maps-business-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-happitap-google-maps-business-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/happitap~google-maps-business-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-happitap-google-maps-business-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": {
          "searchMode": {
            "title": "Search Mode",
            "enum": [
              "keyword_location",
              "geo_radius",
              "place_urls"
            ],
            "type": "string",
            "description": "Choose how to search for businesses",
            "default": "keyword_location"
          },
          "searchKeywords": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Keywords to search for (e.g., 'dentist', 'plumber', 'restaurant')",
            "items": {
              "type": "string"
            },
            "default": [
              "restaurant"
            ]
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region, or address (e.g., 'Kochi, Kerala' or 'Dubai Marina')",
            "default": "New York, NY"
          },
          "countryCode": {
            "title": "Country Code",
            "pattern": "^[A-Z]{2}$",
            "type": "string",
            "description": "Optional ISO country code (e.g., 'IN', 'AE', 'US')"
          },
          "centerLat": {
            "title": "Center Latitude",
            "type": "number",
            "description": "Latitude for geo radius search"
          },
          "centerLng": {
            "title": "Center Longitude",
            "type": "number",
            "description": "Longitude for geo radius search"
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Search radius in kilometers"
          },
          "placeUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Direct Google Maps place URLs or share links",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Google Maps Place IDs",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of results to collect",
            "default": 100
          },
          "dedupeBy": {
            "title": "Deduplicate By",
            "enum": [
              "place_id",
              "cid",
              "name_address"
            ],
            "type": "string",
            "description": "Field to use for deduplication",
            "default": "place_id"
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "dataset",
              "json",
              "csv"
            ],
            "type": "string",
            "description": "Format for output data",
            "default": "dataset"
          },
          "includeRawHtml": {
            "title": "Include Raw HTML",
            "type": "boolean",
            "description": "Include raw HTML in output (for debugging)",
            "default": false
          },
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Filter businesses with rating >= this value"
          },
          "minReviews": {
            "title": "Minimum Reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Filter businesses with reviews >= this value"
          },
          "hasWebsiteOnly": {
            "title": "Has Website Only",
            "type": "boolean",
            "description": "Only include businesses with a website",
            "default": false
          },
          "hasPhoneOnly": {
            "title": "Has Phone Only",
            "type": "boolean",
            "description": "Only include businesses with a phone number",
            "default": false
          },
          "openNowOnly": {
            "title": "Open Now Only",
            "type": "boolean",
            "description": "Only include businesses currently open",
            "default": false
          },
          "categoriesInclude": {
            "title": "Include Categories",
            "type": "array",
            "description": "Only include these categories",
            "items": {
              "type": "string"
            }
          },
          "categoriesExclude": {
            "title": "Exclude Categories",
            "type": "array",
            "description": "Exclude these categories",
            "items": {
              "type": "string"
            }
          },
          "extractEmailsFromWebsite": {
            "title": "Extract Emails from Website",
            "type": "boolean",
            "description": "Crawl business websites to find email addresses",
            "default": false
          },
          "extractSocialLinks": {
            "title": "Extract Social Links",
            "type": "boolean",
            "description": "Extract Facebook, Instagram, LinkedIn links",
            "default": false
          },
          "fetchWebsiteMeta": {
            "title": "Fetch Website Metadata",
            "type": "boolean",
            "description": "Extract website title, description, and tech signals",
            "default": false
          },
          "verifyEmailDeliverability": {
            "title": "Verify Email Deliverability",
            "type": "boolean",
            "description": "Verify if extracted emails are deliverable (slower)",
            "default": false
          },
          "includeReviews": {
            "title": "Include Reviews",
            "type": "boolean",
            "description": "Fetch customer reviews for each business",
            "default": false
          },
          "reviewsLimit": {
            "title": "Reviews Limit",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of reviews to fetch per business",
            "default": 0
          },
          "reviewsSort": {
            "title": "Reviews Sort",
            "enum": [
              "most_relevant",
              "newest"
            ],
            "type": "string",
            "description": "How to sort reviews",
            "default": "most_relevant"
          },
          "aiReviewSummary": {
            "title": "AI Review Summary",
            "type": "boolean",
            "description": "Generate AI summary of reviews (requires OpenAI API key)",
            "default": false
          },
          "benchmarkCompetitors": {
            "title": "Benchmark Competitors",
            "type": "boolean",
            "description": "Compare each business against top competitors",
            "default": false
          },
          "competitorKeywords": {
            "title": "Competitor Keywords",
            "type": "array",
            "description": "Keywords for competitor search (defaults to searchKeywords)",
            "items": {
              "type": "string"
            }
          },
          "benchmarkTopN": {
            "title": "Benchmark Top N",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Number of top competitors to benchmark against",
            "default": 20
          },
          "computeLocalRank": {
            "title": "Compute Local Rank",
            "type": "boolean",
            "description": "Calculate approximate ranking position for each business",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "pattern": "^https?://.+",
            "type": "string",
            "description": "Send results to this webhook URL"
          },
          "webhookPayloadType": {
            "title": "Webhook Payload Type",
            "enum": [
              "full",
              "incremental",
              "summary"
            ],
            "type": "string",
            "description": "Type of data to send to webhook",
            "default": "full"
          },
          "useProxy": {
            "title": "Use Proxy",
            "type": "boolean",
            "description": "Use Apify proxy to avoid blocks",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy Groups",
            "type": "array",
            "description": "Proxy groups to use (RESIDENTIAL recommended)",
            "default": [
              "RESIDENTIAL"
            ]
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of parallel browser instances",
            "default": 5
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum retry attempts for failed requests",
            "default": 3
          },
          "delayMsMin": {
            "title": "Min Delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum delay between requests in milliseconds",
            "default": 1000
          },
          "delayMsMax": {
            "title": "Max Delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum delay between requests in milliseconds",
            "default": 3000
          },
          "openaiApiKey": {
            "title": "OpenAI API Key",
            "type": "string",
            "description": "Required for AI review summaries"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}