{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Filings by State — Secretary of State Data, No Key",
    "description": "Secretary of State company data: new business filings in Colorado, Connecticut, Pennsylvania, New York and Oregon: name, type, status, filing date, city. Filter by date, type, city; weekly feed. No API key, no agents, no officers. Unofficial: not affiliated with any Secretary of State.",
    "version": "0.4",
    "x-build-id": "8Ioz5MjcPB2CCBlec"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rein8~us-state-business-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rein8-us-state-business-filings",
        "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/rein8~us-state-business-filings/runs": {
      "post": {
        "operationId": "runs-sync-rein8-us-state-business-filings",
        "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/rein8~us-state-business-filings/run-sync": {
      "post": {
        "operationId": "run-sync-rein8-us-state-business-filings",
        "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": {
          "state": {
            "title": "State",
            "enum": [
              "CO",
              "CT",
              "PA",
              "NY",
              "OR"
            ],
            "type": "string",
            "description": "The state whose Secretary of State data to read (one per run): Colorado (updated daily), Connecticut (daily), Pennsylvania (monthly, current registrations only), New York (active corporations, updated by the Department of State), Oregon (the monthly \"new businesses registered last month\" file). Each state's dataset, licence and attribution are named in the README.",
            "default": "CO"
          },
          "filedFrom": {
            "title": "Filed on or after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD: only entities whose filing / formation date is on or after this day (sent to the source as a date condition, so only matching rows are read). Leave empty to start from the newest filings."
          },
          "filedTo": {
            "title": "Filed on or before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD: only entities filed on or before this day (inclusive); combine with \"Filed on or after\" for a week, a month or a quarter. Colorado publishes delayed-effective formations with a future date: set this to today to leave them out."
          },
          "includeFuture": {
            "title": "Include future-dated filings",
            "type": "boolean",
            "description": "Colorado publishes delayed-effective formations with a future filing date (a run on 26 Sep can show 2026-11-01). Off (default): an empty \"Filed on or before\" is capped at today, so those rows stay out. On: they are included and lead the newest-first list. Your own \"Filed on or before\" date always wins.",
            "default": false
          },
          "entityType": {
            "title": "Entity type",
            "enum": [
              "any",
              "llc",
              "corporation",
              "nonprofit",
              "partnership",
              "other"
            ],
            "type": "string",
            "description": "Keep one kind of entity: LLCs (domestic and foreign), corporations (business, profit, professional, benefit), nonprofits, partnerships (LP, LLP, LLLP, GP), or everything else (trusts, cooperatives, credit unions, associations…). The states name their types differently; the row keeps the state's own wording in entityType and the normalised kind in entityClass. Filtered-out rows are never charged.",
            "default": "any"
          },
          "city": {
            "title": "Principal-office city",
            "type": "string",
            "description": "One or more cities of the principal office, separated by commas (Denver, Aurora), matched case-insensitively after each page is read. Combine with a filing-date window: without one the run pages newest-first until it has enough matches or reaches 300 pages."
          },
          "naicsPrefix": {
            "title": "NAICS code prefix (Connecticut only)",
            "pattern": "^\\d{0,6}$",
            "type": "string",
            "description": "Connecticut publishes the NAICS industry code each business declared: keep one sector with a 2–6 digit prefix (23 = construction, 722 = food services and drinking places, 6216 = home health care). Matched after each page; rows outside the sector are never charged. The other states publish no NAICS code, so leave this empty for them (it would keep nothing)."
          },
          "nameContains": {
            "title": "Words in the entity name",
            "type": "string",
            "description": "Words that must appear in the entity name (roofing, dental, holdings). The words are sent to the source's full-text search and the row is kept only when its name contains them; other columns are never searched."
          },
          "maxItems": {
            "title": "Max filings",
            "minimum": 1,
            "maximum": 300000,
            "type": "integer",
            "description": "Maximum number of entities delivered in this run; you are charged only for rows delivered ($0.002 each). Pages hold 1,000 rows, so up to 1,000 = one request. Left empty (API calls), 50 rows; the form prefills 200. A run reads at most 300 pages (300,000 rows).",
            "default": 50
          },
          "incremental": {
            "title": "Only filings not delivered before",
            "type": "boolean",
            "description": "Remember which entities were already delivered (per saved Task, or per set of filters for a hand-started run) and return only new ones. Rows come newest-first, so a scheduled run stops reading at the first page with nothing new. A row delivered before comes back, marked _changed and charged again, only when a delivered field changed (a Colorado status moving to Delinquent) and the row is on a page the run reads. With a daily or weekly schedule this is a feed of new business filings.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the memory used by \"Only filings not delivered before\". Left as \"default\", every saved Task gets its own memory automatically (a run started by hand remembers per set of filters). Type a name to share one memory between schedules on purpose.",
            "default": "default"
          },
          "allowStateFallback": {
            "title": "Run without memory if the memory cannot be opened",
            "type": "boolean",
            "description": "Only matters if an incremental run stops with \"state store unavailable\". Off (default): such a run stops before anything is charged. On: the run continues without memory, i.e. it delivers and charges every matching filing again.",
            "default": false
          },
          "preview": {
            "title": "Preview (10 filings, free)",
            "type": "boolean",
            "description": "Return 10 entities without any charge, to check the output format. The memory of incremental mode is neither read nor written.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}