{
  "openapi": "3.0.1",
  "info": {
    "title": "Newbiz Filings Actor",
    "description": "Daily chronological feed of newly registered businesses from 8 official state sources (FL, TX, NY, CO, CT, PA, OR, DE). Every new LLC & corporation with filing date, addresses, registered agent, officers, emails & NAICS where published. Fresh B2B leads for insurance, payroll, POS & web services.",
    "version": "0.0",
    "x-build-id": "JHZWf2V8PmHY7bWY1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentshadow55~newbiz-filings-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentshadow55-newbiz-filings-actor",
        "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/silentshadow55~newbiz-filings-actor/runs": {
      "post": {
        "operationId": "runs-sync-silentshadow55-newbiz-filings-actor",
        "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/silentshadow55~newbiz-filings-actor/run-sync": {
      "post": {
        "operationId": "run-sync-silentshadow55-newbiz-filings-actor",
        "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",
            "type": "array",
            "description": "Which states to pull new filings from. FL, TX, CO and CT refresh daily; NY has refreshed near-daily in our monitoring (its official cadence says monthly). PA and OR re-publish in ~monthly batches — query them with lookbackDays 35+ or a short window will miss most of the month. DE is a business-license feed and INCLUDES RENEWALS of existing businesses (Delaware sells its corporate registry, so licenses are the free proxy).",
            "items": {
              "type": "string",
              "enum": [
                "FL",
                "TX",
                "NY",
                "CO",
                "CT",
                "PA",
                "OR",
                "DE"
              ],
              "enumTitles": [
                "Florida — Sunbiz daily filing files",
                "Texas — new sales tax permits (Comptroller)",
                "New York — DOS corporations open data",
                "Colorado — SOS business entities open data",
                "Connecticut — business registry open data (incl. emails + NAICS)",
                "Pennsylvania — registered businesses open data (~monthly refresh; use lookbackDays 35+)",
                "Oregon — active businesses open data (~monthly refresh; use lookbackDays 35+)",
                "Delaware — business licenses (proxy; includes renewals)"
              ]
            }
          },
          "lookbackDays": {
            "title": "Lookback window (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Return businesses whose filing/registration date falls within the last N days (the window also includes today). Daily-refresh states publish with a 1-3 business-day lag, so windows under 5 days can return few rows; 7 is a safe default for daily monitoring. PA and OR need 35+ (they re-publish ~monthly). Note: you are billed per result, so with overlapping daily windows enable 'Only new since last run' to avoid paying for the same filing twice.",
            "default": 7
          },
          "maxFilingsPerState": {
            "title": "Max filings per state",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on filings returned per state PER RUN (the cap applies to the whole window, not per day — a 7-day FL window alone holds roughly 10,000-15,000 filings). When a state hits the cap the newest filings are kept, the log warns, and the state's summary record sets window_truncated: true.",
            "default": 25000
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (incremental)",
            "type": "boolean",
            "description": "Remember every delivered filing (in a named key-value store in your account) and skip filings already delivered by previous runs. Turn this on for scheduled daily runs: overlapping windows then never re-deliver — or re-bill — the same lead twice.",
            "default": false
          },
          "filterKeyword": {
            "title": "Filter by keyword",
            "type": "string",
            "description": "Only keep filings whose business name contains this keyword (case-insensitive), e.g. 'trucking', 'realty', 'consulting'. Leave empty to keep all filings."
          },
          "includeStateSummary": {
            "title": "Include per-state summary records",
            "type": "boolean",
            "description": "Emit one extra item per state (type: 'state') with the filing count, the exact date window scanned, and window_truncated — useful for monitoring pipelines and spotting states whose source lagged. These summary items are billed like ordinary results (a few extra items per run).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies for the open-data HTTP requests. These are public, unauthenticated government APIs, so Apify Proxy (datacenter) is more than sufficient. Florida's SFTP download connects directly and does not use the proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}