{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Website Lead Scoring & ICP Fit",
    "description": "B2B website lead scoring + company enrichment API for CRM enrichment, ICP fit, ABM/account research, Clay/Apollo/HubSpot/Salesforce, MCP/x402 AI agents. No contacts.",
    "version": "0.1",
    "x-build-id": "RoPgdnFA35otP92af"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jorokotev~public-website-lead-fit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jorokotev-public-website-lead-fit",
        "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/jorokotev~public-website-lead-fit/runs": {
      "post": {
        "operationId": "runs-sync-jorokotev-public-website-lead-fit",
        "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/jorokotev~public-website-lead-fit/run-sync": {
      "post": {
        "operationId": "run-sync-jorokotev-public-website-lead-fit",
        "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": [
          "source"
        ],
        "properties": {
          "source": {
            "title": "Source mode",
            "enum": [
              "sample",
              "urls"
            ],
            "type": "string",
            "description": "Use sample mode for testing or URL mode to score public company website URLs. URL mode fetches only the URLs you provide, with strict caps.",
            "default": "sample"
          },
          "startUrls": {
            "title": "Public website URLs",
            "type": "array",
            "description": "Company website URLs to score. Public pages only. The Actor blocks localhost, embedded credentials, metadata hosts, and private/link-local/reserved IP targets. Do not add LinkedIn/login-wall/profile/contact-export URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "urls": {
            "title": "URLs as simple strings",
            "type": "array",
            "description": "Alternative simple URL list for API callers.",
            "items": {
              "type": "string"
            }
          },
          "targetKeywords": {
            "title": "Target ICP keywords",
            "type": "array",
            "description": "Company-level keywords that increase fit score when present in public website text.",
            "items": {
              "type": "string"
            }
          },
          "negativeKeywords": {
            "title": "Negative keywords",
            "type": "array",
            "description": "Keywords that reduce fit score when present.",
            "items": {
              "type": "string"
            }
          },
          "minFitScore": {
            "title": "Minimum fit score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Return only companies with fit_score >= this value.",
            "default": 0
          },
          "maxUrls": {
            "title": "Maximum URLs to fetch",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Hard-capped at 50 to control cost and avoid runaway crawls.",
            "default": 10
          },
          "maxResults": {
            "title": "Maximum returned results",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Hard-capped at 50. In PPE, each pushed result may be billable depending on your Console pricing setup.",
            "default": 10
          },
          "timeoutSeconds": {
            "title": "Per-URL timeout seconds",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Network timeout per URL. Hard-capped at 30 seconds.",
            "default": 10
          },
          "maxBytes": {
            "title": "Maximum bytes per page",
            "minimum": 10000,
            "maximum": 300000,
            "type": "integer",
            "description": "Maximum bytes read from each page body. Hard-capped at 300000 bytes to control cost and memory.",
            "default": 300000
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "When enabled, URLs disallowed by robots.txt are skipped without output.",
            "default": true
          },
          "includeErrorRows": {
            "title": "Include error rows",
            "type": "boolean",
            "description": "If false, failed/robots-denied URLs are skipped. If true, error rows may be written to the dataset and may be billable under per-result pricing.",
            "default": false
          },
          "sites": {
            "title": "Sample fixture sites",
            "type": "array",
            "description": "Optional static site fixtures with company, url, and text fields. Used only in sample mode."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}