{
  "openapi": "3.0.1",
  "info": {
    "title": "US New Business Filings & Company Lookup: NY, CO, CT, OR",
    "description": "New LLCs and corporations registered in New York, Colorado, Connecticut and Oregon, from official state open data, updated daily. Filter by date, entity type, city, ZIP or NAICS, or look up any registered company by name. Entity-level records, no personal data.",
    "version": "1.0",
    "x-build-id": "Agm02YXiuAjKpFosr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/heartful_job~us-new-businesses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-heartful_job-us-new-businesses",
        "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/heartful_job~us-new-businesses/runs": {
      "post": {
        "operationId": "runs-sync-heartful_job-us-new-businesses",
        "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/heartful_job~us-new-businesses/run-sync": {
      "post": {
        "operationId": "run-sync-heartful_job-us-new-businesses",
        "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": "NY = New York, CO = Colorado, CT = Connecticut, OR = Oregon.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "CO",
                "CT",
                "OR"
              ],
              "enumTitles": [
                "New York",
                "Colorado",
                "Connecticut",
                "Oregon"
              ]
            },
            "default": [
              "NY",
              "CO",
              "CT",
              "OR"
            ]
          },
          "companyNames": {
            "title": "Company lookup: names to search",
            "type": "array",
            "description": "Optional. When filled, the Actor switches to lookup mode: it finds registered businesses whose name contains each entry (any registration date) in the selected states, e.g. Stripe, Blue Bottle. Leave empty to get new filings.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerName": {
            "title": "Max results per name and state",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Lookup mode only. Newest registrations first.",
            "default": 25
          },
          "filedWithinDays": {
            "title": "Filed within the last (days)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Used when Filed from is empty. State portals usually publish filings 1-2 days late.",
            "default": 7
          },
          "filedFrom": {
            "title": "Filed from (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional exact start date."
          },
          "filedTo": {
            "title": "Filed to (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional exact end date (inclusive)."
          },
          "entityTypes": {
            "title": "Entity types (any)",
            "type": "array",
            "description": "Keep types containing any of these words, e.g. LLC, Corporation, Nonprofit.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name keywords (any)",
            "type": "array",
            "description": "Keep businesses whose name contains any of these, e.g. dental, construction, realty.",
            "items": {
              "type": "string"
            }
          },
          "excludeNameKeywords": {
            "title": "Exclude name keywords",
            "type": "array",
            "description": "Drop businesses whose name contains any of these, e.g. holdings, trust.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (exact)",
            "type": "array",
            "description": "e.g. Denver, Hartford.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties (NY)",
            "type": "array",
            "description": "New York only, e.g. Kings, Queens.",
            "items": {
              "type": "string"
            }
          },
          "zipPrefixes": {
            "title": "ZIP code prefixes",
            "type": "array",
            "description": "e.g. 802 for central Denver, 100 for Manhattan.",
            "items": {
              "type": "string"
            }
          },
          "naicsPrefixes": {
            "title": "NAICS code prefixes (CT)",
            "type": "array",
            "description": "Connecticut only. e.g. 54 for professional services, 6211 for doctors' offices.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active businesses only",
            "type": "boolean",
            "description": "Skip rejected, dissolved or withdrawn filings.",
            "default": true
          },
          "maxItems": {
            "title": "Max businesses",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows. 0 means no limit.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only businesses not returned before",
            "type": "boolean",
            "description": "For scheduled runs: skip businesses this monitor already returned.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for different schedules.",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}