{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Search Scraper",
    "description": "[ 1k / 1$ ] Google Maps scraper: search places and local businesses by keyword and location and extract name, address, coordinates, rating, review count, categories, website, phone and opening hours, plus rating distribution, attributes, review topics and owner posts.",
    "version": "0.1",
    "x-build-id": "frphiVHSoHziwWa8J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~google-maps-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-google-maps-search-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/alpha-scraper~google-maps-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-google-maps-search-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/alpha-scraper~google-maps-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-google-maps-search-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": {
          "queries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "What to look for on Google Maps, the way you would type it into the search box. Put the place into the keyword (for example 'coffee shop new york' or 'dentist near Berlin'), or leave the place out and fill in 'Location' below. Every keyword is searched on its own and gets its own 'Max Items Per Keyword'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items Per Keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of places to extract per keyword. The Actor loads Google's result pages 20 places at a time until this number is reached or Google stops serving more (usually after roughly 120 to 160 places per search). Places removed by the minimum-rating filter do not count.",
            "default": 15
          },
          "locationQuery": {
            "title": "Location (optional)",
            "type": "string",
            "description": "A place that is appended to every keyword as '<keyword> in <location>', for example 'Brooklyn, New York' or 'Hamburg, Germany'. Leave empty if your keywords already contain the place. Without any place in the text, Google falls back to the location of the requesting IP address."
          },
          "minRating": {
            "title": "Minimum Rating (stars, optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep places whose Google rating is at least this many stars (0 to 5, decimals such as 4.5 are fine). Places without a rating are dropped when a minimum is set. The filter runs on the result list before details are fetched. Leave empty to keep everything."
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Language of the Google Maps interface and of text such as categories, descriptions and attributes, sent as Google's 'hl' parameter (for example en, de, fr, ja, pt-BR). Pick a code from the list or type another Google language code.",
            "default": "en"
          },
          "country": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Two-letter country code, lower-case, sent as Google's 'gl' parameter (for example us, gb, de, br). It biases ranking towards that country; the search area still comes mainly from the place in your keyword. Pick a code or type another one.",
            "default": "us"
          },
          "openingHours": {
            "title": "Include Opening Hours",
            "type": "boolean",
            "description": "Keep the weekly opening hours in each record ('openingHours', one entry per weekday). Turn off to leave the field out and make the records shorter; the current open status text stays.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch Place Detail Data",
            "type": "boolean",
            "description": "Call the place's own Google Maps detail request to add the 1-5 star rating distribution, the 'From the business' text, attribute groups (accessibility, service options, amenities), highlights, action labels (order online, reserve), review topics with mention counts, 'people also search for' places, the business's own posts, photo URLs, the Google Maps URL and the plus code. One extra request per place. Reviews and reviewer names are never read. Turn off for a faster run with the search-result fields only.",
            "default": true
          },
          "detailLimit": {
            "title": "Max Place Details Per Keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of places enriched per keyword. Places beyond the limit are still returned with the search-result fields and 'detailStatus' set to 'skipped'. 0 means no limit. Used only while 'Fetch Place Detail Data' is on.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}