{
  "openapi": "3.0.1",
  "info": {
    "title": "Minnesota Business Registry - Officers, Agents & Filings",
    "description": "Search Minnesota's business register: corporations, LLCs, partnerships, nonprofits and assumed names with status, registered office and principal addresses, registered agent, CEO/managers/owners with addresses, share counts, former names and full filing history. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "DSZlg9UhShmYdqKfg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~minnesota-business-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-minnesota-business-registry-scraper",
        "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/scrapers_lat~minnesota-business-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-minnesota-business-registry-scraper",
        "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/scrapers_lat~minnesota-business-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-minnesota-business-registry-scraper",
        "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": {
          "businessNames": {
            "title": "Business Names To Search",
            "type": "array",
            "description": "One or more business names, or parts of names. Each entry runs its own search and every match is collected.",
            "items": {
              "type": "string"
            }
          },
          "nameMatchType": {
            "title": "Name Match Type",
            "enum": [
              "contains",
              "beginsWith"
            ],
            "type": "string",
            "description": "Match anywhere in the name, or only at the start. \"Begins with\" also lets a search that hits the register's 500-row ceiling be split automatically so nothing is silently dropped.",
            "default": "contains"
          },
          "fileNumbers": {
            "title": "File Numbers",
            "type": "array",
            "description": "Minnesota file numbers for a direct lookup, e.g. 11-AA or 901366400023.",
            "items": {
              "type": "string"
            }
          },
          "statusScope": {
            "title": "Status",
            "enum": [
              "active",
              "inactive",
              "any"
            ],
            "type": "string",
            "description": "Search active businesses, inactive ones, or both.",
            "default": "active"
          },
          "maxCompanies": {
            "title": "Max Companies To Scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many business records. Free Apify plans are capped at 10 per run.",
            "default": 30
          },
          "includeFilingHistory": {
            "title": "Include Filing History",
            "type": "boolean",
            "description": "Include the full filing and renewal history (original filing, amendments, name changes, mergers, dissolutions) on every record.",
            "default": true
          },
          "includePriorNames": {
            "title": "Search Former Names Too",
            "type": "boolean",
            "description": "Also match businesses that used your search term as a previous name.",
            "default": false
          },
          "deepNameSearch": {
            "title": "Split Oversized Searches",
            "type": "boolean",
            "description": "When a search hits the register's 500-row ceiling, automatically re-run it in narrower slices so the full result set is covered (works with \"Begins with\").",
            "default": true
          },
          "businessTypes": {
            "title": "Business Types",
            "type": "array",
            "description": "Keep only these registered types, e.g. Limited Liability Company, Business Corporation, Nonprofit, Assumed Name.",
            "items": {
              "type": "string"
            }
          },
          "entityCategories": {
            "title": "Entity Categories",
            "type": "array",
            "description": "Keep only these simplified categories: LLC, LLP, Corporation, Limited Partnership, Nonprofit Corporation, Cooperative, Assumed Name (DBA), Trust.",
            "items": {
              "type": "string"
            }
          },
          "onlyAssumedNames": {
            "title": "Only Assumed Names (DBAs)",
            "type": "boolean",
            "description": "Keep only assumed-name filings, which name the owner behind the trading name.",
            "default": false
          },
          "excludeAssumedNames": {
            "title": "Exclude Assumed Names (DBAs)",
            "type": "boolean",
            "description": "Drop assumed-name filings and keep only registered legal entities.",
            "default": false
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep only businesses whose registered or principal address is in one of these cities.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP Codes",
            "type": "array",
            "description": "Keep only businesses whose ZIP code starts with one of these.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Keep only businesses whose address is in one of these two-letter states.",
            "items": {
              "type": "string"
            }
          },
          "homeJurisdictions": {
            "title": "Home Jurisdictions",
            "type": "array",
            "description": "Keep only businesses formed in these jurisdictions, e.g. Minnesota, Delaware.",
            "items": {
              "type": "string"
            }
          },
          "domicile": {
            "title": "Domestic Or Foreign",
            "enum": [
              "any",
              "domestic",
              "foreign"
            ],
            "type": "string",
            "description": "Keep Minnesota-formed businesses, out-of-state businesses registered in Minnesota, or both.",
            "default": "any"
          },
          "filedFrom": {
            "title": "Filed From",
            "type": "string",
            "description": "Keep only businesses filed on or after this date (YYYY-MM-DD). Great for a new-business feed."
          },
          "filedTo": {
            "title": "Filed To",
            "type": "string",
            "description": "Keep only businesses filed on or before this date (YYYY-MM-DD)."
          },
          "officerNameContains": {
            "title": "Officer Name Contains",
            "type": "string",
            "description": "Keep only businesses with an officer, manager or owner whose name contains this text."
          },
          "registeredAgentContains": {
            "title": "Registered Agent Contains",
            "type": "string",
            "description": "Keep only businesses whose registered agent contains this text, e.g. CT Corporation."
          },
          "requireOfficer": {
            "title": "Only With A Named Officer",
            "type": "boolean",
            "description": "Keep only businesses that name at least one officer, manager or owner.",
            "default": false
          },
          "requireRegisteredAgent": {
            "title": "Only With A Registered Agent",
            "type": "boolean",
            "description": "Keep only businesses that name a registered agent.",
            "default": false
          },
          "minShares": {
            "title": "Minimum Authorized Shares",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only corporations authorised to issue at least this many shares."
          },
          "maxSearchQueries": {
            "title": "Max Searches Per Run",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on how many searches a run issues while splitting oversized result sets.",
            "default": 120
          },
          "maxRecordsToScan": {
            "title": "Max Records To Open While Filtering",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on how many business files a run opens while filters narrow the result set. Leave empty for the automatic value."
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many business files to read in parallel (1-10).",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}