{
  "openapi": "3.0.1",
  "info": {
    "title": "Person to Business Enrichment - Find Someone's Company",
    "description": "Private preview of PR #63, built from branch claude/person-business-enrichment-uedcyd. Not listed, not priced, not for customers.",
    "version": "0.1",
    "x-build-id": "cSWYnffpkV32mmmVS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadproof~person-business-enrichment/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadproof-person-business-enrichment",
        "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/leadproof~person-business-enrichment/runs": {
      "post": {
        "operationId": "runs-sync-leadproof-person-business-enrichment",
        "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/leadproof~person-business-enrichment/run-sync": {
      "post": {
        "operationId": "run-sync-leadproof-person-business-enrichment",
        "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": [
          "people"
        ],
        "properties": {
          "people": {
            "title": "People",
            "type": "array",
            "description": "One object per person. Only fullName is required; a plain name string works too. Optional fields: inputId (kept as given, so two people with the same name never merge), address, city, region, country, profession, credentials, website, organizationHint. A supplied website is read as a strong lead. An address is treated as the person's own address, never as their workplace. Any other field you send, a LinkedIn URL included, is preserved and returned unchanged, not read."
          },
          "country": {
            "title": "Default country",
            "type": "string",
            "description": "Used for any person whose record does not carry a country. Affects phone normalization and which registries apply.",
            "default": ""
          },
          "useWebSearch": {
            "title": "Search the web by name",
            "type": "boolean",
            "description": "Search each person's name with their profession and location, then read the pages that come back. This is the main discovery path for people outside a registry.",
            "default": true
          },
          "useGoogleMaps": {
            "title": "Use Google Maps",
            "type": "boolean",
            "description": "Off by default. Also looks the person up on Google Maps. Maps never states who works at a business, so its listings are returned only as candidates, and only when a listing carries the person's family name or sits at their registered practice. Runs LeadProof Google Maps Scraper, billed separately at its own price.",
            "default": false
          },
          "useNpiRegistry": {
            "title": "Use the US healthcare provider registry (NPI)",
            "type": "boolean",
            "description": "Free official register. Applies only to enrolled US healthcare providers, and is skipped silently for everybody else. It identifies a person by number, which is the strongest identity signal available; it does not name an employer.",
            "default": true
          },
          "readBusinessWebsites": {
            "title": "Read business websites",
            "type": "boolean",
            "description": "Open the business's own site for contact details, locations and a description of what it does. Turning this off leaves most rows as candidates.",
            "default": true
          },
          "verifyEmails": {
            "title": "Verify emails",
            "type": "boolean",
            "description": "Off by default. Checks whether the email addresses found for a matched business would accept mail. A deliverable mailbox is not evidence that it belongs to the person or that they work there, and a verdict never changes an email's scope. Runs LeadProof Bulk Email Verifier, billed separately at its own price per address.",
            "default": false
          },
          "maxBusinessesPerPerson": {
            "title": "Maximum businesses per person",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "A person may own one business, work at another and have a former role at a third. Associations beyond this cap move to the candidates array with a reason; they are not dropped. Hard limit applied to API and Console input.",
            "default": 3
          },
          "maxCandidatesPerPerson": {
            "title": "Maximum candidates per person",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Cap on the uncertain businesses kept for review. Hard limit applied to API and Console input.",
            "default": 5
          },
          "maxPeople": {
            "title": "Maximum people",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "People beyond this limit are not processed and the count is reported. Hard limit applied to API and Console input.",
            "default": 20
          },
          "maxSearchesPerPerson": {
            "title": "Maximum searches per person",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Search queries per person before discovery stops. Hard limit applied to API and Console input.",
            "default": 3
          },
          "maxPagesPerPerson": {
            "title": "Maximum pages read per person",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Web pages opened per person. Pages shared by several people are fetched once and counted once. Hard limit applied to API and Console input.",
            "default": 6
          },
          "concurrency": {
            "title": "People processed at once",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Hard limit applied to API and Console input.",
            "default": 2
          },
          "maxRunSeconds": {
            "title": "Maximum run time (seconds)",
            "minimum": 60,
            "maximum": 7200,
            "type": "integer",
            "description": "The run stops starting new work at this point, pushes what it has and says it stopped early. Hard limit applied to API and Console input.",
            "default": 900
          },
          "requestTimeoutSeconds": {
            "title": "Per-request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Hard limit applied to API and Console input.",
            "default": 20
          },
          "maxTotalCostUsd": {
            "title": "Maximum dependency spend for the run (USD)",
            "type": "string",
            "description": "Ceiling on what this run may commit its child Actors to. Each child's allowance is reserved before it starts and passed to the platform as that child's own limit; reserved money is not freed during the run, so the ceiling holds even though a child's final bill is known only later. This Actor's own charges are capped separately by the run's maximum charge. 0 means no ceiling.",
            "default": "1.0"
          },
          "maxCostPerPersonUsd": {
            "title": "Maximum dependency spend per person (USD)",
            "type": "string",
            "description": "Stops one difficult record reserving too much of the batch. Counts reservations, like the run ceiling. 0 means no per-person ceiling.",
            "default": "0.08"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}