{
  "openapi": "3.0.1",
  "info": {
    "title": "US New Business Filings & New LLC Leads Scraper",
    "description": "Every LLC and corporation formed in the last N days, by state, from the Secretary of State: name, entity ID, type, formation date, address, registered agent, officers where published. Lookup by name too.",
    "version": "0.0",
    "x-build-id": "rAtcUdUTOd8F8ufQS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~us-new-business-filings-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-us-new-business-filings-leads",
        "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/scrapebench~us-new-business-filings-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-us-new-business-filings-leads",
        "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/scrapebench~us-new-business-filings-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-us-new-business-filings-leads",
        "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": [
              "auto",
              "export",
              "lookup"
            ],
            "type": "string",
            "description": "Export: every company formed in the window below in the picked states (the new-filings feed). Lookup: find the companies you name in `Business names or entity IDs` (KYB: was it really filed, and when?). Auto: lookup when you give names, export otherwise.",
            "default": "auto"
          },
          "formedWithinDays": {
            "title": "Formed in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "The rolling window: companies formed (or registered in the state) in the last N days, counted from the day of the run, so a scheduled run never needs a date edited. 7 = the last week. `Formed on or after` wins when you fill it.",
            "default": 7
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Leave empty for the new-filings states (their registry is searched live or refreshed daily): CO, CT, DC, FL, MS, NY, WV. Also available: AK, AL, CA, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MI, MN, MO, MT, NC, ND, NH, NJ, NM, NV, OH, OR, PA, RI, TX, UT, VA, WI, WY. A state whose source runs behind its filings (TX, PA, IA, OR, or a state answered from a copy) returns its rows plus a free note saying how far behind it is.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Business names or entity IDs",
            "type": "array",
            "description": "Lookup mode: one company name or state entity ID per line. A name matches anywhere in the registered name. Filters below still apply (e.g. only Active).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Business name or entity ID (single)",
            "type": "string",
            "description": "Same as the list above, one value; both are combined if you fill both."
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Keep only these types: LLC, Corporation, Nonprofit, Limited Partnership, LLP, General Partnership, Cooperative, Trust. Each state's own types are mapped onto this one list; a state's own type code or label also works. A type a state does not register gives a free note for that state.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Statuses",
            "type": "array",
            "description": "Keep only these statuses. \"Active\" means in business in every state. Other words match the state's own statuses; an unknown word gives a free note listing that state's statuses.",
            "items": {
              "type": "string"
            }
          },
          "formedAfter": {
            "title": "Formed on or after",
            "type": "string",
            "description": "A fixed start date instead of the rolling window, YYYY-MM-DD."
          },
          "formedBefore": {
            "title": "Formed on or before",
            "type": "string",
            "description": "Only entities formed on or before this date, YYYY-MM-DD."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep only companies whose principal office is in one of these cities (where a state has no principal office for an entity, its mailing / service-of-process city). A state whose search returns no address gives a free note instead.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name contains (any of)",
            "type": "array",
            "description": "Keep only companies whose name contains one of these words, e.g. dental, roofing, salon, construction.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "2 to 6 digit NAICS prefixes, e.g. 2381 (foundation and structure contractors), 7225 (restaurants). Only states that publish NAICS (CT, MS, TX, WV; Mississippi matches the primary code); others give a free note.",
            "items": {
              "type": "string"
            }
          },
          "ownedBy": {
            "title": "Ownership (state survey)",
            "type": "array",
            "description": "Companies that told the state they are owned by these groups (all of them): woman, minority, veteran, lgbtqi, disability. Only Connecticut (all five) and West Virginia (woman, minority, veteran) publish this; others give a free note.",
            "items": {
              "type": "string"
            }
          },
          "includeOfficers": {
            "title": "Include officers",
            "type": "boolean",
            "description": "Add officers / principals / authorized representatives where the state publishes them (CT, OR with their business address; FL, HI, WV and others by name and title). Never home addresses.",
            "default": false
          },
          "minYearsInBusiness": {
            "title": "Minimum years in business",
            "minimum": 0,
            "type": "integer",
            "description": "Active companies formed in this state at least this many years ago."
          },
          "maxYearsInBusiness": {
            "title": "Maximum years in business",
            "minimum": 0,
            "type": "integer",
            "description": "Active companies formed in this state at most this many years ago (0 = formed within the last year)."
          },
          "annualReportDueAfter": {
            "title": "Annual report due on or after",
            "type": "string",
            "description": "Only states that publish an annual report due date (CT, DC, NM). Other states give a free note."
          },
          "annualReportDueBefore": {
            "title": "Annual report due on or before",
            "type": "string",
            "description": "Companies about to owe their first annual report (CT, DC, NM). Other states give a free note."
          },
          "maxResults": {
            "title": "Max results per state",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on rows returned per state (bounds cost; the run's total can be this times the number of states). Up to 100,000.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Most state registries answer directly. If a state answers with a free 'blocked' note, run again with a US proxy.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}