{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Contact Finder & Lead Scorer",
    "description": "Give it company websites or a Google Maps dataset; get back emails, phones, contact forms and social profiles per site, plus a 0-100 website-quality score with reasons. Flat $0.003 per website with contacts found, never per page; sites with no contacts are free.",
    "version": "0.2",
    "x-build-id": "GjRYrWBT9ivvdeImi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nathanb23~website-lead-scorer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nathanb23-website-lead-scorer",
        "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/nathanb23~website-lead-scorer/runs": {
      "post": {
        "operationId": "runs-sync-nathanb23-website-lead-scorer",
        "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/nathanb23~website-lead-scorer/run-sync": {
      "post": {
        "operationId": "run-sync-nathanb23-website-lead-scorer",
        "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": {
          "websites": {
            "title": "Websites",
            "type": "array",
            "description": "Company websites to find contacts on, one per line. Full URLs or bare domains, e.g. [\"https://acmeplumbing.com\", \"bobsdiner.com\"]. Duplicate domains are checked once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "businesses": {
            "title": "Businesses (JSON)",
            "type": "array",
            "description": "Optional. Business objects, e.g. Google Maps Scraper rows: [{\"title\": \"Acme Plumbing\", \"website\": \"https://acmeplumbing.com\", \"phone\": \"(864) 555-0100\"}]. Needs website or url; name/title, phone, address, city, state, categoryName, totalScore, reviewsCount and placeId are copied to the output. Rows without a website become 'no-website' leads.",
            "default": []
          },
          "googleMapsDatasetId": {
            "title": "Google Maps Scraper dataset ID",
            "type": "string",
            "description": "Optional. ID of a dataset from a Google Maps Scraper run (or any dataset with a website field), e.g. \"aBcD1234eFgH5678i\". Every row is processed like an entry in Businesses."
          },
          "maxContactPagesPerSite": {
            "title": "Contact pages per site",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Besides the homepage, how many same-site pages that look like contact, about, team, locations or impressum pages to read, e.g. 3. Range 0-8. More pages find more contacts but take longer; the price per website stays the same.",
            "default": 3
          },
          "includeWebsiteScore": {
            "title": "Include website score",
            "type": "boolean",
            "description": "Add a 0-100 'needs a new website' score with reasons (mobile, SSL, speed, outdated copyright, DIY builder...). Set false for contacts only, e.g. false. Price is the same either way.",
            "default": true
          },
          "compactOutput": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Return only contact fields plus the score and reasons (17 fields per row), e.g. true for AI agents or quick exports. False returns every field, including the full website audit.",
            "default": false
          },
          "includeBusinessesWithoutWebsite": {
            "title": "Include businesses with no website",
            "type": "boolean",
            "description": "Output businesses from Businesses or the Google Maps dataset that have no website, or only a Facebook/Yelp page, e.g. true. Each costs the small no-website-lead price; set false to skip them.",
            "default": true
          },
          "maxSites": {
            "title": "Max businesses",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many businesses, e.g. 50 for a test run. 0 means no limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many requests run in parallel across different sites, e.g. 10. Each single site is still fetched politely: one request at a time, at least 1 second apart.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Seconds to wait for a page before the site counts as unreachable, e.g. 20.",
            "default": 20
          },
          "userAgent": {
            "title": "User agent",
            "type": "string",
            "description": "User-Agent header sent to websites. The default identifies the tool honestly. robots.txt rules for 'WebsiteLeadScorer' and '*' are always obeyed.",
            "default": "Mozilla/5.0 (compatible; WebsiteLeadScorer/1.0; +https://apify.com)"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Usually not needed: small-business sites rarely block. Proxies don't bypass robots.txt or CAPTCHAs, e.g. {\"useApifyProxy\": false}.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}