{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper",
    "description": "Powerful Apify Actor that extracts business information from Google Maps. Get names, ratings, reviews, contact details, websites, and addresses for any business type in any location worldwide.",
    "version": "0.0",
    "x-build-id": "qU5bkZpDMT9LDdjV0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nocodeventure~Google-Maps-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nocodeventure-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/nocodeventure~Google-Maps-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-nocodeventure-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/nocodeventure~Google-Maps-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nocodeventure-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": [
          "searchQuery"
        ],
        "properties": {
          "searchQuery": {
            "title": "Search Query",
            "minLength": 1,
            "type": "string",
            "description": "What to search for on Google Maps (e.g., 'restaurants', 'hotels', 'coffee shops')"
          },
          "location": {
            "title": "Locations",
            "type": "array",
            "description": "List of locations to search. Each location will be searched separately with a fresh browser session. (e.g., ['Dubai', 'Kuwait City', 'Manama, Bahrain']). Leave empty to use Google's auto-detection.",
            "items": {
              "type": "string"
            }
          },
          "browserConcurrency": {
            "title": "Browser Concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of browser sessions to run in parallel. Each location gets its own browser. Set to 1 for sequential processing, or higher to process multiple locations simultaneously. Each browser uses ~500-800MB RAM. Use 4GB for 1-5 browsers, 8GB for 6-10, 16GB for 11-20, 32GB for 21-30.",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of businesses to scrape. Set to 0 for unlimited. Default is 100.",
            "default": 10
          },
          "scrapeDetails": {
            "title": "Scrape Business Details",
            "type": "boolean",
            "description": "Click each listing to open the sidebar and extract detailed information (address, phone, website, hours). This takes longer but provides complete data.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for the scraper. Residential proxies are highly recommended for Google Maps to avoid blocking.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "minDelay": {
            "title": "Minimum Delay (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum delay between actions in seconds",
            "default": 1
          },
          "maxDelay": {
            "title": "Maximum Delay (seconds)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum delay between actions in seconds",
            "default": 3
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "nl",
              "de",
              "es",
              "fr",
              "it",
              "pt",
              "pl",
              "tr",
              "ru",
              "ar",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "hu",
              "el",
              "ro",
              "th",
              "vi",
              "id",
              "hi"
            ],
            "type": "string",
            "description": "Language for Google Maps results. This affects the language of the page content and helps with end-of-results detection.",
            "default": "en"
          },
          "debugScreenshots": {
            "title": "Debug Screenshots",
            "type": "boolean",
            "description": "Capture screenshots when errors occur for debugging purposes. Useful for troubleshooting but increases storage usage.",
            "default": false
          },
          "captureFinishScreenshot": {
            "title": "Capture Finish Screenshot",
            "type": "boolean",
            "description": "When enabled, capture a screenshot of the final state when scraping is complete. The screenshot is saved with 30% quality to reduce storage size.",
            "default": false
          },
          "skipSponsored": {
            "title": "Skip Sponsored Listings",
            "type": "boolean",
            "description": "When enabled, skip all sponsored/ad listings and only return organic results.",
            "default": false
          },
          "skipWithWebsite": {
            "title": "Skip Listings With Website",
            "type": "boolean",
            "description": "When enabled, only return listings that do NOT have a website. Useful for finding businesses without web presence for lead generation.",
            "default": false
          },
          "skipWithPhone": {
            "title": "Skip Listings With Phone",
            "type": "boolean",
            "description": "When enabled, only return listings that do NOT have a phone number. Useful for finding businesses with incomplete contact info.",
            "default": false
          },
          "skipWithoutContact": {
            "title": "Skip Listings Without Contact Info",
            "type": "boolean",
            "description": "When enabled, skip listings that have neither a phone number nor email address. Only return listings with at least one contact method.",
            "default": false
          },
          "extractReviews": {
            "title": "Extract Reviews",
            "type": "boolean",
            "description": "When enabled, extract reviews for each business listing. This significantly increases scraping time as it requires visiting each business and loading all reviews.",
            "default": false
          },
          "maxReviews": {
            "title": "Maximum Reviews Per Business",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of reviews to extract per business. Set to 0 or leave empty for unlimited (all reviews). Default is unlimited.",
            "default": 1
          },
          "extractReviewShareLink": {
            "title": "Extract Review Share Links",
            "type": "boolean",
            "description": "When enabled, extract the shareable link for each review. This adds extra time as it requires clicking the share button for each review.",
            "default": false
          },
          "debugReviewScreenshots": {
            "title": "Debug Review Screenshots",
            "type": "boolean",
            "description": "When enabled, capture screenshots during review extraction for debugging purposes. Screenshots are saved to the key-value store.",
            "default": false
          },
          "enrichWebsiteData": {
            "title": "Enrich with Website Data",
            "type": "boolean",
            "description": "When enabled, visit each business website to extract email addresses, social media links (Facebook, Instagram, LinkedIn, Twitter/X), and contact page URLs. This is ideal for B2B lead generation.",
            "default": false
          },
          "followContactPage": {
            "title": "Follow Contact Pages",
            "type": "boolean",
            "description": "When enrichment is enabled, also visit the contact page (if found) to extract additional emails and data.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}