# Netherlands Pdok Address Lookup (`bigibyte/netherlands-pdok-address-lookup`) Actor

Look up Dutch addresses and BAG records via PDOK locatieserver. Run free-text searches or ID lookups, extract official location details, and export clean datasets.

- **URL**: https://apify.com/bigibyte/netherlands-pdok-address-lookup.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Netherlands PDOK Address Lookup

![Netherlands PDOK Address Lookup cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/netherlands-pdok-address-lookup-cover.png)

Find Dutch addresses and location records using PDOK. Search with a free-text address or retrieve a known location by ID. Collect structured address details, municipality information, and BAG-related identifiers, then export your results in JSON, CSV, Excel, or other supported formats.

### What This Actor Does

The **Netherlands PDOK Address Lookup** retrieves location records from the Dutch PDOK Locatieserver.

You can search for an address using ordinary text or retrieve a specific record using its Locatieserver ID. Each result is saved as a structured dataset row containing available address details, location types, municipality information, and related identifiers.

The actor also removes duplicate records based on `pdokId` and stores request errors as dataset rows so that a failed request does not necessarily stop the entire run.

### Search Modes

- **Free Search (`free`):** Search for Dutch addresses or other locations using a text query. You can optionally narrow results with a filter.
- **Lookup by ID (`lookup`):** Retrieve a specific location record using its known PDOK Locatieserver ID.

### Input Example

