{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper",
    "description": "Extract comprehensive business data from Google Maps, including ratings, emails, social media profiles, photos, and operational details. Perfect for market research and lead generation.",
    "version": "0.0",
    "x-build-id": "oL5JGxNRKQyMkV9pk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-ninja~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-ninja-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/api-ninja~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-ninja-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/api-ninja~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-ninja-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": {
          "textQuery": {
            "title": "🔍 Search Query",
            "type": "string",
            "description": "Business keyword or category to search for, such as 'best pizza', 'hotels', or 'plumbers'. Either Search Query or Location must be provided."
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "City, region, address, or country to search, such as 'New York, NY' or 'Kyiv, Ukraine'. When no explicit coordinates are supplied, the Actor geocodes this location into a bounding box."
          },
          "includeContacts": {
            "title": "📩 Include Emails & Social Profiles",
            "type": "boolean",
            "description": "Extract emails and social profile links from each business website. This takes longer, may return no contacts for some businesses, and applies an additional per-result contact-enrichment charge.",
            "default": false
          },
          "maxResultCount": {
            "title": "🎯 Maximum Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of unique businesses to save. Ignored when Scrape All Places is enabled.",
            "default": 40
          },
          "scrapeAllPlaces": {
            "title": "Scrape All Places",
            "type": "boolean",
            "description": "Search the full resolved area using recursive subdivision. This can use substantially more provider credits and ignores Maximum Results.",
            "default": false
          },
          "subtypes": {
            "title": "🏷️ Business Subtypes",
            "type": "array",
            "description": "Optional business categories such as 'Pizza restaurant', 'Hotel', or 'Plumber'.",
            "items": {
              "type": "string"
            }
          },
          "verified": {
            "title": "✅ Verified Businesses Only",
            "type": "boolean",
            "description": "Return only businesses marked as verified."
          },
          "businessStatus": {
            "title": "🚪 Business Status",
            "type": "array",
            "description": "Restrict results to one or more business statuses.",
            "items": {
              "type": "string",
              "enum": [
                "OPEN",
                "CLOSED_TEMPORARILY",
                "CLOSED"
              ],
              "enumTitles": [
                "Open",
                "Temporarily closed",
                "Closed"
              ]
            }
          },
          "latitude": {
            "title": "📌 Center Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional center latitude. Must be supplied together with Center Longitude."
          },
          "longitude": {
            "title": "📌 Center Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional center longitude. Must be supplied together with Center Latitude."
          },
          "radiusMeters": {
            "title": "⭕ Search Radius (meters)",
            "minimum": 1,
            "type": "integer",
            "description": "Radius around the center coordinates. Defaults to 25,000 meters.",
            "default": 25000
          },
          "north": {
            "title": "⬆️ Bounding Box North",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern latitude of an exact bounding box. Supply all four bounding-box values or leave all four empty."
          },
          "south": {
            "title": "⬇️ Bounding Box South",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern latitude of an exact bounding box."
          },
          "east": {
            "title": "➡️ Bounding Box East",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Eastern longitude of an exact bounding box."
          },
          "west": {
            "title": "⬅️ Bounding Box West",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Western longitude of an exact bounding box."
          },
          "resultsPerRequest": {
            "title": "📦 Results Per Area Request",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Advanced. Lower values trigger subdivision sooner and can improve coverage, but use more requests. The recommended default is 100.",
            "default": 100
          },
          "maxDepth": {
            "title": "🌳 Maximum Split Depth",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Advanced. Maximum recursive subdivision depth. Higher values can improve dense-area coverage but greatly increase usage.",
            "default": 8
          },
          "maxAreas": {
            "title": "🛡️ Maximum Area Requests",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety ceiling for area requests, especially during exhaustive searches. Increase carefully because provider usage is metered.",
            "default": 2000
          },
          "languageCode": {
            "title": "🌐 Result Language",
            "pattern": "^[a-z]{2}$",
            "type": "string",
            "description": "Two-letter ISO 639-1 language code for returned data, such as 'en', 'uk', 'de', or 'fr'.",
            "default": "en"
          },
          "regionCode": {
            "title": "🌍 Search Region",
            "pattern": "^[A-Z]{2}$",
            "type": "string",
            "description": "Optional two-letter ISO 3166-1 country code used to bias the search, such as 'US', 'UA', 'DE', or 'FR'. When Location is geocoded, its country code is used automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}