{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Leads Engine",
    "description": "Scrape Google Maps business leads with phones, websites, ratings, reviews, and optional email/social enrichment.",
    "version": "0.1",
    "x-build-id": "v4yU2cJETOq83WkdK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/morpheus26~google-maps-leads-engine/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-morpheus26-google-maps-leads-engine",
        "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/morpheus26~google-maps-leads-engine/runs": {
      "post": {
        "operationId": "runs-sync-morpheus26-google-maps-leads-engine",
        "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/morpheus26~google-maps-leads-engine/run-sync": {
      "post": {
        "operationId": "run-sync-morpheus26-google-maps-leads-engine",
        "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": {
          "search_terms": {
            "title": "Search term(s)",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Examples: `restaurant`, `dentist`, `immigration lawyer`, `HVAC contractor`.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (optional when using direct place URLs)",
            "type": "string",
            "description": "City, state, region, or country appended to each search term. Examples: `New York, USA`, `Miami, Florida`, `Blumenau, SC`."
          },
          "direct_place_urls": {
            "title": "Google Maps place URLs or Google Place IDs",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "Skip keyword search and scrape place details directly. Useful for saved lead lists, retries, or API automations.",
            "items": {
              "type": "string"
            }
          },
          "max_results_per_search": {
            "title": "Number of places to extract (per search term)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of Google Maps places to save from each search term before deduplication.",
            "default": 3
          },
          "language": {
            "title": "Language",
            "enum": [
              "en-US",
              "pt-BR",
              "es-ES",
              "fr-FR",
              "de-DE",
              "it-IT"
            ],
            "type": "string",
            "description": "Google Maps interface/content language. Keep `en-US` for the most stable large-volume runs.",
            "default": "en-US"
          },
          "category_filters": {
            "title": "Keep only categories containing",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Examples: `restaurant`, `dentist`, `law firm`, `real estate agency`.",
            "items": {
              "type": "string"
            }
          },
          "min_rating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Save only businesses with rating greater than or equal to this value."
          },
          "min_reviews": {
            "title": "Minimum reviews count",
            "minimum": 0,
            "type": "integer",
            "description": "Save only businesses with at least this many Google reviews."
          },
          "extract_opening_hours": {
            "title": "Opening hours",
            "type": "boolean",
            "description": "Extract the opening-hours summary shown on the Google Maps place page.",
            "default": false
          },
          "extract_images": {
            "title": "Image URLs",
            "type": "boolean",
            "description": "Collect visible Google Maps image URLs from each place page.",
            "default": false
          },
          "image_limit": {
            "title": "Maximum image URLs per place",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Only used when `Image URLs` is enabled.",
            "default": 6
          },
          "extract_website_contacts": {
            "title": "Public emails",
            "type": "boolean",
            "description": "Extract public email addresses and the most relevant contact page URL found on the company website.",
            "default": false
          },
          "extract_social_profiles": {
            "title": "Social profiles",
            "type": "boolean",
            "description": "Extract public social profile links found on the company website.",
            "default": false
          },
          "max_concurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of place detail pages processed in parallel.",
            "default": 1
          },
          "proxySettings": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Recommended for large, repeated, or commercial runs. Apify Proxy is the safest default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}