{
  "openapi": "3.0.1",
  "info": {
    "title": "US Business Entity Search + UCC Lien Search (CO, CT, NY, OR)",
    "description": "UCC lien search (CO, CT, OR) plus business entity search (CO, CT, NY): registries by name, ID, status, type and formation date, with each company's UCC filings and liens, or UCC filings by debtor or lender. $2/1,000 records, $1/1,000 filings.",
    "version": "1.3",
    "x-build-id": "lwUTzk54Po1TKftE2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/singgendarhan~us-business-entity-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-singgendarhan-us-business-entity-search",
        "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/singgendarhan~us-business-entity-search/runs": {
      "post": {
        "operationId": "runs-sync-singgendarhan-us-business-entity-search",
        "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/singgendarhan~us-business-entity-search/run-sync": {
      "post": {
        "operationId": "run-sync-singgendarhan-us-business-entity-search",
        "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": {
          "mode": {
            "title": "What to search",
            "enum": [
              "entities",
              "uccFilings"
            ],
            "type": "string",
            "description": "entities = business entity records (the default; company name, IDs and filters below). uccFilings = UCC filings and liens on their own, searched by debtor or secured party name, or listed by filing date (see \"UCC filings and liens\" below). To get a company and its UCC filings together, keep \"entities\" and tick \"Add UCC filings\".",
            "default": "entities"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Which state registries to search. CO = Colorado Department of State (updated daily). CT = Connecticut Secretary of the State (updated daily). NY = New York Department of State (active entities only). Leave empty to search all three.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "NY"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut",
                "New York (active entities only)"
              ]
            },
            "default": [
              "CO",
              "CT",
              "NY"
            ]
          },
          "entityNameContains": {
            "title": "Company name",
            "type": "string",
            "description": "Name to search for, not case-sensitive, e.g. \"coffee\" or \"Acme Holdings LLC\". How it is matched is set by \"Name match\". Leave empty to list entities by the filters below only."
          },
          "nameMatch": {
            "title": "Name match",
            "enum": [
              "contains",
              "startsWith",
              "exact",
              "allWords"
            ],
            "type": "string",
            "description": "contains = the name contains your text anywhere. startsWith = the name starts with your text (fast). exact = the same name, ignoring case, punctuation and how the legal ending is written (LLC or L.L.C., Inc or Incorporated); if you leave the ending off, any legal ending matches. allWords = every word you type appears in the name, in any order. Leave empty to use contains for \"Company name\" and exact for the batch list in \"More company names\". For UCC names, exact is used unless you choose another."
          },
          "entityNames": {
            "title": "More company names (batch lookup)",
            "type": "array",
            "description": "Optional list of company names to look up in one run, one per line (up to 1,000), e.g. for KYB checks of a vendor list. Each name is searched separately with the same filters, and each result carries the name it matched in searchTerm. Unless you set \"Name match\", these names use exact matching. With contains, startsWith or allWords, every name can return up to \"Max results per state\" records in each state.",
            "items": {
              "type": "string"
            }
          },
          "entityIds": {
            "title": "State entity IDs",
            "type": "array",
            "description": "Optional exact lookups by the state's own ID (up to 5,000). Write each ID with its state: CO:20268240564 (Colorado entity ID, 11 digits), CT:3529844 or US-CT.BER:3529844 (Connecticut business ID), NY:8037241 (New York DOS ID). Each ID is looked up only in its own state. Connecticut and New York IDs use the same numbers, so an ID of up to 7 digits without a prefix is accepted only when just one of CT and NY is selected; an 11-digit ID without a prefix is read as Colorado. ID lookups ignore the status, type and date filters.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "any",
              "active",
              "inactive"
            ],
            "type": "string",
            "description": "active = the state still lists the entity as existing (this includes entities that are behind on annual reports; the exact state status is in the status field). inactive = dissolved, withdrawn, revoked, forfeited, merged, converted and similar. New York publishes active entities only.",
            "default": "any"
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Only these entity types. Leave empty for all types. Professional corporations and PLLCs count as corporations and LLCs. The state's own type name is kept in entityTypeRaw.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "limitedPartnership",
                "llp",
                "generalPartnership",
                "cooperative",
                "other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Nonprofit / non-stock corporation",
                "Limited partnership (incl. LLLP)",
                "Limited liability partnership (LLP)",
                "General partnership",
                "Cooperative",
                "Other (trusts, associations, special charters...)"
              ]
            }
          },
          "domesticOrForeign": {
            "title": "Domestic or foreign",
            "enum": [
              "any",
              "domestic",
              "foreign"
            ],
            "type": "string",
            "description": "domestic = formed in that state. foreign = formed elsewhere and registered to do business in that state.",
            "default": "any"
          },
          "formedAfter": {
            "title": "Formed on or after",
            "type": "string",
            "description": "Only entities formed or registered on or after this date (YYYY-MM-DD). Colorado: formation date. Connecticut: registration date. New York: initial filing date."
          },
          "formedBefore": {
            "title": "Formed on or before",
            "type": "string",
            "description": "Only entities formed or registered on or before this date (YYYY-MM-DD)."
          },
          "formedWithinLastDays": {
            "title": "Formed in the last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Only entities formed in the last N days, counted back from the run date. Handy for a scheduled daily or weekly list of new businesses. Overrides \"Formed on or after\"."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Only entities whose principal office is in this city (exact city name, not case-sensitive), e.g. Denver. New York lists a principal-office city for only some entities, so this filter misses many NY entities."
          },
          "zipCodeStartsWith": {
            "title": "ZIP code starts with",
            "type": "string",
            "description": "Only entities whose principal office ZIP code starts with these digits, e.g. 802 (Denver area) or 06510."
          },
          "county": {
            "title": "County (New York only)",
            "type": "string",
            "description": "New York only: county of the entity's office, e.g. Kings or Albany. When set, Colorado and Connecticut are skipped because their datasets have no county column."
          },
          "maxResultsPerState": {
            "title": "Max results per state",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most records to return from each state for each search (each name in a batch counts as its own search). You pay only for records saved. ID lookups are not limited by this.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "newest",
              "oldest",
              "name"
            ],
            "type": "string",
            "description": "Order in which records are taken from each state: newest formation date first (best for new-business lists), oldest first, or by name. Exact-name searches always check the shortest matching names first, because an exact match is the name plus at most a legal ending.",
            "default": "newest"
          },
          "includeUccFilings": {
            "title": "Add UCC filings to entity results",
            "type": "boolean",
            "description": "For every Colorado and Connecticut entity found, also save the UCC filings and liens filed against it as debtor (newest first, up to \"Max UCC filings\"). Colorado matches the debtor by the state entity ID where the filing records it; otherwise the debtor must have the same registered name and legal ending, the filing must not be older than the entity, and a name without a legal ending must also match the city. Name-only matches carry matchedBy \"name\" or \"nameAmbiguous\" and a note. New York publishes no UCC data. Each filing is one extra dataset row and one ucc-filing event.",
            "default": false
          },
          "uccPartyNames": {
            "title": "UCC debtor or secured party names",
            "type": "array",
            "description": "For \"What to search\" = UCC filings: organization names to search, one per line (up to 500), e.g. \"Burke Construction Inc\" as debtor or \"John Deere\" as secured party. Matched with \"Name match\" (exact unless you choose another; use contains for lenders). Leave empty and set a filing date to list all new filings instead.",
            "items": {
              "type": "string"
            }
          },
          "uccPartyRole": {
            "title": "Search UCC names as",
            "enum": [
              "debtor",
              "securedParty",
              "any"
            ],
            "type": "string",
            "description": "Look the names up as debtors (the business that owes), secured parties (the lender or lien holder), or both.",
            "default": "debtor"
          },
          "uccStates": {
            "title": "UCC states",
            "type": "array",
            "description": "For \"What to search\" = UCC filings: which states to search. CO = all filings, including lapsed and terminated ones. CT = active liens and liens up to about a year past lapse, termination or release. OR = only filings entered in the previous month (Oregon publishes a monthly list). Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "OR"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut",
                "Oregon (previous month only)"
              ]
            },
            "default": [
              "CO",
              "CT",
              "OR"
            ]
          },
          "uccFiledAfter": {
            "title": "UCC filed on or after",
            "type": "string",
            "description": "Only filings first filed on or after this date (YYYY-MM-DD). With no names, lists every new business filing since this date: a lead list of companies that just took on equipment loans, cash advances or tax liens."
          },
          "uccFiledBefore": {
            "title": "UCC filed on or before",
            "type": "string",
            "description": "Only filings first filed on or before this date (YYYY-MM-DD)."
          },
          "uccFiledWithinLastDays": {
            "title": "UCC filed in the last N days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Only filings first filed in the last N days, counted back from the run date. Handy for a scheduled daily or weekly list of new UCC filings. Overrides \"UCC filed on or after\"."
          },
          "uccStatus": {
            "title": "UCC filing status",
            "enum": [
              "any",
              "active"
            ],
            "type": "string",
            "description": "active = not lapsed, terminated, released or withdrawn as far as the state's data shows (in Oregon: not past its lapse date). any = include lapsed and ended filings, useful for a borrowing history.",
            "default": "any"
          },
          "maxUccFilings": {
            "title": "Max UCC filings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most UCC filings to save per company (when adding filings to entity results) or per name and state (UCC filing search). The newest come first. You pay only for filings saved.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}