{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Leads Scraper: Emails, Phones, No-Website Filter",
    "description": "Google Maps scraper for business leads: name, phone, address, rating, reviews, website, emails and social profiles per place. Filters for no website, has email, has phone, minimum rating. Grid mode passes the 120-per-search cap. $0.40 per 1,000 places, +$0.30 with emails or socials; failures free.",
    "version": "0.2",
    "x-build-id": "BW1TyARzI4CLkf5Th"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-for-agents~google-maps-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-for-agents-google-maps-leads",
        "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/data-for-agents~google-maps-leads/runs": {
      "post": {
        "operationId": "runs-sync-data-for-agents-google-maps-leads",
        "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/data-for-agents~google-maps-leads/run-sync": {
      "post": {
        "operationId": "run-sync-data-for-agents-google-maps-leads",
        "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",
        "required": [
          "searchTerms"
        ],
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "What to search on Google Maps, one entry each, for example plumber or dentist. Each term runs once per location.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "maxItems": 100,
            "type": "array",
            "description": "Cities or areas, for example Austin, TX. Leave empty to put the place in the search term itself, for example plumber in Austin TX.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Places per search term and location (or per map tile in grid mode). Google shows about 120 per search at most; use grid size for more. Example: 20.",
            "default": 20
          },
          "maxResults": {
            "title": "Max results in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many places in total, after filters. Empty: no limit. Example: 100."
          },
          "gridSize": {
            "title": "Grid size (more results per city)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Split each location into N x N map tiles and search each one, with duplicates removed. 1 is off. 3 runs 9 searches per term. Needs locations.",
            "default": 1
          },
          "scrapeContacts": {
            "title": "Emails and social profiles",
            "type": "boolean",
            "description": "Visit each business website for emails and Instagram, Facebook, LinkedIn, TikTok, YouTube and X links. Only emails the business publishes on its site are found.",
            "default": true
          },
          "verifyEmails": {
            "title": "Check email domains (MX)",
            "type": "boolean",
            "description": "Check that each email's domain can receive mail. This is a DNS check, not a mailbox check.",
            "default": false
          },
          "detectTech": {
            "title": "Website tech flags",
            "type": "boolean",
            "description": "Flag each website's platform and basics, useful for web design and marketing agencies.",
            "default": false
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Also return up to this many reviews per place (1-5: the reviews Google shows first, without reviewer names). Charged per review returned. 0 is off.",
            "default": 0
          },
          "maxImages": {
            "title": "Photos per place (add-on)",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Also return photo links from each place's photos view, up to this many (1-20; Google shows about 10 per place). Charged per place that gets photos. Adds the gallery_photos column. 0 is off.",
            "default": 0
          },
          "fullDetails": {
            "title": "All place fields (add-on)",
            "type": "boolean",
            "description": "Also return every other field: opening hours, place ID, coordinates, Maps link, popular times and more, about 40 in all. Charged per place as the 'Place with details' add-on.",
            "default": false
          },
          "onlyWithoutWebsite": {
            "title": "Only businesses with no website",
            "type": "boolean",
            "description": "Keep only businesses that list no website: prospects for web design agencies.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only rows with an email",
            "type": "boolean",
            "description": "Keep only businesses whose website published an email. Needs Emails and social profiles on.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only rows with a phone number",
            "type": "boolean",
            "description": "Keep only businesses that list a phone number on Google Maps.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "pattern": "^$|^([0-4](\\.[0-9])?|5(\\.0)?)$",
            "type": "string",
            "description": "Keep places rated at least this, from 0 to 5. Example: 4.5."
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Keep places with at least this many Google reviews."
          },
          "language": {
            "title": "Language",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter language code for Google Maps results, for example en or de.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "pattern": "^$|^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code, for example us. Sets the country Google ranks and labels results for: without it, category names follow the proxy's country (an Austin search can come back with British spellings such as Tyre Shop)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}