{
  "openapi": "3.0.1",
  "info": {
    "title": "Niche B2B Lead Finder",
    "description": "Finds niche local B2B leads from Google Places and enriches each business with website emails, phones, social links, tech stack signals, and a confidence score.\nThe Actor discovers businesses through Google Places Text Search, then enriches each website for contact and buying signals.",
    "version": "0.1",
    "x-build-id": "UYslW79bL59SNWt70"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/prooflio~niche-b2b-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-prooflio-niche-b2b-lead-finder",
        "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/prooflio~niche-b2b-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-prooflio-niche-b2b-lead-finder",
        "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/prooflio~niche-b2b-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-prooflio-niche-b2b-lead-finder",
        "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": [
          "googlePlacesApiKey"
        ],
        "properties": {
          "googlePlacesApiKey": {
            "title": "Google Places API key",
            "type": "string",
            "description": "API key for the Google Places API Text Search endpoint. You can also set GOOGLE_PLACES_API_KEY as an Actor environment variable."
          },
          "niches": {
            "title": "Business niches",
            "type": "array",
            "description": "Verticals to search for. Each niche is combined with each location, e.g. 'dentists in Austin, TX'.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, states, regions, or countries to combine with the niche list.",
            "items": {
              "type": "string"
            }
          },
          "customQueries": {
            "title": "Custom search queries",
            "type": "array",
            "description": "Optional full Google Places Text Search queries. Useful for hyper-specific offers like 'pediatric dental clinics in Orange County CA'.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum Google Places results to request for each generated or custom query. Google Places Text Search supports up to about 60 per query.",
            "default": 50
          },
          "maxTotalLeads": {
            "title": "Max total leads",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Run-level cap across all queries after deduplication.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Website enrichment concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of business websites to enrich in parallel.",
            "default": 5
          },
          "includeWebsiteEnrichment": {
            "title": "Enrich business websites",
            "type": "boolean",
            "description": "Crawl each business website for emails, social links, contact pages, and tech stack signals.",
            "default": true
          },
          "maxWebsitePages": {
            "title": "Max website pages per business",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Homepage plus contact/about/booking/team pages discovered from the site.",
            "default": 4
          },
          "websiteTimeoutSecs": {
            "title": "Website timeout seconds",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Request timeout for each website page.",
            "default": 15
          },
          "verifyEmailDomains": {
            "title": "Verify email domains with MX",
            "type": "boolean",
            "description": "Check whether discovered email domains have MX records. This is domain-level verification, not paid mailbox validation.",
            "default": true
          },
          "minConfidenceScore": {
            "title": "Minimum confidence score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output leads at or above this score. Use 0 to keep every lead.",
            "default": 0
          },
          "includeServiceAreaBusinesses": {
            "title": "Include service-area businesses",
            "type": "boolean",
            "description": "Include businesses that serve an area but may not expose a storefront address.",
            "default": true
          },
          "languageCode": {
            "title": "Language code",
            "type": "string",
            "description": "Preferred result language, e.g. en, de, fr.",
            "default": "en"
          },
          "regionCode": {
            "title": "Region code",
            "type": "string",
            "description": "Optional two-letter CLDR region code to bias Google Places results, e.g. US, GB, CH.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy configuration used for business website enrichment requests."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}