{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Business & Contact Scraper",
    "description": "Scrape Google Maps businesses with emails, reviews, images & social links. 33% cheaper than alternatives — emails included in base price. Compass-compatible input.",
    "version": "1.1",
    "x-build-id": "Wc6rgpSUlKx9z1eAi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/herus13~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-herus13-google-maps-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/herus13~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-herus13-google-maps-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/herus13~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-herus13-google-maps-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": [
          "searchStringsArray"
        ],
        "properties": {
          "searchStringsArray": {
            "title": "Search Queries",
            "type": "array",
            "description": "<p>List of search terms to look up on Google Maps.</p><p>Example: <code>restaurant</code>, <code>plumber</code>, <code>dentist</code></p>",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "<p>Location to search in. Example: <code>New York, USA</code>, <code>Austin, TX</code>, <code>London, UK</code></p><p>Leave empty to use the search query itself as location context.</p>"
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max Results Per Search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of businesses to scrape per search query. Google Maps shows ~120 per viewport; enable geo_split for more.",
            "default": 100
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "ar",
              "hi",
              "ru",
              "nl",
              "pl",
              "tr",
              "vi",
              "th",
              "id"
            ],
            "type": "string",
            "description": "Language for Google Maps results.",
            "default": "en"
          },
          "scrapeContacts": {
            "title": "Extract Emails & Social Links",
            "type": "boolean",
            "description": "<p>Visit each business website to extract email addresses and social media links.</p><p><strong>Included in the base price — no extra charge.</strong></p>",
            "default": true
          },
          "scrapePlaceDetailPage": {
            "title": "Scrape Place Detail Page",
            "type": "boolean",
            "description": "<p>Visit each place detail page to extract phone, website, hours, reviews, and images.</p><p>Disable for faster runs when you only need name, rating, address, and categories.</p>",
            "default": true
          },
          "scrapeSocialMediaProfiles": {
            "title": "Social Media Profiles",
            "type": "object",
            "description": "Toggle which social media profiles to extract from business websites.",
            "default": {
              "facebooks": true,
              "instagrams": true,
              "youtubes": true,
              "tiktoks": true,
              "twitters": true,
              "linkedins": true
            }
          },
          "maxReviews": {
            "title": "Max Reviews",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per business. Set to 0 to skip review scraping.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Reviews Sort Order",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRating",
              "lowestRating"
            ],
            "type": "string",
            "description": "How to sort reviews before scraping.",
            "default": "newest"
          },
          "maxImages": {
            "title": "Max Images",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of image URLs to extract per business. Set to 0 to skip.",
            "default": 0
          },
          "placeMinimumStars": {
            "title": "Minimum Rating",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only include places with at least this rating. Leave empty for all.",
            "default": ""
          },
          "skipClosedPlaces": {
            "title": "Skip Closed Places",
            "type": "boolean",
            "description": "Skip permanently closed businesses. Saves you from wasted results.",
            "default": true
          },
          "website": {
            "title": "Website Filter",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Filter businesses by whether they have a website listed.",
            "default": "allPlaces"
          },
          "geo_split": {
            "title": "Auto Geographic Splitting",
            "type": "boolean",
            "description": "<p>Automatically split large areas into a grid to overcome Google's ~120 result limit per viewport.</p><p>Recommended for state/country-level searches.</p>",
            "default": false
          },
          "geo_split_max_cells": {
            "title": "Max Grid Cells",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of grid cells for geo_split. Larger areas auto-increase cell size to stay within this limit.",
            "default": 100
          },
          "cache_provider": {
            "title": "Cache Provider",
            "enum": [
              "memory",
              "file",
              "apify"
            ],
            "type": "string",
            "description": "<p>Cache detail data (emails, reviews, hours) to speed up repeat runs.</p><p><strong>memory</strong>: within same run only (default). <strong>file</strong>: persists to disk (CLI/local). <strong>apify</strong>: persists across runs via Key-Value Store.</p>",
            "default": "memory"
          },
          "cache_ttl_seconds": {
            "title": "Cache TTL (seconds)",
            "minimum": 60,
            "maximum": 604800,
            "type": "integer",
            "description": "How long to keep cached data before re-scraping. Default 24 hours (86400 seconds).",
            "default": 86400
          },
          "max_requests_per_minute": {
            "title": "Max Requests Per Minute",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Rate limit for Google Maps page loads. Lower values reduce blocking risk.",
            "default": 60
          },
          "max_concurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of place detail pages to process at once. Default 1 (sequential, most reliable). Increase to 2-3 for faster runs if you have enough memory.",
            "default": 1
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "<p>Configure proxy provider.</p><p>Use <code>{\"provider\": \"apify\", \"group\": \"RESIDENTIAL\"}</code> for Apify managed proxies, or provide your own. Leave empty to run without proxy.</p>"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}