# New Zealand Companies Register Scraper — NZBN & Company Data (`haketa/nz-companies-scraper`) Actor

Search and scrape the New Zealand Companies Register: company name, company number, NZBN, status and entity type. For KYC, due diligence, B2B and compliance. Independent tool, not affiliated with the NZ Companies Office.

- **URL**: https://apify.com/haketa/nz-companies-scraper.md
- **Developed by:** [Haketa](https://apify.com/haketa) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.75 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## New Zealand Companies Register Scraper — NZBN & Company Data

> **Search and extract the official New Zealand Companies Register: company name, company number, NZBN, status and entity type.** Search by name or keyword and get clean JSON/CSV/Excel in seconds. Built for KYC, due diligence, B2B prospecting and compliance.

[![NZ Register](https://img.shields.io/badge/NZ-Companies%20Register-00247d)]()
[![NZBN](https://img.shields.io/badge/NZBN%20%2B%20Company%20Number-2da44e)]()
[![KYC](https://img.shields.io/badge/KYC%20%2F%20Due%20Diligence-8250df)]()
[![Export](https://img.shields.io/badge/Export-JSON%20%2F%20CSV%20%2F%20Excel-fb8500)]()

***

### What This Actor Does

This Actor searches New Zealand's official Companies Register and returns structured company data. For each match it captures:

- **Identity** — company name, **company number**, and **NZBN** (New Zealand Business Number)
- **Status** — registered / removed / in liquidation, etc.
- **Type** — entity type (e.g. NZ Limited Company, Overseas company)
- **Link** — the register page for full details

Search one or many company names or keywords; the Actor paginates through every result and dedups by company number.

***

### Why Use This

- **KYC & due diligence.** Verify NZ companies by name, number, NZBN and status — the identifiers compliance and onboarding need.
- **NZBN in every row.** The NZBN is the universal identifier for NZ businesses — perfect for matching and enrichment.
- **Bulk search.** Look up a whole list of names or sweep a keyword across the register.
- **Clean and free.** Reads the official public register — no key, no anti-bot, no browser.

***

### Quick Start

#### Run it in the console (no code)

1. Add **Search terms** — company names or keywords (e.g. `construction`, `air new zealand`).
2. Choose the **Entity type filter** (all or limited companies), set **Max companies**.
3. Click **Start**, then export as **JSON, CSV, Excel or HTML**, or push to Google Sheets, a webhook or a database.

#### Run it via API (Python)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {"searchTerms": ["construction", "holdings"], "maxItems": 500}

run = client.actor("YOUR_USERNAME/nz-companies-scraper").call(run_input=run_input)

for c in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(c["name"], "·", c["companyNumber"], "·", c["nzbn"], "·", c["status"])
```

#### Verify a list of companies (Python)

```python
run = client.actor("YOUR_USERNAME/nz-companies-scraper").call(run_input={
    "searchTerms": ["my target company ltd"], "category": "LTD",
})
for c in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(c["name"], "→", c["nzbn"], c["status"])
```

***

### Input Parameters

| Field | Type | Description |
|---|---|---|
| `searchTerms` | array | Company names or keywords to search. |
| `category` | string | `ALL` (all entity types) or `LTD` (limited companies). |
| `maxItems` | integer | Max companies across all searches. `0` = no limit. |
| `maxPages` | integer | Max pages per search (15 per page). Default `40`. |
| `proxyConfiguration` | object | Apify Proxy. Datacenter is enough (public register). |

***

### Output

Each company is one record:

```json
{
  "companyNumber": "8244957",
  "name": "TW CONSTRUCTION HOLDING COMPANY LIMITED",
  "nzbn": "9429049949711",
  "status": "Registered",
  "entityType": "NZ Limited Company",
  "registerUrl": "https://app.companiesoffice.govt.nz/companies/app/ui/pages/companies/8244957",
  "searchTerm": "construction"
}
```

***

### Use Cases

#### 1. KYC & onboarding

Verify New Zealand companies by name, number, NZBN and status for customer/vendor onboarding and compliance.

#### 2. Due diligence & risk

Check company status (registered vs removed/liquidation) and type before deals or credit decisions.

#### 3. B2B prospecting & enrichment

Build or enrich lists of NZ companies with their NZBN and register links for sales and data pipelines.

#### 4. Market research

Map companies in a sector by keyword to size a market or track new registrations.

***

### Tips

- **NZBN** is the key identifier for matching NZ businesses across datasets.
- **`category: LTD`** narrows results to NZ limited companies; `ALL` includes overseas companies, etc.
- **Use exact names** to verify a specific company, or broad keywords to sweep a sector.
- **Schedule it** with Apify Schedules to monitor status changes.

***

### Frequently Asked Questions

**Do I need an account or key?**
No. The Companies Register is public — no login, key or anti-bot.

**What is the NZBN?**
The New Zealand Business Number — a unique identifier for every NZ business, used across government and industry.

**Does it include directors/addresses?**
This Actor returns the core register fields (name, number, NZBN, status, type) and a link to the full register page.

**What export formats are supported?**
JSON, CSV, Excel, HTML, or via API — plus Google Sheets, webhooks, Make and Zapier.

***

### Legal & Responsible Use

This Actor is an independent tool and is **not affiliated with, endorsed by, or sponsored by the New Zealand Companies Office or NZ Government**. All trademarks are the property of their respective owners. It reads only the public register. Comply with applicable terms and data-protection laws.

# Actor input Schema

## `searchTerms` (type: `array`):

Company names or keywords to search (e.g. "construction", "air new zealand", "holdings"). Each is searched and paginated.

## `category` (type: `string`):

ALL (all entity types), or LTD to limit to NZ limited companies.

## `maxItems` (type: `integer`):

Maximum companies across all searches. 0 = no limit (15 per page).

## `maxPages` (type: `integer`):

Maximum result pages per search term (15 companies per page).

## `proxyConfiguration` (type: `object`):

Apify Proxy. The register is public — datacenter is enough and enabled by default.

## Actor input object example

```json
{
  "searchTerms": [
    "construction"
  ],
  "category": "ALL",
  "maxItems": 100,
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `companyNumber` (type: `string`):

NZ company number

## `name` (type: `string`):

Registered name

## `nzbn` (type: `string`):

NZ Business Number

## `status` (type: `string`):

Registered/Removed/etc

## `entityType` (type: `string`):

Entity type

## `category` (type: `string`):

Search entity filter

## `registerUrl` (type: `string`):

Companies Register URL

## `searchTerm` (type: `string`):

Search term

## `scrapedAt` (type: `string`):

ISO timestamp

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "construction"
    ],
    "category": "ALL",
    "maxItems": 100,
    "maxPages": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/nz-companies-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["construction"],
    "category": "ALL",
    "maxItems": 100,
    "maxPages": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/nz-companies-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "construction"
  ],
  "category": "ALL",
  "maxItems": 100,
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call haketa/nz-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,haketa/nz-companies-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gZg4biSfwciZoAtQa/builds/QLCg8oUKZaZ8jnTpC/openapi.json