```json
{
  "mode": "free",
  "q": "Damrak 1",
  "fq": "type:adres",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `free` | Select `free` for text searches or `lookup` for ID-based retrieval. |
| `q` | String | `Damrak 1` | Address or location search query. In lookup mode, provide the Locatieserver ID. |
| `fq` | String | Empty | Optional filter for free searches, such as `type:adres`. |
| `maxItems` | Integer | `100` | Maximum number of records to save per run. Hard maximum: 1,000. |
| `userAgent` | String | `ActorResearch/1.0` | User-agent value used for requests. |
| `requestDelayMs` | Integer | `1000` | Delay between requests in milliseconds. |
| `timeoutSecs` | Integer | `300` | Maximum overall run time in seconds. |
| `requestTimeoutSecs` | Integer | `30` | Timeout for an individual request in seconds. |
| `proxyConfiguration` | Object | Disabled | Optional proxy configuration for requests. |

### Output Example

Each successful result is saved as a separate dataset record.

```json
{
  "bron": "BAG/NWB",
  "woonplaatscode": "3594",
  "locationType": "weg",
  "woonplaatsnaam": "Amsterdam",
  "nwb_id": "031210",
  "openbareruimtetype": "Weg",
  "gemeentecode": "0363",
  "rdf_seealso": "http://bag.basisregistraties.overheid.nl/bag/id/openbare-ruimte/0363300000003187",
  "weergavenaam": "Damrak, Amsterdam",
  "straatnaam_verkort": "Damrak",
  "pdokId": "weg-81c29298a0fcc1e5f933da43c190788a",
  "gemeentenaam": "Amsterdam",
  "identificatie": "0363300000003187",
  "openbareruimte_id": "0363300000003187",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `bron` | Source registration or dataset identifier. |
| `woonplaatscode` | Dutch locality code. |
| `locationType` | Type of location record. |
| `woonplaatsnaam` | Name of the locality. |
| `nwb_id` | Related National Road Database identifier, when available. |
| `openbareruimtetype` | Type of public space, such as a road. |
| `gemeentecode` | Municipality code. |
| `rdf_seealso` | Reference to the related BAG resource. |
| `weergavenaam` | Human-readable location name. |
| `straatnaam_verkort` | Short street name. |
| `pdokId` | Unique PDOK Locatieserver record identifier. |
| `gemeentenaam` | Municipality name. |
| `identificatie` | Related location identification code. |
| `openbareruimte_id` | Public-space identification code. |
| `scrapedAt` | Timestamp indicating when the record was collected. |

### Use Cases

- **Address Enrichment:** Match rough Dutch address strings with structured location names and BAG-related identifiers.
- **Real Estate Research:** Check property listing addresses against available Dutch location records before importing them into a CRM.
- **GIS and Mapping:** Collect municipality, locality, and street information for geographic datasets and mapping workflows.
- **Location Verification:** Retrieve a known location record using its PDOK identifier.
- **Data Analysis:** Build structured address datasets for research, reporting, and spreadsheet workflows.

### Usage and Limits

- **Two search modes:** Choose between free-text search and lookup by ID.
- **Optional filtering:** Narrow free-search results using the `fq` parameter.
- **Maximum records:** Collect up to 1,000 records per run using `maxItems`.
- **Duplicate handling:** Duplicate records are removed using `pdokId`.
- **Request pacing:** The default delay is 1,000 milliseconds between requests.
- **Empty results:** A query with no matches can finish successfully without producing successful result rows.

PDOK provides publicly accessible location information. Use reasonable request intervals, respect applicable service conditions, and review the relevant data reuse and attribution requirements before using collected information.

### Frequently Asked Questions

**1. What is the Netherlands PDOK Address Lookup Actor?**

It is a data collection tool for retrieving Dutch address and location records, including available BAG-related identifiers and municipality information.

**2. Can I search using a street address?**

Yes. Use `mode: "free"` and provide an address or location in the `q` parameter. For example, `Damrak 1`.

**3. Can I retrieve a record using its ID?**

Yes. Set `mode` to `lookup` and provide the known PDOK Locatieserver ID in `q`.

**4. Can I filter address search results?**

Yes. The optional `fq` parameter lets you narrow free-search results. For example, `type:adres` filters for address records.

**5. What export formats are supported?**

You can export the collected dataset in JSON, CSV, Excel, and other formats supported by Apify.

**6. How many records can I collect?**

You can collect up to 1,000 records per run. Set `maxItems` to control the number of records saved.

**7. Can I schedule recurring searches?**

Yes. You can configure an Apify schedule to run the actor automatically at your preferred intervals.

### Related Tools

Explore other BigiByte data collection tools:

- **New Jersey Construction Permits Scraper** – Collect structured public construction permit records.
- **Edmonton Business Licences Scraper** – Retrieve business licence and location information.
- **Providence Business Licenses Scraper** – Collect business licence records for research and analysis.

BigiByte builds custom web scrapers, data extraction tools, and APIs for businesses and developers.

Visit [BigiByte](https://bigibyte.com) to explore our services or discuss your data collection requirements.

### Trademark Notice

PDOK, BAG, and other referenced names and trademarks belong to their respective owners. They are used only to identify the data sources and related services. This actor is independently developed and does not imply any affiliation, sponsorship, endorsement, or partnership with these organizations.

### Disclaimer

This actor is an independent data collection tool. Data availability, accuracy, and completeness depend on the original source. Users are responsible for checking applicable licensing conditions, attribution requirements, and terms of use before using or redistributing collected information.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** Follow applicable privacy laws, including GDPR and CCPA, when collecting or processing personal information.
- **Copyrighted Content:** Check whether collected material is protected by copyright and whether you have permission to reuse or redistribute it.
- **Platform Terms and Rate Limits:** Respect the source's terms of use, request limits, and applicable data licensing requirements.

This information is provided for general guidance only and does not constitute legal advice. For more information, read [Apify's guide to web scraping legality](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

Free-text address search, or lookup a single PDOK locatieserver id.

## `q` (type: `string`):

Free-search query (for example Damrak 1), or a locatieserver id in lookup mode.

## `fq` (type: `string`):

Optional Solr-style filter for free search (for example type:adres).

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

Stop after this many address rows. Hard max is 1000.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

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

Milliseconds to wait before each request for polite pacing (~1 request/second).

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "free",
  "q": "Damrak 1",
  "fq": "type:adres",
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "requestDelayMs": 1000,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "q": "Damrak 1"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/netherlands-pdok-address-lookup").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 = { "q": "Damrak 1" }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/netherlands-pdok-address-lookup").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 '{
  "q": "Damrak 1"
}' |
apify call bigibyte/netherlands-pdok-address-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/netherlands-pdok-address-lookup"
        }
    }
}
```

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/sg11EbCfbDC6t4Gbt/builds/Z5gPF8zNuiXHauJIC/openapi.json
