{
  "openapi": "3.0.1",
  "info": {
    "title": "US New Business Filings & Business Entity Search",
    "description": "New business registrations and entity lookups in CO, CT, NY, OR, PA and TX from official public datasets. Filed addresses, agents, officers and source freshness in one row per entity. Date and location filters, NAICS where published, and monitoring that returns only unseen entities.",
    "version": "0.1",
    "x-build-id": "qZQ4oFU8dkUpudYap"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~new-business-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-new-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/zaiq~new-business-filings/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-new-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/zaiq~new-business-filings/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-new-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "newFilings",
              "entitySearch"
            ],
            "type": "string",
            "description": "New registrations within a date window, or entity lookup by exact/partial name and entity number.",
            "default": "newFilings"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "CO, CT, NY, OR, PA and TX. Texas uses the Comptroller active-taxpayer dataset and its SOS charter date. Sources have different lags. An empty list uses Colorado.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "NY",
                "OR",
                "PA",
                "TX"
              ],
              "enumTitles": [
                "Colorado",
                "Connecticut",
                "New York",
                "Oregon",
                "Pennsylvania",
                "Texas (Comptroller)"
              ]
            },
            "default": [
              "CO"
            ]
          },
          "lookbackDays": {
            "title": "Lookback days",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Rolling window ending at endDate (or today). Default seven days. For weekly/monthly snapshots use 14 or 45 with a monitoring store; explicit startDate takes precedence.",
            "default": 7
          },
          "startDate": {
            "title": "From date",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD. Default: lookbackDays ending on endDate, using US Eastern calendar dates. New filings only.",
            "default": ""
          },
          "endDate": {
            "title": "Through date",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD. Default: today in US Eastern time. New filings only.",
            "default": ""
          },
          "names": {
            "title": "Entity names",
            "type": "array",
            "description": "Entity-search mode: up to 50 names. Exact matching ignores case; punctuation is significant.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "entityNumbers": {
            "title": "Entity numbers",
            "type": "array",
            "description": "Entity-search mode: up to 50 filed numbers, optionally prefixed with a state, such as CO:12345678901. Texas also accepts taxpayer numbers linked to an SOS file. Records without an SOS file are excluded. Preserve leading zeroes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "nameMatch": {
            "title": "Name matching",
            "enum": [
              "exact",
              "contains"
            ],
            "type": "string",
            "description": "Exact name, or a literal phrase anywhere in the name. Used by entity search.",
            "default": "exact"
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Optional normalized types. An empty list includes all source types. Nonprofits stay separate from profit corporations; source type is always retained.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "partnership",
                "other"
              ]
            },
            "default": []
          },
          "statuses": {
            "title": "Statuses as filed",
            "type": "array",
            "description": "Optional exact source status labels, ignoring case. CO uses Good Standing; CT uses Active. NY/OR/PA are active-only snapshots. Texas accepts raw SOS status codes such as A. No legal-standing inference.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Exact county names in NY or PA; numeric Comptroller county codes in TX. Selecting this filter skips other states with a free note instead of silently ignoring it.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Exact published business-address cities. NY uses the location address; CT the business address; TX the taxpayer address; PA its filed business address. No address geocoding.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Five-digit ZIP or exact ZIP+4; a five-digit filter also matches its ZIP+4 extensions.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Name keywords",
            "type": "array",
            "description": "Literal phrases contained in the entity name; any phrase may match. Applied in both modes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "naicsCodes": {
            "title": "NAICS prefixes",
            "type": "array",
            "description": "Two to six digits. Available in CT and TX only; other selected states are skipped with a free note.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "industries": {
            "title": "Industry words",
            "type": "array",
            "description": "Literal phrases in Connecticut NAICS descriptions. Other selected states are skipped; codes can be used for CT and TX.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxEntities": {
            "title": "Maximum delivered entities",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global limit across states in the chosen order. Monitoring skips do not consume it. 100,000 maximum; increase Maximum cost per run accordingly.",
            "default": 100
          },
          "monitorStoreName": {
            "title": "Monitoring store name",
            "type": "string",
            "description": "Optional named key-value store. First run returns matching entities; later runs return only unseen state/entity IDs. Use one concurrent run per store. Records are retained, including across date-window changes. Up to 250,000 IDs per state; a full store stops safely.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}