{
  "openapi": "3.0.1",
  "info": {
    "title": "US Business Entity Search & New Business Leads",
    "description": "Get newly registered companies and newly licensed businesses from official open data: state registers for Colorado, Connecticut, New York, Oregon, Pennsylvania and Texas, plus business licences from eight cities including Chicago, New York City and Los Angeles. Also a business entity search by name.",
    "version": "1.0",
    "x-build-id": "FaWuxjbjCW8OKvEPO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plain_rows~us-business-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plain_rows-us-business-registry",
        "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/plain_rows~us-business-registry/runs": {
      "post": {
        "operationId": "runs-sync-plain_rows-us-business-registry",
        "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/plain_rows~us-business-registry/run-sync": {
      "post": {
        "operationId": "run-sync-plain_rows-us-business-registry",
        "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": "What do you want?",
            "enum": [
              "newRegistrations",
              "search"
            ],
            "type": "string",
            "description": "New businesses: every business registered or first licensed in a date range, newest first. Search: look up businesses by name or ID.",
            "default": "newRegistrations"
          },
          "states": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Which official sources to use: six state business registries and eight city business-licence lists. Leave empty for all fourteen.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CT",
                "NY",
                "OR",
                "PA",
                "TX",
                "CHI",
                "NYC",
                "LA",
                "SEA",
                "NOLA",
                "BTR",
                "NFK",
                "EVT"
              ],
              "enumTitles": [
                "Colorado (state registry)",
                "Connecticut (state registry)",
                "New York (state registry)",
                "Oregon (state registry)",
                "Pennsylvania (state registry)",
                "Texas (state franchise-tax register)",
                "Chicago (business licences)",
                "New York City (business licences)",
                "Los Angeles (business registrations)",
                "Seattle (business licences)",
                "New Orleans (occupational licences)",
                "Baton Rouge (parish business registrations)",
                "Norfolk, Virginia (business licences)",
                "Everett, Washington (business licences)"
              ]
            },
            "default": [
              "CO",
              "CT",
              "NY",
              "OR",
              "PA",
              "TX",
              "CHI",
              "NYC",
              "LA",
              "SEA",
              "NOLA",
              "BTR",
              "NFK",
              "EVT"
            ]
          },
          "daysBack": {
            "title": "Registered in the last (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to look. Ignored if you set a start date below. Three days across all fourteen sources is usually several thousand businesses, so set a maximum below if you want fewer.",
            "default": 3
          },
          "registeredSince": {
            "title": "Registered since",
            "type": "string",
            "description": "Start date (YYYY-MM-DD). Overrides the number of days above."
          },
          "registeredUntil": {
            "title": "Registered until",
            "type": "string",
            "description": "End date (YYYY-MM-DD). Leave empty for no end date."
          },
          "searchTerms": {
            "title": "Business names",
            "type": "array",
            "description": "One name or part of a name per line. Not case sensitive.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "How to match names",
            "enum": [
              "contains",
              "startsWith",
              "exact"
            ],
            "type": "string",
            "description": "Contains finds the words anywhere in the name. Starts with and Exact are stricter.",
            "default": "contains"
          },
          "entityIds": {
            "title": "Registry IDs",
            "type": "array",
            "description": "Look up specific records by their ID. Put the source first, for example CO:20231234567, NY:4102190 or CHI:3095673. An ID without a source is tried in every selected source.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Maximum results per name, per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "A common name can match thousands of businesses. This caps how many come back for each name in each source.",
            "default": 25
          },
          "activeOnly": {
            "title": "Active businesses only",
            "type": "boolean",
            "description": "Keep only businesses that are active or in good standing. Pennsylvania does not publish a status, so it is left out when this is on.",
            "default": false
          },
          "entityTypeContains": {
            "title": "Business type contains (any of)",
            "type": "array",
            "description": "For example LLC, Limited Liability, Nonprofit or Corporation. For city sources this is the kind of licence. Wording differs by source, so try a short word.",
            "items": {
              "type": "string"
            }
          },
          "cityContains": {
            "title": "City contains (any of)",
            "type": "array",
            "description": "Keep only businesses whose principal or mailing city matches, for example Denver or Brooklyn.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum results in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. When listing new businesses the total is shared evenly between the sources you picked. Leave empty for no limit."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}