{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Lookup & KYB: Secretary of State Business Entity Search",
    "description": "Bulk US company lookup and KYB verification: business entity search in official Secretary of State and state registry data (CO, CT, NY, OR, PA, TX). Tested Oct 17, 2026: 17/17 matched to the right entity, explicit NOT_FOUND for every unregistered name. Match score, status, formation date, ID.",
    "version": "0.1",
    "x-build-id": "jhI78hEGzBOLSG7zs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cpt_engineering~us-company-lookup-kyb/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cpt_engineering-us-company-lookup-kyb",
        "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/cpt_engineering~us-company-lookup-kyb/runs": {
      "post": {
        "operationId": "runs-sync-cpt_engineering-us-company-lookup-kyb",
        "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/cpt_engineering~us-company-lookup-kyb/run-sync": {
      "post": {
        "operationId": "run-sync-cpt_engineering-us-company-lookup-kyb",
        "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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Company names",
            "type": "array",
            "description": "Company names to verify, one per line (batch: up to 'Max lookups' per run). Legal-form words (LLC, Inc., Corp., L.P.), punctuation, '&' vs 'and' and word order are ignored when matching, and small typos are tolerated. To search specific states for one name only, add ' | ' and two-letter codes, e.g. 'Acme Robotics | CO' or 'Acme Robotics | CO, TX'. Without a suffix the name is searched in every state selected under 'States'. Each name returns exactly one result row, including NOT_FOUND rows.",
            "items": {
              "type": "string"
            }
          },
          "entityIds": {
            "title": "State entity IDs (optional)",
            "type": "array",
            "description": "State-assigned registry IDs to verify, one per line, as 'STATE:ID', e.g. 'TX:0015370710' (Texas SOS file number), 'CO:19931026399', 'NY:3368051', 'OR:6599310', 'CT:0123456', 'PA:0000326968'. An ID without a state prefix is tried in every selected state. Leading zeros are optional.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter codes of the state registries to search when a name has no ' | STATE' suffix. Supported: CO, CT, NY, OR, PA, TX. Empty = all six. Searching fewer states is faster. NY, OR, PA and TX publish active entities only, so a dissolved company there returns NOT_FOUND.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "NY",
                "OR",
                "PA",
                "TX"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut",
                "New York",
                "Oregon",
                "Pennsylvania",
                "Texas"
              ]
            },
            "default": [
              "CO",
              "CT",
              "NY",
              "OR",
              "PA",
              "TX"
            ]
          },
          "minScore": {
            "title": "Minimum match score",
            "minimum": 50,
            "maximum": 100,
            "type": "integer",
            "description": "0-100 name similarity needed to count as a match, computed after removing legal-form words and punctuation. 100 = same name (EXACT); 93-99 = STRONG (same words but different spacing, word order or legal form, e.g. Inc vs LP); 85-92 = POSSIBLE (spelling differences or typos, or one name is the other plus extra words). Spelling differences are never better than POSSIBLE, because a one-letter change can be a different company. Below this the row is NOT_FOUND and the closest names are listed in other_matches. Raise to 93 for strict verification (EXACT/STRONG only), lower to 75 for messy lists.",
            "default": 85
          },
          "maxOtherMatches": {
            "title": "Other matches per company",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "How many additional candidates to list in other_matches (e.g. foreign registrations of the same company in other states, or similarly named entities). 0 = best match only.",
            "default": 5
          },
          "activeOnly": {
            "title": "Active entities only",
            "type": "boolean",
            "description": "Ignore entities whose status is dissolved, withdrawn, revoked, merged, forfeited etc. (status_normalized = INACTIVE). Off by default so a KYB check can see that a company exists but is dissolved (Colorado and Connecticut publish all statuses).",
            "default": false
          },
          "maxLookups": {
            "title": "Max lookups",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on the number of input names plus IDs processed in one run; extra inputs are skipped and counted in RUN_SUMMARY. Each lookup takes roughly 1-3 seconds per state searched because state portals allow one request per second.",
            "default": 1000
          },
          "includeStreetAddress": {
            "title": "Include street line",
            "type": "boolean",
            "description": "Also return the principal office street line as filed (CO, CT, OR, PA, and NY when a location is filed). Off by default: you get city/state/ZIP only, because small businesses often file a home address. Texas never returns a street line.",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free app token from the state open-data portals (Socrata/Tyler Data & Insights). Not needed; it only reduces the chance of throttling on very large batches."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}