{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead Scraper & SMB Audit",
    "description": null,
    "version": "0.0",
    "x-build-id": "T7oXvETYtpsnXqfAj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/syzen~APIFY/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-syzen-APIFY",
        "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/syzen~APIFY/runs": {
      "post": {
        "operationId": "runs-sync-syzen-APIFY",
        "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/syzen~APIFY/run-sync": {
      "post": {
        "operationId": "run-sync-syzen-APIFY",
        "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": "Kata kunci pencarian",
            "type": "array",
            "description": "Satu atau beberapa kata kunci. Contoh: 'Kopi', 'laundry', 'bengkel motor'. Actor akan menggabungkan tiap kata kunci dengan nilai Lokasi di bawah.",
            "default": [
              "Kopi"
            ],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Kota / area pencarian",
            "type": "string",
            "description": "Nama kota yang jadi titik tengah pemindaian, contoh 'Bandar Lampung' atau 'Jakarta'. Dicocokkan ke tabel kota offline (Indonesia + kota besar dunia, ~800 nama), jadi tidak perlu mencari koordinat sendiri. Tulis 'Kota, Negara' kalau nama-nya bentrok, contoh 'San Jose, United States'. Nama yang tidak ada di tabel akan ditolak, bukan ditebak diam-diam. Kalau diisi Latitude dan Longitude, keduanya mengabaikan nilai ini.",
            "default": "Bandar Lampung"
          },
          "lat": {
            "title": "Latitude (opsional)",
            "type": "number",
            "description": "Kosongkan kecuali sudah tahu persis koordinat yang diinginkan. Kalau diisi, wajib berpasangan dengan Longitude, dan nilai Lokasi diabaikan sebagai pusat."
          },
          "lng": {
            "title": "Longitude (opsional)",
            "type": "number",
            "description": "Kosongkan kecuali sudah tahu persis koordinat yang diinginkan. Kalau diisi, wajib berpasangan dengan Latitude. Contoh Jakarta: lat -6.2088, lng 106.8456."
          },
          "radiusKm": {
            "title": "Radius pencarian (km)",
            "minimum": 0.1,
            "maximum": 200,
            "type": "number",
            "description": "Radius dari titik tengah. Makin besar = makin banyak hasil, makin lambat.",
            "default": 30
          },
          "maxItems": {
            "title": "Maksimum hasil per kata kunci",
            "minimum": 1,
            "maximum": 480,
            "type": "integer",
            "description": "Batas jumlah hasil yang dikembalikan per kata kunci.",
            "default": 20
          },
          "language": {
            "title": "Bahasa hasil",
            "type": "string",
            "description": "Kode bahasa respons Google, contoh 'id' atau 'en'.",
            "default": "id"
          },
          "countryCode": {
            "title": "Kode negara",
            "type": "string",
            "description": "Kode negara respons Google, contoh 'id' atau 'us'.",
            "default": "id"
          },
          "onlyGapLeads": {
            "title": "Hanya lead yang punya celah digital",
            "type": "boolean",
            "description": "Jika true, hanya hasil yang tidak punya website sendiri DAN punya nomor telepon yang dikembalikan. Ini yang Anda butuhkan untuk lead generation.",
            "default": true
          },
          "minGapScore": {
            "title": "Skor minimum",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Buang lead dengan skor di bawah nilai ini (0-100).",
            "default": 0
          },
          "includeUnproven": {
            "title": "Sertakan bisnis tanpa rating",
            "type": "boolean",
            "description": "Jika true, bisnis yang belum punya ulasan Google ikut disertakan. Default false karena belum terbukti.",
            "default": false
          },
          "includeRaw": {
            "title": "Sertakan semua hasil (bukan hanya lead)",
            "type": "boolean",
            "description": "Jika true, semua tempat dikembalikan beserta penanda gapScore, sehingga Anda bisa menyaring sendiri di luar actor.",
            "default": false
          },
          "debugDump": {
            "title": "Simpan respons mentah",
            "type": "boolean",
            "description": "Simpan payload Google apa adanya ke storage. Nyalakan hanya kalau hasil terlihat aneh.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}