# NSW DA leads: development applications and certificates (`andrewlonie/nsw-planning-application-leads`) Actor

Official NSW DA leads from the Planning Portal open APIs: development applications, complying development certificates, and construction certificates. Filter by council, job size, and date. For builders, trades, and suppliers.

- **URL**: https://apify.com/andrewlonie/nsw-planning-application-leads.md
- **Developed by:** [Andrew Lonie](https://apify.com/andrewlonie) (community)
- **Categories:** Lead generation, Real estate, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 applications

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/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

## NSW DA leads: development applications and construction certificates

Get official NSW DA leads for builders, trades, and suppliers who want to reach new work as it is lodged or certified. The Actor reads development applications (`OnlineDA`), complying development certificates (`OnlineCDC`), and construction certificates (`OnlineCC`) from the official [NSW Planning Portal open APIs](https://www.planningportal.nsw.gov.au/opendata/dataset/online-da-data-api) at `https://api.apps1.nsw.gov.au/eplanning/data/v0/`. The APIs need no key. Each call sends `PageSize`, `PageNumber`, and a `filters` header. A call without those headers returns HTTP 400.

A done-for-you weekly email is also available on the [Planning Lead Feed](https://planning-lead-feed.netlify.app/) site: $99 a month for one council, or $199 a month for up to three councils, with the first week free.

The three feeds are normalised into one dataset. The Actor does not scrape the Planning Portal website, and it does not look up extra contact details.

The data is Creative Commons Attribution. Commercial use needs this attribution, which is also stored on every record:

**Â© State Government of NSW and NSW Department of Planning, Housing and Infrastructure 2021**

### Why use it?

Council and certifier feeds are public, but the three APIs do not share a shape, and several filters are silently ignored. This Actor gives you one scheduled feed with the fields that matter for a lead: portal number, council, status, lodgement and determination dates, cost, development type, site, and, for construction certificates, the official builder legal name.

You can run it on a schedule, call it from the Apify API, or download the dataset as JSON, CSV, or Excel. Set a maximum charge on the run so a wide date range cannot spend more than you choose.

### Example inputs

Use the official council name. `Council of the City of Sydney` matches. `City of Sydney` does not.

Suburb and keyword filters are applied **after download**. The API ignores `Suburb` and `Postcode` and still returns HTTP 200, so this Actor never sends those as API filters. Raise `maxPagesPerSource` when a suburb or keyword is sparse inside a longer date window; only the pages actually fetched can match.

#### 1. One council, last 7 days

```json
{
    "councilNames": ["Council of the City of Sydney"],
    "lookbackDays": 7,
    "maxRecordsPerSource": 50,
    "maxPagesPerSource": 10
}
```

#### 2. Cost-of-development threshold

Applications with an official cost of at least $500,000, across all NSW councils. Records with no cost are dropped when `minCost` is set.

```json
{
    "minCost": 500000,
    "lookbackDays": 14,
    "maxPagesPerSource": 20
}
```

#### 3. Statewide 7-day window (default)

With no input, or with this input, the Actor reads all three APIs for applications lodged in the last 7 days in Australia/Sydney, and saves up to 10 from each source.

```json
{
    "sources": ["DA", "CDC", "CC"],
    "lookbackDays": 7,
    "maxRecordsPerSource": 10
}
```

#### 4. Keyword or suburb, after download

Find solar, pool, or landscaping work, or a single suburb. Matching is case-insensitive against development type, address, status, council, building use, or builder legal name (which can be a sole trader's personal name).

```json
{
    "keywords": ["solar", "swimming pool", "landscap"],
    "suburbs": ["PARRAMATTA"],
    "lookbackDays": 14,
    "maxPagesPerSource": 20
}
```

#### 5. Residential work changed since a date

`applicationLastUpdatedFrom` is the changed-since filter. It is sent as `ApplicationLastUpdatedFrom`. Construction certificates have no development category, so this example reads DA and CDC only.

```json
{
    "sources": ["DA", "CDC"],
    "developmentCategories": ["Residential"],
    "applicationLastUpdatedFrom": "2026-11-24",
    "maxRecordsPerSource": 50
}
```

#### 6. Submission window and maximum cost

`maxCost` is `CostOfDevelopmentTo`. Records with no cost are dropped. Submission dates are sent as `SubmissionDateFrom` and `SubmissionDateTo`.

```json
{
    "submissionDateFrom": "2026-11-01",
    "submissionDateTo": "2026-11-07",
    "maxCost": 500000,
    "maxPagesPerSource": 20
}
```

#### 7. Specific application numbers

Portal numbers replace the lodgement lookback. Council application numbers are matched on development applications only.

```json
{
    "sources": ["DA"],
    "planningPortalApplicationNumbers": ["PAN-683804"],
    "councilApplicationNumbers": ["DA/1730/2026"]
}
```

### What data can it extract?

| Field                                   | What it is                                                                                      |
| --------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `source`                                | `DA`, `CDC`, or `CC`                                                                            |
| `planningPortalApplicationNumber`       | Portal number (PAN, CDC, or CFT)                                                                |
| `councilApplicationNumber`              | Council's number, when the feed has one                                                         |
| `applicationStatus` / `applicationType` | Official status and type. OnlineCC often has no type                                            |
| `councilName`                           | Official council name                                                                           |
| `lodgementDate` / `determinationDate`   | Civil dates, `YYYY-MM-DD`                                                                       |
| `costOfDevelopment`                     | Official cost in Australian dollars                                                             |
| `developmentTypes`                      | Official development type labels                                                                |
| `fullAddress`, `suburb`, `postcode`     | First site. `locations` lists every site                                                        |
| `longitude` / `latitude`                | API X/Y, GDA94                                                                                  |
| `builderLegalName`                      | Official OnlineCC field. A sole trader can appear under their personal name. It is not enriched |
| `certifierAccreditationNumber`          | Official CDC accreditation number, not a contact lookup                                         |
| `attribution`                           | The CC BY line above                                                                            |

`BuilderLegalName` is published by the department. This Actor keeps that field and stops. It does not add phone numbers, emails, ABNs, or applicant names. If `includeRaw` is on, keys that look like email, phone, applicant, or contact details are removed from the attached payload.

### How much will it cost?

Pricing is pay per event. Apify bills in US dollars, shown with a plain $ sign.

| Event               | When it is charged                                            | Price    |
| ------------------- | ------------------------------------------------------------- | -------- |
| `apify-actor-start` | Automatically when the run starts. Do not charge it from code | $0.005 |
| `application`       | Once for each application saved to the dataset                | $0.004 |

One thousand saved applications are about $4.01, plus the start. A default-sized run of 30 records is about $0.13. Rows dropped by filters or dedupe are not charged.

The synthetic `apify-default-dataset-item` event should stay off so a row is not billed twice. Set `minimalMaxTotalChargeUsd` to at least **0.009** (one start plus one application). The Actor stops when `ACTOR_MAX_TOTAL_CHARGE_USD` leaves no room for another application. Memory is limited to 256 to 512 MB so the start event is charged once.

Platform usage for other people's runs is deducted from the developer's payout. This Actor does not pass platform usage on to users.

### How to run it

1. Install dependencies with `npm install`.
2. Install the [Apify CLI](https://docs.apify.com/cli/) (`npm install -g apify-cli`). The current CLI needs Node 22 or newer on the machine that launches it. The Actor image itself is Node 20.
3. Start a run with `apify run`. With no input, the Actor reads all three APIs for applications lodged in the last 7 days in Australia/Sydney, and saves up to 10 from each source.
4. Open `storage/datasets/default/` for the rows and `storage/key_value_stores/default/RUN_SUMMARY.json` for counts. Local storage stays on this machine.

No Apify token is required for a local run. Do not put a token in the repo.

### Input

The full form is the input tab. Dates are `YYYY-MM-DD`. An empty date uses `lookbackDays` (default 7), unless you set a determination window, a submission window, a changed-since date, or specific application numbers. Those replace the lookback instead of being added to it.

Checked against the live endpoints on 30 November 2026, by comparing `TotalCount` with and without each filter:

| Filter                                                 | OnlineDA              | OnlineCDC                          | OnlineCC                                                                         |
| ------------------------------------------------------ | --------------------- | ---------------------------------- | -------------------------------------------------------------------------------- |
| Lodgement dates                                        | Server                | Server                             | Server                                                                           |
| Determination dates                                    | Server                | Server                             | Server                                                                           |
| Submission dates                                       | Server                | Server                             | Server, matched to `DateSubmitted`                                               |
| `ApplicationLastUpdatedFrom` (changed since)           | Server                | Server                             | Server                                                                           |
| `ApplicationLastUpdatedTo`                             | Server, exclusive end | Server, exclusive end              | Server, exclusive end                                                            |
| `CostOfDevelopmentFrom` / `To` (`minCost` / `maxCost`) | Server                | Server                             | Server                                                                           |
| `DevelopmentCategory`                                  | Server                | Server                             | Not applied. Every category returned 0 rows, and the field is not in the payload |
| `ApplicationStatus` array                              | Server                | Server                             | Server                                                                           |
| `PlanningPortalApplicationNumber` array                | Server                | Server                             | Server                                                                           |
| `CouncilApplicationNumber` array                       | Server                | Not on this feed. Rows are dropped | Not on this feed. Rows are dropped                                               |
| `CouncilName` array of official names                  | Server                | Server                             | Server                                                                           |
| Suburb, postcode, keyword, partial council name        | After download        | After download                     | After download                                                                   |

`DateLastUpdatedFrom` does not narrow OnlineDA (the full corpus came back) and is not sent. The DA dictionary status values are Additional Information Requested, Determined, Pending lodgement, Rejected, Pending Court Appeal, Under Assessment, Withdrawn, Deferred Commencement, and On Exhibition. CDC and CC also use Approved, Submitted, and Cancelled. `Pending lodgement` matches the API's `Pending Lodgement`.

Development categories are Residential, Commercial, Industrial, Recreational, and Other. Residential, Commercial, Industrial, and Other reduced the DA count. Recreational returned no DA rows for lodgements from June through November 2026. The dictionary is in [`docs/online-da-api-v2.0.pdf`](docs/online-da-api-v2.0.pdf). An empty `filters` object would otherwise dump the entire feed. This Actor always sends a real filter.

`maxPagesPerSource` (default 10) stops a wide scan. The run summary sets `truncatedByMaxPages` when that happens.

`incremental` stores seen portal numbers in the named key-value store `stateStoreName` (default `nsw-planning-leads-state`), under the key `SEEN`. The same status and last-updated time is skipped next run. A changed status is saved again. The store keeps the newest 20,000 fingerprints.

### Output

Download the dataset as JSON, CSV, Excel, or HTML from the output tab. Coordinates are GDA94. The first site is flattened, and every site is in `locations`.

```json
{
    "source": "DA",
    "planningPortalApplicationNumber": "PAN-000001",
    "applicationStatus": "Under Assessment",
    "councilName": "Example Council",
    "lodgementDate": "2026-11-20",
    "costOfDevelopment": 250000,
    "developmentTypes": ["Dwelling house"],
    "fullAddress": "1 Example Street, Sampletown NSW 2000",
    "suburb": "SAMPLETOWN",
    "postcode": "2000",
    "latitude": -33.8,
    "longitude": 151.2,
    "coordinateDatum": "GDA94",
    "builderLegalName": null,
    "attribution": "Â© State Government of NSW and NSW Department of Planning, Housing and Infrastructure 2021",
    "sourceApi": "https://api.apps1.nsw.gov.au/eplanning/data/v0/OnlineDA"
}
```

`RUN_SUMMARY` in the default key-value store records how many rows each source saved, the date window, whether the page cap or the charge limit stopped the run, and any source that failed. One failed source does not drop the other two. If all three fail, the run fails.

### Tips

- Schedule a daily run with `incremental` on and a short lookback so you pay for new and changed applications.
- Raise `maxPagesPerSource` when a council or suburb filter is sparse inside a long date range. Only the pages actually fetched can match a client-side filter.
- `pageSize` may be up to 1000. The default date-only run requests only as many rows as the record caps need.

### TODO

- **Victoria and Queensland.** This Actor is NSW only. VIC and QLD planning feeds are not connected.
- **Construction certificate docs.** `OnlineCC` is live and needs no key. data.nsw.gov.au has packages for Online DA, Online CDC, and Online PCC, and no `online-cc-data-api` package. Planning Portal HTML returns HTTP 202 to non-browser clients, so the official CC documentation page is still unconfirmed.
- **Rate limits.** None are published. Calls are sequential, `requestDelayMs` defaults to 300, and HTTP 429 and 5xx are retried up to three times. Tune the delay after real 429 responses.

### FAQ, licence, and support

#### Is this allowed for commercial use?

The department publishes these feeds under Creative Commons Attribution. Keep the attribution above in every copy of the data, including products you build from the dataset. This repository's code licence is separate and is ISC.

#### Does a record contain personal data?

The Actor does not collect applicant contacts. `builderLegalName` is an official construction-certificate field and can be a natural person's name when the builder is a sole trader. Treat it as personal data under the Privacy Act and the GDPR if you store or combine it. Do not use it to build a contact list. There is no enrichment step to add.

#### Why did a council filter return nothing?

The API matches the full official name. Partial names such as `Sydney` are filtered after download, and only inside the pages the run fetched. A name that contains `Council` is sent to the API as well. If that name is wrong, the API returns zero rows rather than the unfiltered feed.

#### How do I test without calling the live APIs?

`npm test` runs the unit tests. `npm run test:live` also requests one recent row from each live endpoint and is off unless `LIVE_SMOKE=1`. CI runs `npm test` only.

# Actor input Schema

## `sources` (type: `array`):

Which official feeds to read. Use DA for development applications (OnlineDA), CDC for complying development certificates (OnlineCDC), and CC for construction certificates (OnlineCC).

## `lookbackDays` (type: `integer`):

Used only when both lodgement dates and both determination dates are empty. The run then requests applications lodged on today or the previous days in Australia/Sydney, including today.

## `lodgementDateFrom` (type: `string`):

First lodgement day, YYYY-MM-DD. Sent as LodgementDateFrom. Leave empty to use lookback days, unless a determination window is set.

## `lodgementDateTo` (type: `string`):

Last lodgement day, YYYY-MM-DD, inclusive. Sent as LodgementDateTo.

## `determinationDateFrom` (type: `string`):

First determination day, YYYY-MM-DD. Sent as DeterminationDateFrom. When this or the end date is set and lodgement dates are empty, lookback days are not applied.

## `determinationDateTo` (type: `string`):

Last determination day, YYYY-MM-DD, inclusive. Sent as DeterminationDateTo. Confirmed on OnlineDA, OnlineCDC, and OnlineCC.

## `submissionDateFrom` (type: `string`):

First submission day, YYYY-MM-DD, inclusive. Sent as SubmissionDateFrom on all three feeds. OnlineCC matches this against DateSubmitted. When this or the end date is set and no lodgement or determination window is set, lookback days are not applied.

## `submissionDateTo` (type: `string`):

Last submission day, YYYY-MM-DD, inclusive. Sent as SubmissionDateTo.

## `applicationLastUpdatedFrom` (type: `string`):

Changed-since day, YYYY-MM-DD. Sent as ApplicationLastUpdatedFrom. On 30 November 2026 this reduced the DA feed from the full corpus to applications whose DateLastUpdated is on or after that day (16,869 since 1 November, 975 since 28 November). DateLastUpdatedFrom is ignored and is not sent. When this is set and no lodgement, submission, or determination window is set, lookback days are not applied.

## `applicationLastUpdatedTo` (type: `string`):

Last changed day, YYYY-MM-DD, inclusive. The API treats ApplicationLastUpdatedTo as an exclusive end, and a same-day from/to returns no rows, so the Actor sends the next day and then keeps rows whose DateLastUpdated falls on or before this day. An end date without a start date is applied after download inside the lodgement window, because To alone barely narrows the feed.

## `developmentCategories` (type: `array`):

Dictionary DevelopmentCategory values: Residential, Commercial, Industrial, Recreational, or Other. Sent as an array for OnlineDA and OnlineCDC. Residential, Commercial, Industrial, and Other reduced the DA count. Recreational returned no DA rows from June to November 2026. OnlineCC returns zero rows for every category and has no category field, so construction certificates are not filtered by category.

## `planningPortalApplicationNumbers` (type: `array`):

PlanningPortalApplicationNumber values, such as PAN-683804, CDC-380830, or CFT-1039664. Sent as an array. A two-number DA query returned exactly those two applications. This replaces the lodgement lookback.

## `councilApplicationNumbers` (type: `array`):

CouncilApplicationNumber values. Sent as an array for OnlineDA, where one number returned that application. OnlineCDC and OnlineCC do not have this field, so those rows are dropped when the filter is set.

## `councilNames` (type: `array`):

Matched against the official CouncilName, case-insensitively. An exact name, or a phrase of at least 6 characters contained in the name, is kept. One value that contains the word Council is also sent as CouncilName. Use the portal's name, for example Council of the City of Sydney, not City of Sydney.

## `statuses` (type: `array`):

ApplicationStatus values. The DA data dictionary enum is Additional Information Requested, Determined, Pending lodgement, Rejected, Pending Court Appeal, Under Assessment, Withdrawn, Deferred Commencement, and On Exhibition. OnlineCDC and OnlineCC also use Approved, Submitted, and Cancelled. One or more values are sent as an array. Matching is case-insensitive, so Pending lodgement also matches Pending Lodgement.

## `applicationTypes` (type: `array`):

Matched when the official ApplicationType contains the text, for example Development Application or Modification. A single value is also sent as ApplicationType. OnlineCC often omits ApplicationType.

## `suburbs` (type: `array`):

Applied after download. The API ignores a Suburb filter and returns the whole date window. Matching is case-insensitive against any site on the application.

## `postcodes` (type: `array`):

Applied after download. A Postcode header is ignored by the API. Digits are compared, so 2000 and NSW 2000 match the same site.

## `keywords` (type: `array`):

Applied after download. A record is kept when any keyword appears in the development type, address, status, council, building use, or builder legal name. Builder legal name can be a sole trader's personal name.

## `minCost` (type: `number`):

Keep applications whose CostOfDevelopment is at least this many Australian dollars. Also sent as CostOfDevelopmentFrom. Records with no cost are dropped when this is set. Leave empty to ignore.

## `maxCost` (type: `number`):

CostOfDevelopmentTo. Keep applications whose official cost is at most this many Australian dollars. Confirmed to narrow OnlineDA, OnlineCDC, and OnlineCC. Records with no cost are dropped. Leave empty to ignore.

## `maxRecords` (type: `integer`):

Stop after this many saved applications across all sources. 0 means no total cap, other than the per-source cap and the page cap.

## `maxRecordsPerSource` (type: `integer`):

Stop each of DA, CDC, and CC after this many saved applications. 0 means no per-source cap.

## `pageSize` (type: `integer`):

PageSize header. The live API accepts at least 1 to 1000. A run whose filters are all applied by the API asks for just enough rows to fill the caps. Suburb, postcode, keyword, a partial council name, and more than one application type scan full pages.

## `maxPagesPerSource` (type: `integer`):

Safety cap so a wide date range cannot walk the whole feed. The run summary says when this cap stopped a source early.

## `requestDelayMs` (type: `integer`):

Pause between API calls. The department does not publish a rate limit. The default is a conservative starting point, not a measured quota.

## `incremental` (type: `boolean`):

Skip an application already saved with the same status and last-updated time. A later status or update is saved again. State is kept in the named key-value store, not in the run's default store.

## `stateStoreName` (type: `string`):

Named key-value store used when incremental dedupe is on. The seen set is the SEEN record.

## `includeRaw` (type: `boolean`):

Add the official API object as raw. Keys that look like email, phone, applicant, or contact details are removed. BuilderLegalName is kept and can be a sole trader's personal name.

## Actor input object example

```json
{
  "sources": [
    "DA",
    "CDC",
    "CC"
  ],
  "lookbackDays": 7,
  "lodgementDateFrom": "",
  "lodgementDateTo": "",
  "determinationDateFrom": "",
  "determinationDateTo": "",
  "submissionDateFrom": "",
  "submissionDateTo": "",
  "applicationLastUpdatedFrom": "",
  "applicationLastUpdatedTo": "",
  "developmentCategories": [],
  "planningPortalApplicationNumbers": [],
  "councilApplicationNumbers": [],
  "councilNames": [],
  "statuses": [],
  "applicationTypes": [],
  "suburbs": [],
  "postcodes": [],
  "keywords": [],
  "maxRecords": 30,
  "maxRecordsPerSource": 10,
  "pageSize": 100,
  "maxPagesPerSource": 10,
  "requestDelayMs": 300,
  "incremental": false,
  "stateStoreName": "nsw-planning-leads-state",
  "includeRaw": false
}
```

# Actor output Schema

## `applications` (type: `string`):

Dataset of normalised planning applications.

## `summary` (type: `string`):

Counts, date window, and any source errors for this run.

# 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 = {
    "sources": [
        "DA",
        "CDC",
        "CC"
    ],
    "lookbackDays": 7,
    "lodgementDateFrom": "",
    "lodgementDateTo": "",
    "determinationDateFrom": "",
    "determinationDateTo": "",
    "submissionDateFrom": "",
    "submissionDateTo": "",
    "applicationLastUpdatedFrom": "",
    "applicationLastUpdatedTo": "",
    "developmentCategories": [],
    "planningPortalApplicationNumbers": [],
    "councilApplicationNumbers": [],
    "councilNames": [],
    "statuses": [],
    "applicationTypes": [],
    "suburbs": [],
    "postcodes": [],
    "keywords": [],
    "maxRecords": 30,
    "maxRecordsPerSource": 10,
    "pageSize": 100,
    "maxPagesPerSource": 10,
    "requestDelayMs": 300,
    "incremental": false,
    "stateStoreName": "nsw-planning-leads-state",
    "includeRaw": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("andrewlonie/nsw-planning-application-leads").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 = {
    "sources": [
        "DA",
        "CDC",
        "CC",
    ],
    "lookbackDays": 7,
    "lodgementDateFrom": "",
    "lodgementDateTo": "",
    "determinationDateFrom": "",
    "determinationDateTo": "",
    "submissionDateFrom": "",
    "submissionDateTo": "",
    "applicationLastUpdatedFrom": "",
    "applicationLastUpdatedTo": "",
    "developmentCategories": [],
    "planningPortalApplicationNumbers": [],
    "councilApplicationNumbers": [],
    "councilNames": [],
    "statuses": [],
    "applicationTypes": [],
    "suburbs": [],
    "postcodes": [],
    "keywords": [],
    "maxRecords": 30,
    "maxRecordsPerSource": 10,
    "pageSize": 100,
    "maxPagesPerSource": 10,
    "requestDelayMs": 300,
    "incremental": False,
    "stateStoreName": "nsw-planning-leads-state",
    "includeRaw": False,
}

# Run the Actor and wait for it to finish
run = client.actor("andrewlonie/nsw-planning-application-leads").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 '{
  "sources": [
    "DA",
    "CDC",
    "CC"
  ],
  "lookbackDays": 7,
  "lodgementDateFrom": "",
  "lodgementDateTo": "",
  "determinationDateFrom": "",
  "determinationDateTo": "",
  "submissionDateFrom": "",
  "submissionDateTo": "",
  "applicationLastUpdatedFrom": "",
  "applicationLastUpdatedTo": "",
  "developmentCategories": [],
  "planningPortalApplicationNumbers": [],
  "councilApplicationNumbers": [],
  "councilNames": [],
  "statuses": [],
  "applicationTypes": [],
  "suburbs": [],
  "postcodes": [],
  "keywords": [],
  "maxRecords": 30,
  "maxRecordsPerSource": 10,
  "pageSize": 100,
  "maxPagesPerSource": 10,
  "requestDelayMs": 300,
  "incremental": false,
  "stateStoreName": "nsw-planning-leads-state",
  "includeRaw": false
}' |
apify call andrewlonie/nsw-planning-application-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andrewlonie/nsw-planning-application-leads"
        }
    }
}
```

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/MlodDS1jwe8HEItuL/builds/FNm3M6MFPUfV7CuoA/openapi.json
