{
  "openapi": "3.0.1",
  "info": {
    "title": "New Business Leads: New LLCs & Corporations (US)",
    "description": "Newly registered US businesses from official open data, updated daily: new LLCs, corporations and DBAs from the New York, Colorado, Connecticut, Oregon and Pennsylvania registries, plus new Los Angeles, San Francisco and Chicago businesses, with owners, agents and emails.",
    "version": "1.0",
    "x-build-id": "PESkOcarbFA5ZWwg4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digital_influx~us-new-businesses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digital_influx-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/digital_influx~us-new-businesses/runs": {
      "post": {
        "operationId": "runs-sync-digital_influx-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/digital_influx~us-new-businesses/run-sync": {
      "post": {
        "operationId": "run-sync-digital_influx-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",
        "properties": {
          "sources": {
            "title": "Registries",
            "type": "array",
            "description": "Official registries to read. Empty = all. States: new companies registered with the Secretary of State. Cities: new business registrations or licenses.",
            "items": {
              "type": "string",
              "enum": [
                "new-york",
                "colorado",
                "connecticut",
                "oregon",
                "pennsylvania",
                "los-angeles",
                "san-francisco",
                "chicago"
              ],
              "enumTitles": [
                "New York (daily, state)",
                "Colorado (daily, state)",
                "Connecticut (daily, state, with emails and owners)",
                "Oregon (monthly, state)",
                "Pennsylvania (monthly, state)",
                "Los Angeles, CA (city)",
                "San Francisco, CA (city)",
                "Chicago, IL (new business licenses)"
              ]
            }
          },
          "registeredWithinDays": {
            "title": "Registered within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Businesses registered in the last N days. The daily registries publish one to three days late; Oregon and Pennsylvania publish once a month, so use 45 days or more to include them.",
            "default": 7
          },
          "entityKinds": {
            "title": "Business types",
            "type": "array",
            "description": "Keep only these types. Empty = all. City registrations have no type: an LLC or Inc. at the end of the name gives it.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "partnership",
                "cooperative",
                "assumed-name",
                "other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Nonprofit",
                "Partnership",
                "Cooperative",
                "Assumed name (DBA)",
                "Other"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to find in the business name, or in its activity where the registry publishes one (Connecticut, Los Angeles, Chicago), e.g. RESTAURANT, CONSTRUCTION, TRUCKING, DENTAL.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities of the business address, e.g. Brooklyn, Denver, Hartford.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit ZIP codes, or their first 3 digits for a wider area.",
            "items": {
              "type": "string"
            }
          },
          "naicsPrefixes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes or their first digits, e.g. 72 (food and lodging), 23 (construction), 5411 (legal services). Only Connecticut, Los Angeles and San Francisco publish them.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithEmail": {
            "title": "Only businesses with an email",
            "type": "boolean",
            "description": "Save only businesses with their own email. Only Connecticut publishes one; emails of formation services (registered agents, filing companies) are left out.",
            "default": false
          },
          "includeForeign": {
            "title": "Include out-of-state companies",
            "type": "boolean",
            "description": "Also save companies formed in another state that just registered to do business here. On by default.",
            "default": true
          },
          "includeInactive": {
            "title": "Include rejected or closed registrations",
            "type": "boolean",
            "description": "Also save registrations that were rejected, dissolved, withdrawn or closed. Off by default.",
            "default": false
          },
          "includePeople": {
            "title": "Include owners and officers",
            "type": "boolean",
            "description": "Members, managers, officers, organizers and process designees, as each registry publishes them. Connecticut principals take one extra request per 100 businesses.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Businesses saved in this run, newest first; on the same day the registries take turns. You also never pay more than the spending limit you set for the run.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new businesses (for scheduled runs)",
            "type": "boolean",
            "description": "Save only businesses that earlier runs of this same search did not save, or whose status or address changed since. Schedule it daily. The memory lives in a key-value store named \"us-new-businesses-state\" in your account.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name (optional)",
            "type": "string",
            "description": "By default each search has its own memory. Give a name to share one memory between tasks, or a new name to start over."
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Without a token, the portals share a request limit per IP address. A free app token from any Socrata portal gives you your own limit. Only needed if a run reports a refused request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}