{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Tech Stack & Lead Enrichment",
    "description": "Finds public Google Maps business listings and optionally visits each public website for emails, social links, and deterministic technology signals.",
    "version": "0.1",
    "x-build-id": "2eJX9U9q4xnCttsNk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laced_kirtan~google-maps-tech-stack-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laced_kirtan-google-maps-tech-stack-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/laced_kirtan~google-maps-tech-stack-leads/runs": {
      "post": {
        "operationId": "runs-sync-laced_kirtan-google-maps-tech-stack-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/laced_kirtan~google-maps-tech-stack-leads/run-sync": {
      "post": {
        "operationId": "run-sync-laced_kirtan-google-maps-tech-stack-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": [
          "searchKeywords"
        ],
        "properties": {
          "searchKeywords": {
            "title": "Search keywords",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Add one Google Maps search phrase per item, such as pao bhaji in Bhilai or dental clinics in Pune. In the full JSON editor, this value must be an array; do not paste the surrounding input object into this field.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 200
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard run-level cap on emitted business records.",
            "default": 100
          },
          "deepCrawlWebsites": {
            "title": "Deep-crawl websites",
            "type": "boolean",
            "description": "Follow a small bounded number of same-site links for contact and technology signals.",
            "default": true
          },
          "detectTechStack": {
            "title": "Detect technology stack",
            "type": "boolean",
            "description": "Detect technology markers from public HTML, scripts, meta tags, and response headers.",
            "default": true
          },
          "maxWebsitePages": {
            "title": "Maximum website pages",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum pages inspected per business website; the first page is always included when a website exists.",
            "default": 3
          },
          "maxKeywords": {
            "title": "Maximum searches",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety cap on distinct keyword searches processed in one run.",
            "default": 25
          },
          "maxPagesPerKeyword": {
            "title": "Maximum result pages per keyword",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum lightweight Google Maps result pages requested for each keyword. Each page can expose up to about 20 businesses; pagination stops early when Google returns no new places.",
            "default": 5
          },
          "languageCode": {
            "title": "Google language code",
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2})?$",
            "type": "string",
            "description": "Two- or three-letter result language code, for example en, hi, or es.",
            "default": "en"
          },
          "countryCode": {
            "title": "Google country code",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country used to localize Google results, for example in, us, or gb.",
            "default": "us"
          },
          "maxRetries": {
            "title": "Retries per Google result page",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Bounded retries after failed or challenged Google result-page requests. A fresh proxy session is used for each attempt when proxying is enabled; CAPTCHAs are detected but never solved or bypassed.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Google result-page proxy",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxy URLs for Google result pages only. Website enrichment stays direct. Residential proxy access can improve availability but adds proxy traffic cost."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per public HTML request.",
            "default": 25
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 100000,
            "maximum": 12000000,
            "type": "integer",
            "description": "Reject oversized pages before parsing them to protect memory.",
            "default": 6000000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}