{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Leads: Fresh LLC Filings in NY, PA & CT",
    "description": "Fresh business-formation leads across NY, PA and CT in one feed. Published CT business emails and NAICS, PA officers, NY filer intelligence and verified registered agents. Filter by date, county, industry and name. One global result cap.",
    "version": "0.0",
    "x-build-id": "lYXHG5DSkKl8InJtJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jserle~us-new-business-leads-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jserle-us-new-business-leads-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~us-new-business-leads-feed/runs": {
      "post": {
        "operationId": "runs-sync-jserle-us-new-business-leads-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~us-new-business-leads-feed/run-sync": {
      "post": {
        "operationId": "run-sync-jserle-us-new-business-leads-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": "Official registries to query. NY and CT publish daily; PA publishes monthly.",
            "items": {
              "type": "string"
            },
            "default": [
              "NY",
              "PA",
              "CT"
            ]
          },
          "formedFrom": {
            "title": "Formed on or after",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD date. The default is seven days ago for NY and CT. PA automatically uses its latest publishable monthly window unless you explicitly set this field."
          },
          "formedTo": {
            "title": "Formed on or before",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD date. Setting only an end date removes the default lower bound."
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "Exact county name, case-insensitive. CT counties are derived using the official town crosswalk; NY and PA counties are source-published."
          },
          "city": {
            "title": "City or town",
            "type": "string",
            "description": "Case-insensitive city match. NY uses the filing's service-of-process city, not an asserted principal-office city."
          },
          "businessNameContains": {
            "title": "Business name contains",
            "type": "string",
            "description": "Optional case-insensitive substring. Leave blank to discover new companies you do not already know."
          },
          "industryCodePrefix": {
            "title": "NAICS industry prefix (CT only)",
            "type": "string",
            "description": "Two to six digits, such as 23 for construction or 541511 for custom programming. NY and PA do not publish this field, so this filter limits results to CT."
          },
          "requireBusinessEmail": {
            "title": "Only businesses with published email (CT only)",
            "type": "boolean",
            "description": "Return only businesses whose official registry publishes a business email. NY and PA do not expose business email in these datasets, so this limits results to CT.",
            "default": false
          },
          "includeDecisionMakers": {
            "title": "Include officers and principals",
            "type": "boolean",
            "description": "Group PA's officer, organizer and incorporator rows into one lead and join CT's separate Principals dataset. NY's filing dataset does not publish officers.",
            "default": true
          },
          "includeRegisteredAgents": {
            "title": "Include verified registered agents",
            "type": "boolean",
            "description": "Join CT's Agents dataset and NY's Active Corporations roster. NY's service-of-process recipient remains a distinct field and is never mislabeled as an agent.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum leads across every state",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard global cap across all selected states, not a separate allowance per state. Only delivered business records are chargeable.",
            "default": 100
          },
          "includeRaw": {
            "title": "Include original registry records",
            "type": "boolean",
            "description": "Attach unmodified source rows to each delivered lead. Companion records are attached only when their corresponding option is enabled.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}