{
  "openapi": "3.0.1",
  "info": {
    "title": "Indonesia Business Lead Intelligence",
    "description": "Find, enrich, score, and prioritize Indonesian business leads from Google Maps. Get normalized +62 phone numbers, WhatsApp-ready contacts, Indonesian address intelligence, ratings, lead scores, opportunity scores, and AI-ready CRM data.",
    "version": "0.0",
    "x-build-id": "jEiKVpy2fkBVKTK06"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/devan_ziho~indonesia-business-lead-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-devan_ziho-indonesia-business-lead-intelligence",
        "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/devan_ziho~indonesia-business-lead-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-devan_ziho-indonesia-business-lead-intelligence",
        "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/devan_ziho~indonesia-business-lead-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-devan_ziho-indonesia-business-lead-intelligence",
        "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": [
          "search_queries"
        ],
        "properties": {
          "search_queries": {
            "title": "Business search queries",
            "type": "array",
            "description": "What businesses do you want to find? Example: coffee shops, dental clinics, beauty clinics, car dealers.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Indonesian city or area to search.",
            "default": "Surabaya, Indonesia"
          },
          "max_results_per_query": {
            "title": "Maximum leads per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum Google Maps places to collect for each search query.",
            "default": 50
          },
          "language": {
            "title": "Result language",
            "enum": [
              "id",
              "en"
            ],
            "type": "string",
            "description": "Language used for Google Maps result details.",
            "default": "id"
          },
          "min_rating": {
            "title": "Minimum Google rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional minimum business rating.",
            "default": 0
          },
          "min_reviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep businesses with at least this many Google reviews.",
            "default": 0
          },
          "require_phone": {
            "title": "Require phone number",
            "type": "boolean",
            "description": "Only return businesses that have a phone number.",
            "default": false
          },
          "require_website": {
            "title": "Require website",
            "type": "boolean",
            "description": "Only return businesses that have a website.",
            "default": false
          },
          "require_email": {
            "title": "Require email",
            "type": "boolean",
            "description": "Only return businesses with an extracted email. Enabling this also activates upstream contact enrichment.",
            "default": false
          },
          "only_open": {
            "title": "Skip closed businesses",
            "type": "boolean",
            "description": "Skip businesses marked as temporarily or permanently closed.",
            "default": true
          },
          "normalize_phone": {
            "title": "Normalize Indonesian phone numbers",
            "type": "boolean",
            "description": "Convert Indonesian phone numbers such as 0812... into international +62 format.",
            "default": true
          },
          "normalize_indonesian_address": {
            "title": "Normalize Indonesian addresses",
            "type": "boolean",
            "description": "Use Indonesia Address Parser & Normalizer to resolve province, city/regency, district, and village where possible.",
            "default": true
          },
          "deduplicate": {
            "title": "Remove duplicate businesses",
            "type": "boolean",
            "description": "Automatically remove duplicate Google Maps businesses.",
            "default": true
          },
          "enrich_contacts": {
            "title": "Enrich website contacts",
            "type": "boolean",
            "description": "Ask the Google Maps upstream Actor to extract business emails and social links from websites. This may increase upstream processing cost.",
            "default": false
          },
          "include_social_profiles": {
            "title": "Deep social profile enrichment",
            "type": "boolean",
            "description": "Enrich discovered Facebook, Instagram, YouTube, TikTok and X profiles. This is an optional upstream paid add-on and may increase cost.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}