{
  "openapi": "3.0.1",
  "info": {
    "title": "📍 Google Maps All-in-One Scraper",
    "description": "Extract complete business data from Google Maps: emails, 6 social platforms (Facebook, Instagram, Twitter, LinkedIn, YouTube, TikTok), reviews with best/worst separation, images, contacts. All-in-one solution — $45/1K places, no hidden fees. Geogrid technology finds ALL businesses.",
    "version": "1.0",
    "x-build-id": "bcEAFC6g0HVltDDgw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~google-maps-premium-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-google-maps-premium-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/brilliant_gum~google-maps-premium-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-google-maps-premium-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/brilliant_gum~google-maps-premium-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-google-maps-premium-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",
          "locationQuery"
        ],
        "properties": {
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "What to search for (e.g., restaurant, dentist, hotel, plumber)"
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "Where to search (e.g., New York, USA or London, UK)"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for results (en, de, fr, es, etc.)",
            "default": "en"
          },
          "maxTotalPlaces": {
            "title": "Maximum Places",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of places to scrape",
            "default": 3
          },
          "useGeogrid": {
            "title": "Use Geogrid Mode",
            "type": "boolean",
            "description": "Enable to find ALL places in area (overcomes Google's 120-result limit). Recommended for comprehensive scraping.",
            "default": true
          },
          "geogridRadius": {
            "title": "Geogrid Radius (km)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Search radius in kilometers from center point",
            "default": 5
          },
          "geogridCellSize": {
            "title": "Geogrid Cell Size (km)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Size of each grid cell. Smaller = more thorough but slower",
            "default": 1
          },
          "skipClosedPlaces": {
            "title": "Skip Closed Places",
            "type": "boolean",
            "description": "Skip permanently closed businesses",
            "default": false
          },
          "scrapeContacts": {
            "title": "Extract Emails",
            "type": "boolean",
            "description": "Visit business websites to find email addresses. Disabling speeds up scraping.",
            "default": true
          },
          "crawlContactPages": {
            "title": "Deep Email Search",
            "type": "boolean",
            "description": "Crawl contact/about pages for more emails. More thorough but slower.",
            "default": true
          },
          "maxContactPages": {
            "title": "Max Contact Pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum pages to crawl per website for emails",
            "default": 3
          },
          "scrapeSocialProfiles": {
            "title": "Extract Social Media",
            "type": "boolean",
            "description": "Find Facebook, Instagram, Twitter, LinkedIn, YouTube, TikTok profiles",
            "default": true
          },
          "maxReviews": {
            "title": "Reviews per Place",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum reviews to extract per place. Set to 0 to disable reviews.",
            "default": 10
          },
          "extractBestReviews": {
            "title": "Extract Best Reviews",
            "type": "boolean",
            "description": "Separately extract highest-rated (5-star) reviews",
            "default": true
          },
          "extractWorstReviews": {
            "title": "Extract Worst Reviews",
            "type": "boolean",
            "description": "Separately extract lowest-rated (1-2 star) reviews",
            "default": true
          },
          "maxBestReviews": {
            "title": "Max Best Reviews",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum best reviews to extract",
            "default": 5
          },
          "maxWorstReviews": {
            "title": "Max Worst Reviews",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum worst reviews to extract",
            "default": 5
          },
          "reviewsSort": {
            "title": "Reviews Sort Order",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRating",
              "lowestRating"
            ],
            "type": "string",
            "description": "How to sort reviews",
            "default": "newest"
          },
          "scrapeReviewsPersonalData": {
            "title": "Include Reviewer Names",
            "type": "boolean",
            "description": "Include reviewer names and profile info (GDPR consideration)",
            "default": true
          },
          "maxImages": {
            "title": "Images per Place",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum images to extract per place. Set to 0 to disable images.",
            "default": 5
          },
          "scrapeQA": {
            "title": "Extract Q&A",
            "type": "boolean",
            "description": "Extract questions and answers from listing",
            "default": true
          },
          "proxyCountry": {
            "title": "Apify Proxy Country (fallback)",
            "type": "string",
            "description": "Country for Apify fallback proxy (US, DE, GB). Leave empty for automatic."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}