{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Places API Alternative | Maps Data | $0.30 / 1K",
    "description": "Google Places API alternative for Google Maps data and local business leads: name, address, phone, website, rating, review count, categories, hours and coordinates. Optional emails from websites. $0.30 per 1,000 places. No login, no API key.",
    "version": "0.1",
    "x-build-id": "ps2RIhoSRgPeYrIK1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hridayrungta~google-maps-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hridayrungta-google-maps-places-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/hridayrungta~google-maps-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hridayrungta-google-maps-places-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/hridayrungta~google-maps-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hridayrungta-google-maps-places-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": {
          "searchStrings": {
            "title": "Search terms",
            "type": "array",
            "description": "What to look for, one per line: a business type or keyword such as dentist, coffee shop, plumber, yoga studio. Each term is searched in every location below.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, regions or addresses, one per line (Austin, TX, USA / Manchester, UK / 10115 Berlin). Google geocodes the text itself. Leave empty if your search terms already contain a place (\"dentists in Paris\").",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Maps search URLs",
            "type": "array",
            "description": "Optional. Paste Google Maps search pages (google.com/maps/search/pizza+in+rome/@41.9,12.5,13z). The search text and map position are read from the URL. Place pages and short links are not supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each search term + location pair after this many places. One Google Maps window returns at most about 230 places; to go beyond that set a radius below.",
            "default": 100
          },
          "maxItems": {
            "title": "Max places in total",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Cost cap for the whole run: the run writes at most this many places across all searches.",
            "default": 1000
          },
          "radiusKm": {
            "title": "Cover a whole area (radius, km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "0 = one Google Maps window (up to about 230 places per search). Above 0 the Actor tiles the area around the location with many overlapping windows and de-duplicates by place, so a whole city can be covered. Only places inside the radius are kept.",
            "default": 0
          },
          "tileZoom": {
            "title": "Tile zoom (area mode)",
            "minimum": 12,
            "maximum": 17,
            "type": "integer",
            "description": "How small each window is when a radius is set: 15 = about 2 km windows (balanced), 16 = about 1 km windows (more places in dense city centres, more requests), 14 = about 4 km (rural areas).",
            "default": 15
          },
          "maxTilesPerSearch": {
            "title": "Max windows per search (area mode)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on how many map windows are requested for one search when a radius is set. Searching stops early after 12 windows in a row with nothing new.",
            "default": 30
          },
          "latitude": {
            "title": "Custom centre: latitude",
            "type": "number",
            "description": "Optional. Search around exact coordinates instead of (or as well as) a text location. Use together with longitude."
          },
          "longitude": {
            "title": "Custom centre: longitude",
            "type": "number",
            "description": "Optional. Longitude of the custom centre."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only places with at least this star rating (0 = no filter). Free: filters never cost extra.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only places with at least this many Google reviews (0 = no filter).",
            "default": 0
          },
          "requireWebsite": {
            "title": "Only places with a website",
            "type": "boolean",
            "description": "Skip places that list no website.",
            "default": false
          },
          "requirePhone": {
            "title": "Only places with a phone number",
            "type": "boolean",
            "description": "Skip places that list no phone number.",
            "default": false
          },
          "categoryFilter": {
            "title": "Category must contain",
            "type": "array",
            "description": "Optional, one per line. Keep only places whose Google category contains one of these words (for example: dentist, orthodontist). Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "enrichContactInfo": {
            "title": "Enrich with website contacts",
            "type": "boolean",
            "description": "Visit each place's own website (homepage plus a few contact/about pages) and add emails, extra phone numbers and social profile links. Billed per place where something was found; failed or empty lookups are free.",
            "default": false
          },
          "maxPagesPerWebsite": {
            "title": "Pages per website (enrichment)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Homepage plus up to this many pages in total (contact, about, team...). 1 = homepage only.",
            "default": 3
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of the Google Maps interface: category names and address format follow it (en, de, fr, es, pt, it, ja...).",
            "default": "en"
          },
          "countryCode": {
            "title": "Country (Google region)",
            "type": "string",
            "description": "2-letter region code sent to Google (us, gb, de, in, au...). It nudges ranking and result language toward that country.",
            "default": "us"
          },
          "useProxy": {
            "title": "Proxy",
            "enum": [
              "onBlock",
              "always",
              "never"
            ],
            "type": "string",
            "description": "\"On block\" requests Google Maps directly and falls back to Apify datacenter proxy (fresh IP per attempt) only when Google refuses a request. \"Always\" uses the proxy for every request (slower). \"Never\" never uses a proxy.",
            "default": "onBlock"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}