{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper – Places, Phones, Websites & Ratings",
    "description": "Google Maps scraper and places API: every place of a search across a whole area, past the 120-result cap, or by place link. Name, address, phone, website, rating, reviews count, hours, categories, coordinates; optional description, photos and booking links. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "DPlFbskC77crSr7dD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-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/steadyscrape~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-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/steadyscrape~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What to search, as you would type it into Google Maps, one per line: <code>dentist</code>, <code>coffee shop</code>, <code>plumber</code>, <code>hotel</code>. Each term is searched in every location. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search, one per line: a city, area, postcode or address as you would type it into Google Maps (<code>Austin, TX</code>, <code>Shoreditch, London</code>, <code>78701</code>), or <code>latitude, longitude</code>. Up to 20. A place found by two searches is delivered and charged once.",
            "items": {
              "type": "string"
            }
          },
          "radius": {
            "title": "Radius",
            "minimum": 0.5,
            "maximum": 50,
            "type": "number",
            "description": "How far from each location's centre to look (0.5 to 50, in the unit below). The area is covered with a grid of map searches, so a big radius finds far more than the 120 to 240 places one Google Maps list shows. Places outside it are left out and never charged.",
            "default": 10
          },
          "distanceUnit": {
            "title": "Unit",
            "enum": [
              "km",
              "mi"
            ],
            "type": "string",
            "description": "The unit of the radius and of each place's distance from the centre.",
            "default": "km"
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search term in each location after this many places (1 to 5,000). The run's spending limit is respected too.",
            "default": 100
          },
          "places": {
            "title": "Place links or ids",
            "type": "array",
            "description": "Places you already know, one per line: a Google Maps place link (<code>…/maps/place/…</code>, <code>maps?cid=…</code>, <code>maps.app.goo.gl/…</code>), a place id (<code>ChIJ…</code>) or a CID. Up to 1,000. Search filters do not apply to them.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include place details",
            "type": "boolean",
            "description": "Read each place's own page too: the owner's description, Google's summary, plus code, rating histogram, photo count, main image, accessibility and highlights, booking, reservation and order links. Charged as <code>place-with-details</code> instead of <code>place</code>, and slower (one more request per place).",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only places rated at least this many stars (0 to 5). Empty: any rating, including none."
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only places with at least this many reviews. Empty: any."
          },
          "requirePhone": {
            "title": "Phone number required",
            "type": "boolean",
            "description": "Keep only places that show a phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Website required",
            "type": "boolean",
            "description": "Keep only places that show a website.",
            "default": false
          },
          "categoryFilter": {
            "title": "Categories to keep",
            "type": "array",
            "description": "Keep only places with a Google category containing one of these words (any case), e.g. <code>dentist</code>. Empty: every category the search returns.",
            "items": {
              "type": "string"
            }
          },
          "includeClosed": {
            "title": "Include closed places",
            "type": "boolean",
            "description": "Off: places Google Maps marks as closed are left out.",
            "default": false
          },
          "onlyNewPlaces": {
            "title": "Only new places",
            "type": "boolean",
            "description": "Skip places an earlier run of this Actor already delivered to you from a search (remembered in a storage of your own account). Skipped places are not charged. Turn it on for scheduled runs.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of categories and opening hours, as a code: <code>en</code>, <code>es</code>, <code>de</code>, <code>pt-BR</code>.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code Google answers for (<code>us</code>, <code>gb</code>, <code>au</code>); it also decides which city a short location name means.",
            "default": "us"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}