# Australia New Business Feed (`your_friendly_developer/australia-new-business-feed`) Actor

Filter the Australian Business Register XML bulk extract.

- **URL**: https://apify.com/your_friendly_developer/australia-new-business-feed.md
- **Developed by:** [Jason Ramirez](https://apify.com/your_friendly_developer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 registration rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Australia New Business Feed

ABN Lookup is the incumbent for checking individual businesses. When you need a repeatable extract of active ABNs with recent status dates, this Actor turns the Australian Business Register's weekly bulk files into a filtered dataset. Use it for market research and regional monitoring.

### Input

| Field | Purpose |
| --- | --- |
| `fromDate` | Optional inclusive status effective date in YYYY-MM-DD form. Leave blank to include every currently active ABN. |
| `state` | Optional exact state or territory code, such as VIC or NSW. |
| `maxRows` | Result cap. Defaults to 1,000 and accepts up to 50,000. |

The console form starts as a quick sample: registrations from 2024 onward, capped at 100 rows, so a first run finishes fast. For a full pull, raise `maxRows` and set `fromDate` to the earliest status date you want (or clear it for every active ABN).
| `extractUrl` | Optional direct official HTTPS ZIP or XML URL. Leave blank to read the ZIP resources in the public catalogue. |

Source attribution: Australian Business Register. [ABN Lookup bulk extract documentation](https://abr.business.gov.au/Tools/BulkExtract).

### Dataset

Each row includes the ABN, current status, status effective date, record update date, entity type and code, organisation name where present, state, postcode, and extract URL and shard. Individual names are omitted. The run's `OUTPUT` record stores the emitted row count and whether the cap was reached.

The effective date is the start of the current active status. It can reflect reactivation and should not be interpreted as a first incorporation date. Results follow archive traversal order. The cap can stop the scan before it reaches later shards. Repeat runs can contain the same ABNs.

ZIP processing downloads one archive at a time to temporary disk, with a 3 GiB cap per archive. A failed run can leave rows from earlier batches in its dataset. Use a completed run for downstream ingestion.

### Run locally

Use Node.js 22 or later. The ZIP test also uses the `zip` command.

```sh
npm ci
npm test
```

Save your input JSON to `storage/key_value_stores/default/INPUT.json` and run `npm start`. The data source requires no API key.

# Actor input Schema

## `extractUrl` (type: `string`):

Optional direct HTTPS link to an official XML ZIP or XML shard. Leave blank to read ZIP resources from the official data.gov.au catalog.

## `fromDate` (type: `string`):

Optional inclusive date in YYYY-MM-DD form. Leave blank to include every currently active ABN. The prefilled quick start samples registrations from 2024 onward.

## `maxRows` (type: `integer`):

Stop after this many matching ABNs. The prefilled quick start caps at 100 rows; raise it (up to 50,000) for a full pull.

## `state` (type: `string`):

Optional exact state code.

## Actor input object example

```json
{
  "fromDate": "2024-01-01",
  "maxRows": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all matching registrations

## `keyValueStore` (type: `string`):

Default key-value store holding the OUTPUT record (row count and whether the cap was reached)

# 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 = {
    "fromDate": "2024-01-01",
    "maxRows": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("your_friendly_developer/australia-new-business-feed").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 = {
    "fromDate": "2024-01-01",
    "maxRows": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("your_friendly_developer/australia-new-business-feed").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 '{
  "fromDate": "2024-01-01",
  "maxRows": 100
}' |
apify call your_friendly_developer/australia-new-business-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,your_friendly_developer/australia-new-business-feed"
        }
    }
}
```

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/BPRI4yLLoXx9xqhjg/builds/tzrHRhfNbXNeYueUM/openapi.json
