{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Leads Scraper | $1.5/1k places",
    "description": "Scrape unlimited Google Maps business leads — names, addresses, phones, websites, ratings, and optional [Add On] emails + Social Profiles from business websites. Type any city ('Chicago', 'Paris, France') and grid search covers the entire area, bypassing Google's ~120-results-per-search cap.",
    "version": "0.1",
    "x-build-id": "VpHUG2KPjKIih3axQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mamies~google-maps-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mamies-google-maps-leads-scraper",
        "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/mamies~google-maps-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mamies-google-maps-leads-scraper",
        "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/mamies~google-maps-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mamies-google-maps-leads-scraper",
        "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",
            "type": "array",
            "description": "One search query per line, e.g. 'restaurants in New York' or 'dentists in Austin TX'.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "type": "integer",
            "description": "Roughly caps how many results are kept per query. Note: Google caps a single search at ~120 places — use Grid search (below) to go beyond that.",
            "default": 10
          },
          "language": {
            "title": "Language code",
            "type": "string",
            "description": "Google language code, e.g. 'en', 'de', 'hi'.",
            "default": "en"
          },
          "extractEmails": {
            "title": "Extract emails + social profiles from business websites",
            "type": "boolean",
            "description": "Adds 'emails', social profile fields (facebook, instagram, linkedin, twitter, youtube, tiktok, pinterest, github, telegram, whatsapp), and 'contact_page'. Billed at the higher 'result with email' rate; ~30% of listings have no website so not every result gets contacts.",
            "default": false
          },
          "zoom": {
            "title": "Grid cell zoom level",
            "minimum": 1,
            "maximum": 21,
            "type": "integer",
            "description": "Only used with Grid search bounding box: the map zoom each grid cell searches at (default 16 gives the best pin density per cell). Has no effect on normal text queries.",
            "default": 16
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "How many queries to process in parallel. Higher uses more compute/proxy resources.",
            "default": 2
          },
          "gridCity": {
            "title": "Grid search area — city, state/region (easiest)",
            "type": "string",
            "description": "To scrape an entire area beyond the ~120 result cap, just type a city — e.g. 'Chicago' or 'San Francisco'. If the name exists in more than one place, add a region and/or country: 'Springfield, Illinois', 'Austin, TX', 'Cambridge, England', 'Paris, France'. Otherwise the biggest match wins. The scraper finds the coordinates automatically and searches the radius below around the city center. Leave empty to search normally."
          },
          "gridRadiusKm": {
            "title": "Grid radius (km)",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "Only used with the city name above: how far around the city center to grid-search (default 5 km). Bigger radius = more results, slower and costlier.",
            "default": 5
          },
          "gridBbox": {
            "title": "Grid search area — exact bounding box (alternative to city name)",
            "type": "string",
            "description": "For precise control instead of the city name: provide 'minLat,minLon,maxLat,maxLon' (e.g. '40.30,-3.80,40.50,-3.60'). Takes priority over the city name if both are set. Leave empty otherwise."
          },
          "gridCellKm": {
            "title": "Grid cell size (km)",
            "minimum": 0.1,
            "type": "number",
            "description": "Only used with Grid search bounding box. Size of each search cell in kilometers (can be a decimal, e.g. 0.5). Smaller = more thorough but slower/costlier.",
            "default": 1
          },
          "timeoutSecs": {
            "title": "Scraper timeout (seconds)",
            "minimum": 60,
            "type": "integer",
            "description": "Maximum time the underlying scraper process may run before the Actor fails.",
            "default": 3600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}