{
  "openapi": "3.0.1",
  "info": {
    "title": "US New Business Leads: New LLC & Company Filings by State",
    "description": "New LLCs from the Secretary of State of Texas, New York, Colorado, CT, OR, PA and US business licenses (Chicago, Seattle, LA, SF): business formation data, new LLC leads, new companies USA, new businesses USA. New York business leads, Colorado business leads. New business filings alerts.",
    "version": "0.1",
    "x-build-id": "DqbIPoWuqc27h6uC6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/euroscrape~us-new-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-euroscrape-us-new-companies",
        "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/euroscrape~us-new-companies/runs": {
      "post": {
        "operationId": "runs-sync-euroscrape-us-new-companies",
        "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/euroscrape~us-new-companies/run-sync": {
      "post": {
        "operationId": "run-sync-euroscrape-us-new-companies",
        "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": {
          "daysBack": {
            "title": "📅 Days back",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Companies filed in the last N days (by their official filing date). Ignored if 'From date' is set. Texas publishes about 10 days late, Oregon weekly, Pennsylvania monthly: use 21, 14 or 45 days for them.",
            "default": 7
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First filing date to include (YYYY-MM-DD). Overrides 'Days back'."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last filing date to include (YYYY-MM-DD). Default: today."
          },
          "states": {
            "title": "🗺️ States and cities",
            "type": "array",
            "description": "Official open-data sources to read, by code: NY, CO, CT, TX, OR, PA (state registers), CHI, SEA, LA, SF (city licenses). Empty = all ten.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "CO",
                "CT",
                "TX",
                "OR",
                "PA",
                "CHI",
                "SEA",
                "LA",
                "SF"
              ],
              "enumTitles": [
                "New York (state register, daily)",
                "Colorado (state register, daily)",
                "Connecticut (state register, daily)",
                "Texas (state register, ~10 days late)",
                "Oregon (state register, weekly)",
                "Pennsylvania (state register, monthly)",
                "Chicago (city business licenses)",
                "Seattle (city business licenses)",
                "Los Angeles (city business accounts)",
                "San Francisco (city registered businesses)"
              ]
            }
          },
          "locations": {
            "title": "📍 Cities or counties",
            "type": "array",
            "description": "Keep only companies in these cities (or counties for New York and Pennsylvania, neighbourhoods for San Francisco, community areas for Chicago), e.g. Brooklyn, Denver, Austin. Case does not matter. Empty = everywhere.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Name keywords",
            "type": "array",
            "description": "Keep only companies whose name contains one of these words (Connecticut, Seattle, Los Angeles, San Francisco and Chicago also match the activity), e.g. roofing, dental, coffee, consulting.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop companies whose name contains one of these words, e.g. holdings, trust, properties.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "🏢 Entity types",
            "type": "array",
            "description": "Legal families to keep. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "llc",
                "corporation",
                "nonprofit",
                "partnership",
                "other"
              ],
              "enumTitles": [
                "LLC",
                "Corporation",
                "Nonprofit",
                "Partnership (LP, LLP)",
                "Other"
              ]
            }
          },
          "includeSummary": {
            "title": "Include a summary per source",
            "type": "boolean",
            "description": "Adds one free 'summary' row per state or city: companies found, by entity type, top cities, filing dates covered, known publication delay.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many companies (summary rows are not counted).",
            "default": 500
          },
          "monitorName": {
            "title": "🔔 Monitor name (new companies only)",
            "type": "string",
            "description": "Give your saved search a name and schedule it: the first run is the baseline, every later run returns only companies not delivered before (changeType: \"new\"). Use different names for different searches."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Get a message for each new company. Create a bot with @BotFather and paste its token."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Your chat or group ID (send /start to the bot first)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Channel settings → Integrations → Webhooks."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack app → Incoming Webhooks."
          },
          "webhookUrl": {
            "title": "Webhook URL (Make, Zapier, n8n, Google Sheets)",
            "type": "string",
            "description": "One POST per run with {\"count\": N, \"items\": [...]} for the new companies only."
          },
          "maxNotifications": {
            "title": "Maximum messages per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Telegram, Discord and Slack messages per run (the webhook always receives everything).",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}