{
  "openapi": "3.0.1",
  "info": {
    "title": "Secretary of State Search & New LLC Filings: NY, TX, CO, OR, CT",
    "description": "Look up LLCs and corporations by name or state ID, or pull every new filing since a date, from official open data for New York, Texas, Colorado, Oregon and Connecticut. Status, type, formation date, addresses and registered agent (where published) in one schema. $1.50 per 1,000 records.",
    "version": "0.3",
    "x-build-id": "83gWw5TY8krzgG4Wq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datatoolsforall~state-business-entity-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datatoolsforall-state-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/datatoolsforall~state-business-entity-search/runs": {
      "post": {
        "operationId": "runs-sync-datatoolsforall-state-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/datatoolsforall~state-business-entity-search/run-sync": {
      "post": {
        "operationId": "run-sync-datatoolsforall-state-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",
        "required": [
          "states"
        ],
        "properties": {
          "states": {
            "title": "States",
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "Which state registries to search. Only these five states are covered: New York, Colorado, Connecticut, Oregon and Texas.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "CO",
                "CT",
                "OR",
                "TX"
              ],
              "enumTitles": [
                "New York (Department of State)",
                "Colorado (Department of State)",
                "Connecticut (Secretary of the State)",
                "Oregon (Secretary of State)",
                "Texas (Comptroller franchise-tax permit holders)"
              ]
            }
          },
          "searchNames": {
            "title": "Business names to search",
            "maxItems": 20,
            "type": "array",
            "description": "Words or names to look for. A record matches when its name contains the text exactly as typed (not case sensitive; characters such as %, _ and the backslash are matched literally). Example: \"acme\" finds \"ACME CLEANERS, INC.\". At least 2 characters each, up to 20 names.",
            "items": {
              "type": "string"
            }
          },
          "entityIds": {
            "title": "State entity IDs",
            "maxItems": 100,
            "type": "array",
            "description": "Exact lookup by the state's own ID, up to 100 IDs: NY DOS ID, CO entity ID, CT account number, OR registry number, TX taxpayer number or TX SOS file number (leading zeros optional). Prefix a state, e.g. \"NY:4424185\", to search one state only. Every ID is returned whatever \"Max results per state\" says; an ID that is not found gets a billed NOT_FOUND row. IDs with letters cannot exist and get a free INVALID_ID row.",
            "items": {
              "type": "string"
            }
          },
          "formedAfter": {
            "title": "Formed on or after",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only entities formed or registered on or after this date. Use it alone (without names or IDs) to get a feed of new filings, newest first. Accepts a date (2026-11-15) or a relative period (\"7 days\"), which is handy for scheduled runs."
          },
          "formedBefore": {
            "title": "Formed on or before",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^(\\d+)\\s*(day|week|month|year)s?$",
            "type": "string",
            "description": "Only entities formed or registered on or before this date. Leave empty to include everything up to today."
          },
          "maxResultsPerState": {
            "title": "Max results per state",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Caps name matches and new filings per state, and so your cost: at $0.0015 per record, the default of 100 costs at most $0.15 per state ($0.75 for all five). Matches come newest first (latest formation date first), so a low cap keeps the most recently formed ones. Records for the IDs you list in \"State entity IDs\" (at most 100) are always returned on top of this cap.",
            "default": 100
          },
          "onlyActive": {
            "title": "Only active entities",
            "type": "boolean",
            "description": "Skip dissolved, withdrawn, revoked and similar records. New York and Oregon publish active entities only, so this changes nothing there.",
            "default": false
          },
          "entityTypes": {
            "title": "Entity types",
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these normalized types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "LLC",
                "Corporation",
                "Nonprofit",
                "LP",
                "Other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Nonprofit",
                "Limited partnership (LP, LLP, LLLP)",
                "Other (trusts, general partnerships, cooperatives, assumed names...)"
              ]
            }
          },
          "includeAgentAndOfficerNames": {
            "title": "Include names of people (agents and officers)",
            "type": "boolean",
            "description": "Off by default. When on, the output also includes the names and addresses of individual registered agents and the officer or principal names the state publishes (NY chairman, CT principals, OR authorized representatives). Registered-agent companies are always shown. Use person data only for lawful purposes such as KYB and due diligence.",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional. The portals work without it, but requests without a token share a per-IP throttling pool. A free app token from any Socrata portal (Developer Settings in your account there) gives you your own quota. It is sent only as an HTTP header and never written to the output or logs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}