{
  "openapi": "3.0.1",
  "info": {
    "title": "Lead Qualifier: AI Lead Scoring for Google Maps & Any Lead List",
    "description": "Find out which leads will actually buy. Scores every business in your list (Google Maps Scraper results, CSV or websites) against what you sell, shows the evidence, and writes a personal opening line. AI lead scoring with no subscription.",
    "version": "0.0",
    "x-build-id": "u91AYJR7X047gA1zV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shariful-labs~lead-qualifier/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shariful-labs-lead-qualifier",
        "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/shariful-labs~lead-qualifier/runs": {
      "post": {
        "operationId": "runs-sync-shariful-labs-lead-qualifier",
        "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/shariful-labs~lead-qualifier/run-sync": {
      "post": {
        "operationId": "run-sync-shariful-labs-lead-qualifier",
        "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": [
          "offer"
        ],
        "properties": {
          "offer": {
            "title": "Your offer",
            "type": "string",
            "description": "In one or two sentences: what you sell and the problem it solves. Example: \"Online booking system for salons that still take appointments by phone.\""
          },
          "idealCustomer": {
            "title": "Your ideal customer (optional)",
            "type": "string",
            "description": "Who is a great fit and who is not. Example: \"Independent salons with 1-3 branches. Not big chains or businesses that already use Fresha.\""
          },
          "datasetIds": {
            "title": "Leads from an Apify dataset",
            "type": "array",
            "description": "Pick the results of Google Maps Scraper (or any Actor that outputs businesses). Names, websites, phones, ratings and reviews are read automatically."
          },
          "leads": {
            "title": "Leads as a list",
            "type": "array",
            "description": "Paste businesses as JSON objects. Useful fields: name, website, phone, email, city, category, rating, reviewsCount."
          },
          "websites": {
            "title": "Website addresses",
            "type": "array",
            "description": "Or simply list business websites, one per line.",
            "items": {
              "type": "string"
            }
          },
          "csvUrl": {
            "title": "CSV file link",
            "type": "string",
            "description": "Link to a CSV file (for example a Google Sheet published as CSV). Columns like Name, Website, Phone, Email, City are detected automatically."
          },
          "maxLeads": {
            "title": "Maximum businesses to check",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "You pay per business checked, so this caps your cost.",
            "default": 100
          },
          "messageLanguage": {
            "title": "Language for opening lines",
            "type": "string",
            "description": "Language of the suggested first message, e.g. English, Malay, Indonesian, Spanish.",
            "default": "English"
          },
          "senderContext": {
            "title": "About you (optional)",
            "type": "string",
            "description": "Your name and company, so opening lines can introduce you. Example: \"Aisha from BookEasy\"."
          },
          "useAi": {
            "title": "Use AI scoring",
            "type": "boolean",
            "description": "On: AI reads each business's evidence and judges fit (best quality, $0.03 per business). Off: fast rule-based checks only ($0.004 per business).",
            "default": true
          },
          "openaiApiKey": {
            "title": "Your own OpenAI API key (optional)",
            "type": "string",
            "description": "Leave empty to use the built-in AI. With your own key you pay a lower rate here ($0.008 per business) and OpenAI bills you directly for AI use. Stored encrypted."
          },
          "openaiBaseUrl": {
            "title": "AI endpoint for your key (optional)",
            "type": "string",
            "description": "Only with your own key. Any OpenAI-compatible endpoint, e.g. OpenRouter. Default: OpenAI."
          },
          "aiModel": {
            "title": "Model for your key (optional)",
            "type": "string",
            "description": "Only with your own key. Default: gpt-5.4-mini."
          },
          "maxPagesPerSite": {
            "title": "Pages to read per website",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Home page plus key pages (contact, booking, pricing, menu).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Only needed if many websites block visits.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}