{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Business & Company Data Scraper",
    "description": "Find businesses by keyword and region on Google Maps. Extract company names, websites, phone numbers, addresses, ratings, review counts, categories, coordinates, and Maps URLs—no Places API key required.",
    "version": "0.1",
    "x-build-id": "n28wIzZCCqqavLWMc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gtgyani206~maps-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gtgyani206-maps-company-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/gtgyani206~maps-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gtgyani206-maps-company-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/gtgyani206~maps-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gtgyani206-maps-company-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "searchTerms",
          "region"
        ],
        "properties": {
          "searchTerms": {
            "title": "Company search terms",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "One or more company types or keywords. Each term is searched inside the selected region.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "default": [
              "AI companies"
            ]
          },
          "region": {
            "title": "Region",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "City, district, state, or country in which Google Maps should search.",
            "default": "Gurugram, Haryana, India"
          },
          "maxResults": {
            "title": "Maximum saved companies",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of unique company records saved after filters are applied.",
            "default": 100
          },
          "maxSearchResultsPerQuery": {
            "title": "Maximum candidates per search term",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum Google Maps listing links collected from each search term before detail extraction.",
            "default": 150
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Exclude businesses with no rating or a rating below this value. Use 0 to keep unrated listings.",
            "default": 0
          },
          "requireWebsite": {
            "title": "Require website",
            "type": "boolean",
            "description": "Only save businesses whose Google Maps listing includes a website.",
            "default": false
          },
          "requirePhone": {
            "title": "Require phone number",
            "type": "boolean",
            "description": "Only save businesses whose Google Maps listing includes a phone number.",
            "default": false
          },
          "languageCode": {
            "title": "Google Maps language",
            "minLength": 2,
            "maxLength": 6,
            "type": "string",
            "description": "Language tag used for Maps content, such as en, hi, or en-US.",
            "default": "en"
          },
          "regionCode": {
            "title": "Country code",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter country code used to localize Google Maps search results.",
            "default": "IN"
          },
          "includeOpeningHours": {
            "title": "Extract opening hours",
            "type": "boolean",
            "description": "Expand and extract the weekly opening-hours table when it is available.",
            "default": true
          },
          "includeAdditionalInfo": {
            "title": "Extract additional information",
            "type": "boolean",
            "description": "Extract public About-tab attributes such as service options, accessibility, and amenities when available.",
            "default": true
          },
          "includeImages": {
            "title": "Extract primary image",
            "type": "boolean",
            "description": "Save the primary public image URL shown on the Google Maps listing.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Detail-page concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of Google Maps place pages processed in parallel. Keep this low to reduce blocking.",
            "default": 2
          },
          "maxRequestsPerMinute": {
            "title": "Maximum requests per minute",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Crawler-level rate limit across search and detail pages.",
            "default": 30
          },
          "maxRequestRetries": {
            "title": "Maximum request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of retries for failed or blocked page requests. Retries use exponential backoff and fresh sessions.",
            "default": 3
          },
          "maxScrollAttempts": {
            "title": "Maximum search-feed scrolls",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum scroll actions for each Google Maps result feed.",
            "default": 50
          },
          "scrollDelayMs": {
            "title": "Delay between feed scrolls",
            "minimum": 250,
            "maximum": 10000,
            "type": "integer",
            "description": "Base delay in milliseconds between Google Maps result-feed scrolls. Random jitter is added automatically.",
            "default": 1200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy rotation. Residential proxies are usually more reliable for larger Google Maps runs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}