{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper — Pay Only for Places You Keep",
    "description": "Scrape Google Maps places with rating, address, coordinates, phone, website, hours, popular times, menus with prices, reviews and website emails. Searches whole areas past the 120-place limit. Duplicates, filtered-out and unchanged places are free. Accepts Compass Google Maps Scraper input.",
    "version": "0.2",
    "x-build-id": "eudUFvrisQ6hyegwQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mu0i~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mu0i-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/mu0i~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mu0i-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/mu0i~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mu0i-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": "What to search for, one per line (e.g. \"coffee shop\"). Keep the location out of the term and put it in Location (or a custom area) below — that's what lets a search go past Google's ~20-per-view limit by searching the area tile by tile. \"place_id:ChIJ…\" entries are treated as place IDs.",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "Free-text area to search within (e.g. \"Austin, TX\"). Each result row reports what Google understood it as in `resolvedLocation`, so a mix-up (Alta, Norway vs Alberta) is visible. Without any location (here, in the area fields, or in the term), Google picks the area itself."
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "type": "integer",
            "description": "Places to return per search term, after filters. Leave empty for all places in the area (up to 5,000 per term)."
          },
          "maxCrawledPlaces": {
            "title": "Max places in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many places (across all terms, URLs and IDs). Leave empty for no total limit. Your Apify max-charge setting is also enforced exactly."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Result language as an ISO code (e.g. en, de, fr, es)."
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code (e.g. US, DE). Combined with the fields below into the search area when Location is empty."
          },
          "state": {
            "title": "State / region",
            "type": "string",
            "description": "e.g. Texas"
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "e.g. Travis County"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "e.g. Austin"
          },
          "postalCode": {
            "title": "Postal code",
            "type": "string",
            "description": "e.g. 78701"
          },
          "customGeolocation": {
            "title": "Custom area (GeoJSON)",
            "type": "object",
            "description": "Search exactly this area and keep only places inside it. A GeoJSON Polygon or MultiPolygon ([lng, lat] order), or a circle: {\"type\": \"Point\", \"coordinates\": [-97.74, 30.27], \"radiusKm\": 5}."
          },
          "startUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Place URLs, ?cid= URLs, search URLs (\"…/maps/search/coffee/@30.27,-97.74,14z\" searches that view) and maps.app.goo.gl share links.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Google place IDs (ChIJ…), feature IDs (0x…:0x…) or CIDs — any mix.",
            "items": {
              "type": "string"
            }
          },
          "categoryFilterWords": {
            "title": "Only these categories",
            "type": "array",
            "description": "Keep a place only if one of its categories contains one of these words (e.g. \"cafe\" keeps \"Cafe\" and \"Internet cafe\"). With no search terms, URLs or place IDs, these words are searched for. Free.",
            "items": {
              "type": "string"
            }
          },
          "searchMatching": {
            "title": "Name must match the search term",
            "enum": [
              "all",
              "only_includes",
              "only_exact"
            ],
            "type": "string",
            "description": "Keep places whose name contains the term, or equals it.",
            "default": "all"
          },
          "placeMinimumStars": {
            "title": "Minimum rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Skip places rated below this (and unrated places).",
            "default": ""
          },
          "placeMaximumStars": {
            "title": "Maximum rating",
            "enum": [
              "",
              "one",
              "oneAndHalf",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Keep only places rated at or below this — for reputation-management outreach to struggling businesses.",
            "default": ""
          },
          "minReviewsCount": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Skip places with fewer reviews."
          },
          "maxReviewsCount": {
            "title": "Maximum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Skip places with more reviews (e.g. find newer businesses)."
          },
          "website": {
            "title": "Website",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "\"Without a website\" finds prospects for web-design agencies.",
            "default": "allPlaces"
          },
          "phone": {
            "title": "Phone",
            "enum": [
              "allPlaces",
              "withPhone",
              "withoutPhone"
            ],
            "type": "string",
            "description": "Keep only places with (or without) a phone number.",
            "default": "allPlaces"
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip permanently and temporarily closed places. Businesses opening soon aren't closed and are kept.",
            "default": false
          },
          "onlyClosedPlaces": {
            "title": "Only closed places",
            "type": "boolean",
            "description": "Return only permanently or temporarily closed places.",
            "default": false
          },
          "onlyOpeningSoonPlaces": {
            "title": "Only businesses opening soon",
            "type": "boolean",
            "description": "Return only businesses that are on Google Maps but haven't opened yet, with the opening date Google shows (\"Opens Jan 11\" → openingDate 2027-01-11). Search a city or area by category to find them. Places whose listing already shows opening hours are ruled out from the search results without a lookup. Billed per business found (opening-soon-lead) on top of the place; the places checked that aren't opening soon are free. Can't be combined with a star rating or minimum review count (no reviews yet). Free Apify plan: at most 1,000 places checked per run.",
            "default": false
          },
          "scrapePlaceDetailPage": {
            "title": "Scrape place details",
            "type": "boolean",
            "description": "Adds opening hours, popular times, all attributes, full menu with prices, popular dishes, photo categories, review topics, star distribution, description, AI highlights and hotel class/prices. Billed per place (place-details).",
            "default": false
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "Full review records (stars, date, text, owner reply, aspect ratings, review photos), up to 5,000 per place — a larger number (e.g. 99999 for \"all\") is capped at 5,000. If your maximum charge runs out mid-way, reviews stop exactly there (you're never charged past it). 0 = no reviews. Billed per review (reviews-scraped).",
            "default": 0
          },
          "reviewsSort": {
            "title": "Reviews order",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRanking",
              "lowestRanking"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "newest"
          },
          "reviewsStartDate": {
            "title": "Only reviews since",
            "type": "string",
            "description": "A date (2026-01-31) or a period back from now (\"8 hours\", \"7 days\", \"3 months\", \"1 year 6 months\"). Uses newest-first order. Anything else stops the run before it starts (nothing is charged)."
          },
          "onlyReviewsWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Skip star-only reviews. Skipped reviews are free.",
            "default": false
          },
          "reviewsFilterString": {
            "title": "Only reviews mentioning",
            "type": "string",
            "description": "Keep only reviews that mention one of these words or phrases, separated by commas or new lines (e.g. \"parking, wait time\"). Case and accents are ignored, and a word also matches its longer forms (\"coffee\" matches \"coffees\"). Up to 1,000 reviews per place are searched to find your Reviews per place. Skipped reviews are free."
          },
          "reviewsOrigin": {
            "title": "Review source",
            "enum": [
              "all",
              "google"
            ],
            "type": "string",
            "description": "\"Google only\" skips any review labelled as coming from another site. Skipped reviews are free.",
            "default": "all"
          },
          "scrapeReviewsPersonalData": {
            "title": "Include reviewer names and profiles",
            "type": "boolean",
            "description": "Reviewer name, profile URL, photo and ID. Off by default: these are personal data, and you are responsible for having a lawful basis to process them (GDPR).",
            "default": false
          },
          "maxImages": {
            "title": "Photos per place",
            "minimum": 0,
            "type": "integer",
            "description": "Photo URLs per place, up to 500 (a larger number is capped at 500). 0 = none. Included in the place price.",
            "default": 0
          },
          "scrapeContacts": {
            "title": "Find emails and social profiles",
            "type": "boolean",
            "description": "Crawls each place's own website (homepage + contact/about/Impressum pages) for emails, social profiles and, for German/Austrian/Swiss sites, the Impressum (company, managing directors, VAT and register numbers). Only emails on the business's own domain or a personal mailbox are kept — no platform or vendor addresses. Billed only for places where an email is found (contacts-found). Some emails are personal data (e.g. an owner's own mailbox) — you're responsible for a lawful basis to use them (GDPR).",
            "default": false
          },
          "verifyEmails": {
            "title": "Verify emails",
            "type": "boolean",
            "description": "Checks every email found with our email verifier and reports the result in `emailStatuses`. Billed only for emails confirmed deliverable (email-verified). Turns on email finding.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring",
            "enum": [
              "off",
              "newAndChanged",
              "newOnly"
            ],
            "type": "string",
            "description": "Run the same search on a schedule and get only what's new. \"New and changed\" returns places that are new or whose details/reviews changed since the last run (tagged in `changeStatus`); unchanged places are skipped free. \"New only\" never re-fetches places seen before. With reviews on, only reviews newer than the last run are fetched.",
            "default": "off"
          },
          "monitoringName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share what they've seen. Use a different name per list you track."
          },
          "excludePlaceIds": {
            "title": "Exclude places",
            "type": "array",
            "description": "Place IDs (ChIJ…), feature IDs (0x…:0x…) or CIDs you already have — never returned or charged, however long the list.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}