{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper - Places, Leads, Phones, Websites & Emails",
    "description": "For lead generation and local market research: Google Maps businesses by keyword and city, postcode or coordinates - name, address, phone numbers, website, rating, reviews, open or closed. Optional emails and social links. Export CSV or Excel. Monitor mode returns only new or newly closed places.",
    "version": "0.1",
    "x-build-id": "cqfgyTjmJvShtzSi0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~google-maps-place-search-contacts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-google-maps-place-search-contacts",
        "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/neverempty~google-maps-place-search-contacts/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-google-maps-place-search-contacts",
        "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/neverempty~google-maps-place-search-contacts/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-google-maps-place-search-contacts",
        "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": "What to search for",
            "type": "array",
            "description": "What you would type into Google Maps, one per line: a kind of business (dentist, coffee shop, plumber, 歯医者) or a business name. Each term is searched in the area below. Up to 50 terms per run; a place found by two terms is returned once.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Area: city, district or postcode",
            "type": "string",
            "description": "Where to search, as you would write it on Google Maps: a city (Austin, TX), a district (渋谷, Tokyo), a postcode (78701) or a country. Leave empty when you give latitude and longitude instead."
          },
          "latitude": {
            "title": "Area: latitude of the centre",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Instead of a place name: the centre of a circle to search, for example 30.2672. Use together with longitude and radius. Places outside the circle are left out."
          },
          "longitude": {
            "title": "Area: longitude of the centre",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "The centre of the circle, for example -97.7431. Use together with latitude."
          },
          "radiusKm": {
            "title": "Area: radius in km",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "How far from the centre to search, from 0.1 to 50 km. Used only with latitude and longitude. If empty, 5 km. Each row has its distanceKm from the centre."
          },
          "maxPlacesPerSearch": {
            "title": "Most places per search term",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each search term after this many places, from 1 to 1,000. Large areas are searched in smaller pieces automatically to go past the first 200 or so results. If empty, 100."
          },
          "language": {
            "title": "Language of the results",
            "type": "string",
            "description": "Language code for categories, opening hours and addresses as Google Maps writes them: en, ja, de, fr, es, pt-BR and so on. If empty, en."
          },
          "countryCode": {
            "title": "Country of the search",
            "type": "string",
            "description": "Optional two-letter country code (us, jp, de, gb…) that tells Google Maps which country the search is from. Helps when a place name exists in several countries."
          },
          "includeContacts": {
            "title": "Add emails and social links from each place's website",
            "type": "boolean",
            "description": "For places that list a website on Google Maps, read up to three public pages of that website (the home page and its contact or about pages) and add the email addresses and Facebook, Instagram, LinkedIn, X, YouTube, TikTok and Pinterest links published there. The website's robots.txt is respected. Charged as contacts-found only when at least one email or social link was found.",
            "default": false
          },
          "skipClosedPlaces": {
            "title": "Leave out closed places",
            "type": "boolean",
            "description": "Leave out places that Google Maps marks as permanently or temporarily closed. They are not charged.",
            "default": false
          },
          "minRating": {
            "title": "Lowest star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only places rated at least this many stars (0 to 5, for example 4.5). Places without a rating are left out when this is set. Left-out places are not charged."
          },
          "onlyChanges": {
            "title": "Monitor mode: only new and newly closed places",
            "type": "boolean",
            "description": "Run this on a schedule to get only what changed: places that appear for your search for the first time and places that became closed since the last run with the same watch name. The first run of a search only remembers the places it finds as the starting point; it returns no place rows and charges nothing. Later runs charge the run start fee plus each new or newly closed place.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name of what monitor mode remembers (letters, digits, dot, dash, underscore; up to 40). Use a different name for each schedule. If empty, the name \"default\" is used."
          },
          "resetMonitoringState": {
            "title": "Forget what this watch remembered",
            "type": "boolean",
            "description": "Start this watch over: forget the remembered places before this run, so this run only remembers the starting point again.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}