{
  "openapi": "3.0.1",
  "info": {
    "title": "🎯 Calibrated Lead Scorer - B2B Scores That Actually Spread",
    "description": "🎯 Score B2B leads with a weighted, fully configurable rubric, no LLM calls. ✅ Fixes the classic AI-scorer failure mode where every lead lands at a confident-sounding 70-80: a percentile-rank calibration pass stretches the batch across the full 0-100 range.",
    "version": "1.0",
    "x-build-id": "xROSRedQUcFzGfB5N"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/that_red_bird~calibrated-lead-scorer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-that_red_bird-calibrated-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/that_red_bird~calibrated-lead-scorer/runs": {
      "post": {
        "operationId": "runs-sync-that_red_bird-calibrated-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/that_red_bird~calibrated-lead-scorer/run-sync": {
      "post": {
        "operationId": "run-sync-that_red_bird-calibrated-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": {
          "leads": {
            "title": "Leads",
            "type": "array",
            "description": "The leads to score, as an array of flat objects. Combine freely with sourceDatasetIds. Recognised fields (all optional): employeeCount, revenue, industry, country, website, email, jobTitle, techStack, isHiring, recentFunding/fundingStage.",
            "default": [
              {
                "companyName": "Northgate Robotics",
                "employeeCount": 220,
                "revenue": 18000000,
                "industry": "Industrial Automation",
                "country": "United States",
                "website": "northgaterobotics.com",
                "email": "j.rivera@northgaterobotics.com",
                "jobTitle": "VP of Engineering",
                "techStack": [
                  "Salesforce",
                  "AWS",
                  "Jira"
                ],
                "isHiring": true,
                "recentFunding": true
              },
              {
                "companyName": "Cassie's Cupcakes",
                "employeeCount": 3,
                "revenue": 90000,
                "industry": "Food & Beverage",
                "country": "United States",
                "email": "cassie.baker@gmail.com",
                "jobTitle": "Owner",
                "isHiring": false
              }
            ]
          },
          "sourceDatasetIds": {
            "title": "Source dataset IDs",
            "type": "array",
            "description": "Apify dataset IDs to pull additional leads from. Rows are appended to \"leads\" before scoring.",
            "items": {
              "type": "string"
            }
          },
          "weightCompanySize": {
            "title": "Weight: company size fit (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much employee-count fit against the ICP size range (or a sensible default of 10-1000) contributes to the raw score. Set to 0 to disable this feature entirely.",
            "default": 12
          },
          "weightRevenue": {
            "title": "Weight: revenue (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much reported annual revenue (log-scaled, saturating around $100M+) contributes to the raw score.",
            "default": 8
          },
          "weightIndustryMatch": {
            "title": "Weight: ICP industry match (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much a fuzzy match between the lead's industry and icpIndustries contributes. Has no effect unless icpIndustries is set.",
            "default": 15
          },
          "weightCountryMatch": {
            "title": "Weight: ICP country match (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much a fuzzy match between the lead's country and icpCountries contributes. Has no effect unless icpCountries is set.",
            "default": 8
          },
          "weightJobTitleMatch": {
            "title": "Weight: ICP job title match (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much a fuzzy match between the lead's job title and icpJobTitles contributes. Has no effect unless icpJobTitles is set. Separate from weightSeniority below.",
            "default": 10
          },
          "weightSeniority": {
            "title": "Weight: job title seniority (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much the parsed seniority tier of the job title (C-level / VP / Director / Manager / individual contributor) contributes to the raw score.",
            "default": 15
          },
          "weightCorporateEmail": {
            "title": "Weight: corporate email domain (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much having a corporate (non-free) email domain contributes, with extra credit when the email domain matches the lead's own website domain.",
            "default": 10
          },
          "weightHasWebsite": {
            "title": "Weight: has a website (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much having a usable website/domain field contributes. Unlike most features this is scored even when absent (a missing website is treated as a real negative signal, not missing data).",
            "default": 6
          },
          "weightTechMaturity": {
            "title": "Weight: tech stack signal (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much the size and B2B-relevance of the lead's techStack/technologies list contributes.",
            "default": 8
          },
          "weightHiringSignal": {
            "title": "Weight: hiring signal (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much an isHiring/hiring boolean field contributes.",
            "default": 8
          },
          "weightFundingSignal": {
            "title": "Weight: funding signal (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How much a recentFunding boolean, or a non-empty fundingStage field, contributes.",
            "default": 8
          },
          "icpIndustries": {
            "title": "ICP: target industries",
            "type": "array",
            "description": "Ideal Customer Profile industries, e.g. [\"SaaS\", \"Industrial Automation\"]. Leads with a matching (fuzzy or exact) industry get a boosted raw score before calibration. Leave empty to skip this feature.",
            "items": {
              "type": "string"
            }
          },
          "icpCountries": {
            "title": "ICP: target countries",
            "type": "array",
            "description": "Ideal Customer Profile countries, e.g. [\"United States\", \"Canada\"]. Leave empty to skip this feature.",
            "items": {
              "type": "string"
            }
          },
          "icpJobTitles": {
            "title": "ICP: target job titles",
            "type": "array",
            "description": "Ideal Customer Profile job titles, e.g. [\"VP of Engineering\", \"Head of Sales\"]. Matched by fuzzy string similarity, separately from the seniority-tier feature. Leave empty to skip this feature.",
            "items": {
              "type": "string"
            }
          },
          "icpMinEmployees": {
            "title": "ICP: minimum employee count",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Lower bound of the target company size range. Leave at 0 together with icpMaxEmployees to fall back to a generic 10-1000 default range.",
            "default": 0
          },
          "icpMaxEmployees": {
            "title": "ICP: maximum employee count",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Upper bound of the target company size range. Set to 0 with icpMinEmployees > 0 to mean \"no upper bound\".",
            "default": 0
          },
          "tierACutoff": {
            "title": "Tier A cutoff (calibrated score, 0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Leads with a calibrated score at or above this get tier \"A\". Must be the highest of the three cutoffs; malformed configs are clamped rather than rejected.",
            "default": 90
          },
          "tierBCutoff": {
            "title": "Tier B cutoff (calibrated score, 0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Leads with a calibrated score at or above this (and below the tier A cutoff) get tier \"B\".",
            "default": 70
          },
          "tierCCutoff": {
            "title": "Tier C cutoff (calibrated score, 0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Leads with a calibrated score at or above this (and below the tier B cutoff) get tier \"C\". Everything below this is tier \"D\".",
            "default": 40
          },
          "includeExplanations": {
            "title": "Include per-lead explanations",
            "type": "boolean",
            "description": "Attach the feature-by-feature point breakdown (feature name, value, points +/-, reason) to every scored lead.",
            "default": true
          },
          "includeSkipped": {
            "title": "Include skipped/malformed leads",
            "type": "boolean",
            "description": "Emit a row (type: \"skipped\") for every input entry that was not a scoreable flat object, e.g. null or an array, instead of silently dropping it.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}