{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Filings Feed: NY, CO, CT (Unofficial)",
    "description": "New LLCs, corporations and nonprofits from official state open-data feeds (New York, Colorado, Connecticut): legal name, ID, type, status, filing date, county or city and ZIP. No agent or organizer names. New-since-last-run mode. Unofficial.",
    "version": "1.0",
    "x-build-id": "eNyOju3cr4h8eACbZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/saiberops~new-business-filings-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-saiberops-new-business-filings-feed",
        "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/saiberops~new-business-filings-feed/runs": {
      "post": {
        "operationId": "runs-sync-saiberops-new-business-filings-feed",
        "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/saiberops~new-business-filings-feed/run-sync": {
      "post": {
        "operationId": "run-sync-saiberops-new-business-filings-feed",
        "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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Registries to read. NY: New York Department of State daily filings (county only, no city or ZIP). CO: Colorado business entities (city and ZIP). CT: Connecticut business registry (city and ZIP).",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "CO",
                "CT"
              ],
              "enumTitles": [
                "New York",
                "Colorado",
                "Connecticut"
              ]
            },
            "default": [
              "NY"
            ]
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "latest",
              "newSinceLastRun",
              "dateRange"
            ],
            "type": "string",
            "description": "latest: entities filed in the last N days. newSinceLastRun: only entities your previous runs didn't return (use it on a schedule). dateRange: a fixed start and end date (up to 366 days; New York keeps only the last 30 days).",
            "default": "latest"
          },
          "lookbackDays": {
            "title": "Days to look back",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "For 'latest' and 'newSinceLastRun'. Calendar days including today. Registries post filings one to a few business days late (New York about 4 days), so 14 catches late postings; 'newSinceLastRun' never repeats an entity.",
            "default": 14
          },
          "startDate": {
            "title": "Start date (date range mode)",
            "type": "string",
            "description": "First filing date to include, YYYY-MM-DD."
          },
          "endDate": {
            "title": "End date (date range mode)",
            "type": "string",
            "description": "Last filing date to include, YYYY-MM-DD. Defaults to today."
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Keep only these kinds of entity. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "partnership",
                "other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation (incl. professional)",
                "Nonprofit / non-stock",
                "Partnership (LP, LLP, LLLP)",
                "Other (cooperatives, trusts, associations)"
              ]
            },
            "default": []
          },
          "includeForeign": {
            "title": "Include out-of-state (foreign) entities",
            "type": "boolean",
            "description": "Also return companies formed elsewhere that just registered to do business in the state. Turn off for brand-new local companies only.",
            "default": true
          },
          "nameKeywords": {
            "title": "Name keywords (any)",
            "type": "array",
            "description": "Keep entities whose legal name contains any of these words, for example dental, roofing, cafe. Letters, digits, spaces, & . and - are used. Up to 50 keywords of up to 40 characters.",
            "items": {
              "type": "string"
            }
          },
          "excludeNameKeywords": {
            "title": "Exclude name keywords",
            "type": "array",
            "description": "Drop entities whose legal name contains any of these words, for example holdings, realty, trust.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties (New York)",
            "type": "array",
            "description": "County of the principal office, for example Kings, Monroe, Erie. Only New York publishes a county, so this filter drops Colorado and Connecticut rows.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes or prefixes (Colorado, Connecticut)",
            "type": "array",
            "description": "5-digit ZIP codes or 3- to 4-digit prefixes of the principal office, for example 80205 or 802. New York publishes no office ZIP, so this filter drops New York rows.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max entities",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many entities in total (shared fairly across the selected states). Each returned entity is one charged event.",
            "default": 100
          },
          "cursorName": {
            "title": "Cursor name (new since last run)",
            "type": "string",
            "description": "Keeps a separate 'new since last run' position per name, so different scheduled feeds (for example Denver restaurants vs. Brooklyn LLCs) don't share one. Letters, numbers and dashes.",
            "default": ""
          },
          "maxPagesPerState": {
            "title": "Max pages per state",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Upper limit on 1,000-row pages read per state per run. Raise it for long date ranges with narrow filters.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}