{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Contact Leads: Emails, Phones & Websites",
    "description": "Turn one or many Google Maps business searches into a deduplicated first-party contact list with public listing details, homepage contacts, social links, and conservative website-opportunity evidence.",
    "version": "3.3",
    "x-build-id": "xPpblw07EwfdBjCDT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~google-maps-contact-website-opportunity-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-google-maps-contact-website-opportunity-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/luminar~google-maps-contact-website-opportunity-leads/runs": {
      "post": {
        "operationId": "runs-sync-luminar-google-maps-contact-website-opportunity-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/luminar~google-maps-contact-website-opportunity-leads/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-google-maps-contact-website-opportunity-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",
        "properties": {
          "targetingMode": {
            "title": "How do you want to target businesses?",
            "enum": [
              "search",
              "direct"
            ],
            "type": "string",
            "description": "Search mode builds broad local lists. Direct mode checks only the exact official Google Maps places you supply.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Business type or search",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "What do you want to find? Examples: dentists, roofing companies, mobile welders, or apartment agencies.",
            "default": "restaurant"
          },
          "locationQuery": {
            "title": "Location",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "City, region, county, postal code, country, or service area. Examples: Austin, TX; Berlin, Germany; Tivat, Montenegro.",
            "default": "New York, USA"
          },
          "maxPlaces": {
            "title": "Maximum businesses in this run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total unique businesses to return across every search, from 1 to 1,000. Start with 5-10. A higher cap can require more first-party source work, homepage checks, runtime, and paid delivered rows.",
            "default": 10
          },
          "maxPlacesPerSearch": {
            "title": "Maximum businesses per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stops one query-location pair from consuming the whole run. Values above 20 can require additional Google Maps result pages.",
            "default": 20
          },
          "moreSearchQueries": {
            "title": "More business types",
            "maxItems": 9,
            "type": "array",
            "description": "Add up to 9 more searches. Up to 10 total business types are combined, and duplicate Google place identities are merged before delivery.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "moreLocations": {
            "title": "More locations",
            "maxItems": 9,
            "type": "array",
            "description": "Add up to 9 more cities, regions, counties, postal codes, countries, or service areas. Each business type is paired with each location, within the 20-task guard.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "directPlaceTargets": {
            "title": "Google Place IDs or Maps URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Used only in direct mode. Paste up to 1,000 Google Place IDs or full HTTPS google.com/maps URLs. Each unique target receives the complete listing and homepage-contact workflow. Short links and non-Google URLs are rejected.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchLatitude": {
            "title": "Map center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional search-mode map center. Supply latitude and longitude together when text location alone is too broad."
          },
          "searchLongitude": {
            "title": "Map center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude paired with the optional latitude."
          },
          "searchZoom": {
            "title": "Map zoom",
            "minimum": 3,
            "maximum": 21,
            "type": "integer",
            "description": "Viewport zoom used only when both coordinates are supplied. Default is 13."
          },
          "customSearchArea": {
            "title": "Custom search area",
            "type": "object",
            "description": "Optional GeoJSON Polygon with [longitude, latitude] coordinate pairs. The Actor chooses a small deterministic set of official Maps centers inside it. Use this instead of latitude/longitude."
          },
          "searchAreaGridSize": {
            "title": "Search points inside the custom area",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of deterministic Maps centers inside the polygon, from 1 to 9. Four is used when omitted. More centers improve area coverage but increase source work."
          },
          "language": {
            "title": "Results language",
            "type": "string",
            "description": "Language used for business names, categories, and addresses. Use a code such as en, de, es, or pt-BR.",
            "default": "en"
          },
          "countryCode": {
            "title": "Search country",
            "type": "string",
            "description": "Two-letter country code such as US, DE, or ME. It keeps the requested market and repeated results comparable.",
            "default": "US"
          },
          "websitePresence": {
            "title": "Website presence",
            "enum": [
              "any",
              "with_website",
              "without_website"
            ],
            "type": "string",
            "description": "Keep only businesses with or without a website. Dropped businesses are not delivered or charged, but restrictive filters can require more source pages.",
            "default": "any"
          },
          "minimumRating": {
            "title": "Minimum Google rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only businesses rated at least this many stars. Zero keeps all ratings. Listings without a published rating are removed when this is above zero.",
            "default": 0
          },
          "categoryKeywords": {
            "title": "Category must contain",
            "maxItems": 20,
            "type": "array",
            "description": "Keep businesses whose Google category contains at least one supplied word, for example dentist or clinic. Leave empty to keep every category.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nameMustInclude": {
            "title": "Name must contain",
            "maxLength": 60,
            "type": "string",
            "description": "Optional case-insensitive business-name filter. Useful for a brand or franchise; leave empty for broad discovery.",
            "default": ""
          },
          "skipClosedPlaces": {
            "title": "Keep only listings not marked closed",
            "type": "boolean",
            "description": "When enabled, removes a listing only when Google explicitly marks it temporarily or permanently closed. Missing status is never guessed to mean open.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}