{
  "openapi": "3.0.1",
  "info": {
    "title": "NY Business Filings: New LLCs, Corps & Active Entity Roster",
    "description": "New York business filings from the NYS Department of State: daily new LLCs and corporations with filer and service-of-process addresses, full filing history since 1800, and the active entity roster, which carries registered agent and chairman. Filter by type, county, name, date or DOS id.",
    "version": "1.0",
    "x-build-id": "xiDpzkstrT0MUtUhV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jserle~ny-business-filings-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jserle-ny-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/jserle~ny-business-filings-feed/runs": {
      "post": {
        "operationId": "runs-sync-jserle-ny-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/jserle~ny-business-filings-feed/run-sync": {
      "post": {
        "operationId": "run-sync-jserle-ny-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": {
          "mode": {
            "title": "Dataset",
            "enum": [
              "newFilings",
              "history",
              "activeEntities"
            ],
            "type": "string",
            "description": "newFilings: the Department of State's daily feed, a rolling window of about 30 days of filings with filer and service-of-process addresses. history: every filing since 1800 (about 20.9 million), with document type and amendment flags; best with a DOS id, a name or a date range. activeEntities: the roster of about 4.3 million active entities with DOS process address, registered agent, chairman and location.",
            "default": "newFilings"
          },
          "filingTypes": {
            "title": "Filing types",
            "type": "array",
            "description": "Keep only these filing types (newFilings: filing_type; history: documenttype). Case-insensitive exact values, for example ARTICLES OF ORGANIZATION, CERTIFICATE OF INCORPORATION, APPLICATION OF AUTHORITY, BIENNIAL STATEMENT, CERTIFICATE OF ASSUMED NAME, CERTIFICATE OF AMENDMENT, CERTIFICATE OF MERGER, DISSOLUTION BY PROCLAMATION. Default: the three formation types (Articles of Organization, Certificate of Incorporation, Application of Authority) for the plain newFilings feed; ALL document types in history mode and whenever a DOS id is given. Leave empty to accept the default. Must be empty in activeEntities mode, which has no filing-type column.",
            "items": {
              "type": "string"
            }
          },
          "dosId": {
            "title": "DOS id",
            "type": "string",
            "description": "The entity's Department of State id, for example 8002906. Works in every mode. With a DOS id the filing-type default switches to all document types and the newFilings 7-day window is dropped, so you get the entity's complete recent (newFilings) or lifetime (history) document list."
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "Case-insensitive exact match on the county of the principal office (newFilings, history) or the entity's county (activeEntities). Examples: Kings, Queens, Nassau, Westchester, Erie. New York City boroughs use their county names: New York (Manhattan), Kings (Brooklyn), Queens, Bronx, Richmond (Staten Island)."
          },
          "nameContains": {
            "title": "Entity name contains",
            "type": "string",
            "description": "Case-insensitive substring matched against the entity name. Example: bakery"
          },
          "entityTypeContains": {
            "title": "Entity type contains",
            "type": "string",
            "description": "Case-insensitive substring matched against the entity type, for example LIMITED LIABILITY, BUSINESS CORPORATION, NOT-FOR-PROFIT, FOREIGN, PROFESSIONAL SERVICE."
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "ISO date, for example 2026-01-01. Keeps filings dated on or after this date (newFilings: filing date; history: date filed; activeEntities: initial DOS filing date). In newFilings mode this defaults to 7 days ago unless a DOS id is given."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "ISO date, for example 2026-06-30. Keeps filings dated on or before this date."
          },
          "hasRegisteredAgent": {
            "title": "Only entities with a registered agent (activeEntities)",
            "type": "boolean",
            "description": "activeEntities mode only: keep entities that name a registered agent (about 872,000 of the 4.27 million active entities on 2026-08-23). Setting it in another mode fails the run, because those datasets carry no registered-agent column.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many records to deliver, newest first. You are charged per delivered record, so this is also your cost cap.",
            "default": 100
          },
          "includeRaw": {
            "title": "Include the raw source row",
            "type": "boolean",
            "description": "Attach a `raw` object with the Socrata row this record was built from, under its Department of State column names. Useful for auditing the normalization; roughly doubles item size.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}