{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper Premium Ultra Pro",
    "description": "Scrape Google Maps business listings, contacts, ratings, reviews, images, and website details for lead generation, SEO, and market research.",
    "version": "0.1",
    "x-build-id": "RbLCdloNTAzqHhWTM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/qaseemiqbal~google-maps-scraper-premium-ultra-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-qaseemiqbal-google-maps-scraper-premium-ultra-pro",
        "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-scraper-premium-ultra-pro/runs": {
      "post": {
        "operationId": "runs-sync-qaseemiqbal-google-maps-scraper-premium-ultra-pro",
        "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-scraper-premium-ultra-pro/run-sync": {
      "post": {
        "operationId": "run-sync-qaseemiqbal-google-maps-scraper-premium-ultra-pro",
        "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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Business categories or keywords to search on Google Maps.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, regions, neighborhoods, or countries to combine with each search term.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Maps search URLs",
            "type": "array",
            "description": "Direct Google Maps search URLs to crawl.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeUrls": {
            "title": "Google Maps place URLs",
            "type": "array",
            "description": "Direct Google Maps place URLs to extract.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs, CIDs, or FIDs",
            "type": "array",
            "description": "Known Google place identifiers. Place IDs are converted to Maps search URLs.",
            "items": {
              "type": "string"
            }
          },
          "customGeolocation": {
            "title": "Custom GeoJSON area",
            "type": "object",
            "description": "Point, Polygon, or MultiPolygon GeoJSON. Coordinates must be [longitude, latitude]. For Point, set radiusKm."
          },
          "costPreset": {
            "title": "Cost preset",
            "enum": [
              "lowestCost",
              "balanced",
              "maximumCoverage",
              "custom"
            ],
            "type": "string",
            "description": "Controls default limits and crawl depth. Lowest cost minimizes browser/proxy time and outputs listing rows unless detail-only features are requested.",
            "default": "lowestCost"
          },
          "detailMode": {
            "title": "Place detail mode",
            "enum": [
              "listingOnly",
              "full"
            ],
            "type": "string",
            "description": "Listing-only mode skips Google Maps detail pages for search results and is the cheapest mode. Full mode opens each place detail page.",
            "default": "listingOnly"
          },
          "categoryFilters": {
            "title": "Category filters",
            "type": "array",
            "description": "Optional category names used after extraction.",
            "items": {
              "type": "string"
            }
          },
          "categoryFilterMode": {
            "title": "Category filter mode",
            "enum": [
              "broad",
              "exact",
              "anyContainsAllWords"
            ],
            "type": "string",
            "description": "Use broad matching for recall or exact matching for stricter output.",
            "default": "broad"
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum listing candidates collected from each search job.",
            "default": 50
          },
          "maxTotalPlaces": {
            "title": "Max total places",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global cap for unique place detail extractions.",
            "default": 250
          },
          "includeReviews": {
            "title": "Extract reviews",
            "type": "boolean",
            "description": "Extract one review per row into the reviews dataset.",
            "default": false
          },
          "reviewsSort": {
            "title": "Reviews sort",
            "enum": [
              "newest",
              "highestRanking",
              "lowestRanking",
              "mostRelevant"
            ],
            "type": "string",
            "description": "Sort order used when opening the Google Maps reviews panel.",
            "default": "newest"
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of reviews to extract for each place when review extraction is enabled.",
            "default": 10
          },
          "onlyNewSince": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Optional ISO date cutoff for reviews."
          },
          "includeReviewerPersonalData": {
            "title": "Include reviewer personal data",
            "type": "boolean",
            "description": "Disabled by default. Enable only when you have a lawful basis for processing reviewer personal data.",
            "default": false
          },
          "includeImages": {
            "title": "Extract images",
            "type": "boolean",
            "description": "Extract image URLs for each place into the images dataset.",
            "default": false
          },
          "maxImagesPerPlace": {
            "title": "Max images per place",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of image URLs to save per place when image extraction is enabled.",
            "default": 3
          },
          "blockResourceTypes": {
            "title": "Block browser resources",
            "type": "array",
            "description": "Resource types to block in Playwright to reduce bandwidth, proxy usage, and rendering cost. Images are automatically allowed when image extraction is enabled.",
            "default": [
              "image",
              "media",
              "font"
            ],
            "items": {
              "type": "string"
            }
          },
          "downloadImagesToKeyValueStore": {
            "title": "Download images",
            "type": "boolean",
            "description": "Download extracted images into the key-value store. This increases bandwidth and storage cost.",
            "default": false
          },
          "includePopularTimes": {
            "title": "Extract popular times",
            "type": "boolean",
            "description": "Try to extract popular-times and live-busyness signals from the place detail page.",
            "default": false
          },
          "includeQa": {
            "title": "Extract Q&A",
            "type": "boolean",
            "description": "Try to extract public questions and answers from the place detail page.",
            "default": false
          },
          "enableRecursiveTiling": {
            "title": "Enable GeoJSON tiling",
            "type": "boolean",
            "description": "Split GeoJSON areas into multiple map searches for better coverage. This increases runtime cost.",
            "default": false
          },
          "minTileRadiusKm": {
            "title": "Minimum tile radius",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Smallest radius used when generating GeoJSON search tiles.",
            "default": 1
          },
          "excludeClosed": {
            "title": "Exclude closed businesses",
            "type": "boolean",
            "description": "Skip businesses detected as temporarily or permanently closed.",
            "default": false
          },
          "dedupeStrategy": {
            "title": "Dedupe strategy",
            "enum": [
              "strict",
              "balanced",
              "aggressive"
            ],
            "type": "string",
            "description": "Controls how aggressively duplicate places are detected across overlapping searches.",
            "default": "balanced"
          },
          "contactEnrichment": {
            "title": "Website contact enrichment",
            "type": "object",
            "description": "Crawl business websites for public emails, phones, contact forms, social profiles, and JSON-LD.",
            "default": {
              "enabled": false,
              "crawlWebsite": false,
              "maxPagesPerWebsite": 1,
              "useProxyForWebsiteEnrichment": false,
              "extractEmails": true,
              "extractPhones": true,
              "extractSocialProfiles": true,
              "extractContactForms": true,
              "validateEmails": false
            }
          },
          "leadEnrichment": {
            "title": "Premium lead enrichment",
            "type": "object",
            "description": "Reserved provider interface for paid decision-maker enrichment.",
            "default": {
              "enabled": false
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. Residential or Google SERP-capable proxy groups are recommended for large runs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of browser requests processed at the same time.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum retry attempts for failed crawler requests.",
            "default": 1
          },
          "maxSearchScrolls": {
            "title": "Max search scrolls",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum scroll attempts per search page. Lower values reduce browser runtime and proxy bandwidth.",
            "default": 4
          },
          "stopSearchAfterNoNewResultsScrolls": {
            "title": "Stop after no-new-result scrolls",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Stop scrolling when this many consecutive scrolls add no new place URLs.",
            "default": 2
          },
          "saveDebugArtifacts": {
            "title": "Save debug artifacts",
            "type": "boolean",
            "description": "Save extra debug artifacts for troubleshooting. This can increase storage cost.",
            "default": false
          },
          "logLevel": {
            "title": "Log level",
            "enum": [
              "DEBUG",
              "INFO",
              "WARNING",
              "ERROR",
              "OFF"
            ],
            "type": "string",
            "description": "Minimum log level written during the Actor run.",
            "default": "INFO"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}