{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Places, Reviews & Emails Scraper",
    "description": "Extract Google Maps places, business details, emails, social profiles, reviews, photos, opening hours, ratings, categories, coordinates, and URLs.",
    "version": "0.1",
    "x-build-id": "JRyULL7n1IMcLN2xz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/qaseemiqbal~google-maps-business-intelligence-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-qaseemiqbal-google-maps-business-intelligence-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/qaseemiqbal~google-maps-business-intelligence-scraper/runs": {
      "post": {
        "operationId": "runs-sync-qaseemiqbal-google-maps-business-intelligence-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/qaseemiqbal~google-maps-business-intelligence-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-qaseemiqbal-google-maps-business-intelligence-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": "Business types, categories, or keywords to search for on Google Maps.",
            "items": {
              "type": "string"
            }
          },
          "categoryFilterWords": {
            "title": "Category filters",
            "type": "array",
            "description": "Only include places whose Google categories match these words. If no search terms are provided, these words are also used as discovery terms.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Optional Google Maps search or place URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Google Maps search URL or Google Maps place URL to use as a crawl source."
                }
              }
            }
          },
          "placeUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Direct Google Maps place URLs to scrape without search discovery.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Google Maps place IDs to scrape directly.",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "City, region, postal code, country, or full address to search in."
          },
          "locations": {
            "title": "Multiple locations",
            "type": "array",
            "description": "Optional list of locations to search in one run.",
            "items": {
              "type": "string"
            }
          },
          "geolocation": {
            "title": "Structured geolocation",
            "type": "object",
            "description": "Optional structured location object.",
            "properties": {
              "country": {
                "type": "string",
                "title": "Country",
                "description": "Country name or country search hint."
              },
              "state": {
                "type": "string",
                "title": "State or region",
                "description": "State, province, or region to include in the search location."
              },
              "county": {
                "type": "string",
                "title": "County",
                "description": "County or local administrative area to include in the search location."
              },
              "city": {
                "type": "string",
                "title": "City",
                "description": "City or town to include in the search location."
              },
              "postalCode": {
                "type": "string",
                "title": "Postal code",
                "description": "Postal code or ZIP code to include in the search location."
              }
            }
          },
          "customGeolocation": {
            "title": "Custom GeoJSON area",
            "type": "object",
            "description": "GeoJSON Polygon, MultiPolygon, or Point. Coordinates must be [longitude, latitude]. Point uses radiusKm."
          },
          "radiusKm": {
            "title": "Point radius in km",
            "minimum": 0.1,
            "type": "number",
            "description": "Radius used when customGeolocation is a GeoJSON Point.",
            "default": 5
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google UI language hint.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Optional Google localization country hint, such as GB or US."
          },
          "timezone": {
            "title": "Timezone",
            "type": "string",
            "description": "Optional timezone for date normalization."
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum places to collect for each search term/location/cell combination.",
            "default": 500
          },
          "maxTotalPlaces": {
            "title": "Max total places",
            "minimum": 1,
            "type": "integer",
            "description": "Optional global cap across all searches."
          },
          "maxPlacesPerLocation": {
            "title": "Max places per location",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap per location."
          },
          "maxSearchPagesPerQuery": {
            "title": "Max search pages per query",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum generated search URLs/cells per search term.",
            "default": 40
          },
          "maxScrollsPerSearchPage": {
            "title": "Max scrolls per search page",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum result-panel scroll attempts for one Google Maps search page.",
            "default": 30
          },
          "maxCrawledPlacesPerCell": {
            "title": "Max places per generated cell",
            "minimum": 1,
            "type": "integer",
            "description": "Optional per-cell cap used with custom geolocation grids."
          },
          "scrapePlaceDetails": {
            "title": "Scrape place details",
            "type": "boolean",
            "description": "Open place detail pages and extract structured business data.",
            "default": true
          },
          "scrapeOpeningHours": {
            "title": "Scrape opening hours",
            "type": "boolean",
            "description": "Extract visible weekly opening hours.",
            "default": true
          },
          "scrapePopularTimes": {
            "title": "Scrape popular times",
            "type": "boolean",
            "description": "Extract visible popular-times data when available.",
            "default": false
          },
          "scrapePeopleAlsoSearch": {
            "title": "Scrape people also search",
            "type": "boolean",
            "description": "Extract visible related-place data when available.",
            "default": true
          },
          "scrapeQuestionsAndAnswers": {
            "title": "Scrape questions and answers",
            "type": "boolean",
            "description": "Extract visible Q&A data when available.",
            "default": false
          },
          "scrapeImages": {
            "title": "Scrape images",
            "type": "boolean",
            "description": "Extract Google Maps image URLs and metadata.",
            "default": false
          },
          "maxImagesPerPlace": {
            "title": "Max images per place",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum image rows to emit for one place.",
            "default": 10
          },
          "downloadImages": {
            "title": "Download images",
            "type": "boolean",
            "description": "Reserved for future key-value-store image downloads. The current implementation stores image URLs only.",
            "default": false
          },
          "scrapeContacts": {
            "title": "Scrape emails and social profiles from websites",
            "type": "boolean",
            "description": "Visit business websites and extract emails, phones, and social media links.",
            "default": false
          },
          "scrapeEmails": {
            "title": "Scrape emails",
            "type": "boolean",
            "description": "Extract email addresses from business websites.",
            "default": true
          },
          "scrapePhonesFromWebsite": {
            "title": "Scrape phones from websites",
            "type": "boolean",
            "description": "Extract additional phone numbers from business websites.",
            "default": true
          },
          "scrapeSocialMedia": {
            "title": "Scrape social media",
            "type": "boolean",
            "description": "Extract public social media profile URLs from business websites.",
            "default": true
          },
          "maxWebsitePagesPerPlace": {
            "title": "Max website pages per place",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum website pages to visit for contact enrichment.",
            "default": 5
          },
          "verifyEmails": {
            "title": "Verify emails",
            "type": "boolean",
            "description": "Reserved for a later verification integration. The current implementation marks extracted emails as unverified.",
            "default": false
          },
          "scrapeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Extract Google Maps reviews for each place or direct place URL.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of reviews to extract per place.",
            "default": 50
          },
          "reviewsSort": {
            "title": "Reviews sort",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRating",
              "lowestRating"
            ],
            "type": "string",
            "description": "Sort mode to request in the Google Maps reviews panel where possible.",
            "default": "newest"
          },
          "reviewsOrigin": {
            "title": "Reviews origin",
            "enum": [
              "google",
              "all"
            ],
            "type": "string",
            "description": "Choose whether to scrape only Google-native reviews or all visible review sources.",
            "default": "google"
          },
          "reviewDateFrom": {
            "title": "Review date from",
            "type": "string",
            "description": "Optional ISO date lower bound. Google Maps date filtering can be unreliable unless paired with newest sorting."
          },
          "reviewDateTo": {
            "title": "Review date to",
            "type": "string",
            "description": "Optional ISO date upper bound. Google Maps date filtering can be unreliable unless paired with newest sorting."
          },
          "includeReviewImages": {
            "title": "Include review images",
            "type": "boolean",
            "description": "Extract visible image URLs attached to reviews.",
            "default": false
          },
          "includeReviewerPersonalData": {
            "title": "Include reviewer personal data",
            "type": "boolean",
            "description": "Include reviewer name, URL, photo, review count, and local-guide status. Disabled by default.",
            "default": false
          },
          "translateReviews": {
            "title": "Translate reviews",
            "type": "boolean",
            "description": "Reserved for future translation support. The current implementation stores visible text.",
            "default": false
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip temporarily or permanently closed places.",
            "default": false
          },
          "includeTemporarilyClosed": {
            "title": "Include temporarily closed",
            "type": "boolean",
            "description": "Include temporarily closed businesses when skipClosedPlaces is false.",
            "default": true
          },
          "includePermanentlyClosed": {
            "title": "Include permanently closed",
            "type": "boolean",
            "description": "Include permanently closed businesses when skipClosedPlaces is false.",
            "default": false
          },
          "minStars": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include places with this rating or higher."
          },
          "maxStars": {
            "title": "Maximum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include places with this rating or lower."
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Only include places with this many reviews or more."
          },
          "maxReviews": {
            "title": "Maximum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Only include places with this many reviews or fewer."
          },
          "onlyWithWebsite": {
            "title": "Only with website",
            "type": "boolean",
            "description": "Only include places with a website URL.",
            "default": false
          },
          "onlyWithoutWebsite": {
            "title": "Only without website",
            "type": "boolean",
            "description": "Only include places without a website URL.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only with phone",
            "type": "boolean",
            "description": "Only include places with a phone number.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with email",
            "type": "boolean",
            "description": "Only include places where website contact crawling found an email. This is best used with scrapeContacts enabled.",
            "default": false
          },
          "nameIncludes": {
            "title": "Name includes",
            "type": "array",
            "description": "Only include places whose name contains one of these strings.",
            "items": {
              "type": "string"
            }
          },
          "nameExcludes": {
            "title": "Name excludes",
            "type": "array",
            "description": "Exclude places whose name contains one of these strings.",
            "items": {
              "type": "string"
            }
          },
          "categoryMatching": {
            "title": "Category matching",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "How categoryFilterWords are applied to extracted categories.",
            "default": "any"
          },
          "searchMatching": {
            "title": "Search matching",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Whether a place must match any or all search terms in post-filtering.",
            "default": "any"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum concurrent browser pages.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum crawler retries for one request.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 10,
            "type": "integer",
            "description": "Maximum time for one request handler.",
            "default": 60
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout seconds",
            "minimum": 10,
            "type": "integer",
            "description": "Maximum page navigation timeout.",
            "default": 60
          },
          "deduplicatePlaces": {
            "title": "Deduplicate places",
            "type": "boolean",
            "description": "Deduplicate places across overlapping terms, locations, and grid cells.",
            "default": true
          },
          "outputDuplicateSearchMatches": {
            "title": "Output duplicate search matches",
            "type": "boolean",
            "description": "Emit duplicate place rows for each search match instead of one canonical row.",
            "default": false
          },
          "preserveGoogleRankOrder": {
            "title": "Preserve Google rank order",
            "type": "boolean",
            "description": "Favor direct visible-map ordering for single search URL workflows.",
            "default": false
          },
          "debugLog": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Enable verbose logs and extra context in error rows.",
            "default": false
          },
          "saveHtmlOnError": {
            "title": "Save HTML on error",
            "type": "boolean",
            "description": "Store failed page HTML snapshots in the key-value store.",
            "default": false
          },
          "maxPlacesPerMinute": {
            "title": "Max places per minute",
            "minimum": 1,
            "type": "integer",
            "description": "Reserved cost-control setting. The current crawler uses maxConcurrency and retries."
          },
          "maxRunMinutes": {
            "title": "Max run minutes",
            "minimum": 1,
            "type": "integer",
            "description": "Stop scheduling work after this many minutes."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by the crawler."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}