{
  "openapi": "3.0.1",
  "info": {
    "title": "📍 Google Maps Scraper",
    "description": "Extract business data from Google Maps — addresses, phones, websites, ratings, reviews, images, opening hours, popular times & more. Search by keyword, URL, Place ID, or custom GeoJSON area.",
    "version": "0.1",
    "x-build-id": "4bC4bjZ4frOtIHGkV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lovely_radiologist~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lovely_radiologist-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/lovely_radiologist~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lovely_radiologist-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/lovely_radiologist~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lovely_radiologist-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",
        "properties": {
          "searchStringsArray": {
            "title": "Search terms",
            "type": "array",
            "description": "List of search terms to scrape (e.g. [\"pizza in New York\", \"hotels in Paris\"]). Can include location in the search term.",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "Restrict search to a specific location (e.g. \"New York, USA\" or \"Paris, France\"). Combined with searchStringsArray."
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of places to scrape per search query. Default is 50.",
            "default": 50
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for Google Maps results (ISO 639-1 code, e.g. \"en\", \"fr\", \"de\").",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code for geolocation (e.g. \"US\", \"GB\", \"DE\")."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name for geolocation (e.g. \"New York\", \"London\")."
          },
          "state": {
            "title": "State / Province",
            "type": "string",
            "description": "State or province for geolocation (e.g. \"New York\", \"California\")."
          },
          "postalCode": {
            "title": "Postal code",
            "type": "string",
            "description": "Postal/ZIP code for geolocation (best combined with countryCode)."
          },
          "customGeolocation": {
            "title": "Custom search area (GeoJSON)",
            "type": "object",
            "description": "Define a custom search area using a GeoJSON geometry. Supports Point (with radiusKm), Polygon, or MultiPolygon."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct Google Maps URLs to scrape (e.g. https://www.google.com/maps/place/...). Skip search, scrape these places directly.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "List of Google Place IDs to scrape directly (starting with ChIJ or GhIJ).",
            "items": {
              "type": "string"
            }
          },
          "categoryFilterWords": {
            "title": "Category filter",
            "type": "array",
            "description": "Only include places whose category contains one of these words (e.g. [\"pizza\", \"italian\"]).",
            "items": {
              "type": "string"
            }
          },
          "searchMatching": {
            "title": "Name matching",
            "enum": [
              "all",
              "only_includes",
              "only_exact"
            ],
            "type": "string",
            "description": "Restrict which places are included based on name matching with the search term.",
            "default": "all"
          },
          "placeMinimumStars": {
            "title": "Minimum star rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Only include places with at least this many stars."
          },
          "website": {
            "title": "Website presence",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Filter places by whether they have a website.",
            "default": "allPlaces"
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip places that are permanently or temporarily closed.",
            "default": false
          },
          "scrapePlaceDetailPage": {
            "title": "Scrape place detail page",
            "type": "boolean",
            "description": "Scrape the full detail page for each place. Required for: opening hours, popular times, Q&As, additional attributes, and full contact info. Increases time and cost.",
            "default": false
          },
          "maxReviews": {
            "title": "Max reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "Number of reviews to scrape per place. 0 = no reviews. Use 99999 to scrape all available (up to 5,000).",
            "default": 0
          },
          "reviewsSort": {
            "title": "Reviews sort order",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRanking",
              "lowestRanking"
            ],
            "type": "string",
            "description": "Sort order for reviews.",
            "default": "newest"
          },
          "reviewsStartDate": {
            "title": "Reviews start date",
            "type": "string",
            "description": "Only include reviews published after this date. Format: YYYY-MM-DD or relative (e.g. \"3 months\"). Requires reviewsSort = \"newest\"."
          },
          "reviewsFilterString": {
            "title": "Reviews keyword filter",
            "type": "string",
            "description": "Only include reviews containing this keyword or phrase."
          },
          "reviewsOrigin": {
            "title": "Reviews origin",
            "enum": [
              "all",
              "google"
            ],
            "type": "string",
            "description": "Filter reviews by origin source.",
            "default": "all"
          },
          "scrapeReviewsPersonalData": {
            "title": "Include reviewer personal data",
            "type": "boolean",
            "description": "Include reviewer name, profile URL, and photo in review results.",
            "default": true
          },
          "maxImages": {
            "title": "Max images per place",
            "minimum": 0,
            "type": "integer",
            "description": "Number of images to scrape per place. 0 = no images. Use 99999 to scrape all available.",
            "default": 0
          },
          "scrapeImageAuthors": {
            "title": "Include image authors",
            "type": "boolean",
            "description": "Include the author name and profile URL for each scraped image.",
            "default": false
          },
          "scrapeContacts": {
            "title": "Scrape company contacts",
            "type": "boolean",
            "description": "Visit each place's website and extract publicly visible emails, phone numbers, and social media profiles (Facebook, Instagram, LinkedIn, Twitter, YouTube, TikTok).",
            "default": false
          },
          "maxQuestions": {
            "title": "Max Q&As per place",
            "minimum": 0,
            "type": "integer",
            "description": "Number of Questions & Answers to extract per place. Requires scrapePlaceDetailPage = true.",
            "default": 0
          },
          "scrapeTableReservationProvider": {
            "title": "Scrape table reservation provider",
            "type": "boolean",
            "description": "Scrape table reservation provider info (e.g. Resy, OpenTable). For restaurants only. Requires scrapePlaceDetailPage = true.",
            "default": false
          },
          "scrapeOrderOnline": {
            "title": "Scrape order online data",
            "type": "boolean",
            "description": "Scrape food delivery/order online widget data (providers, fees). Requires scrapePlaceDetailPage = true.",
            "default": false
          },
          "includeWebResults": {
            "title": "Include web results",
            "type": "boolean",
            "description": "Include the \"Web results\" section shown at the bottom of some place listings.",
            "default": false
          },
          "enableCompetitorAnalysis": {
            "title": "Enable competitor analysis",
            "type": "boolean",
            "description": "After scraping, generate a competitor analysis report comparing all scraped places (rankings, strengths, strategic overview, HTML map visualization).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for requests. Use Apify residential proxies for best results on Google Maps."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}