Skip to main content

Official Python SDK for the OmniZoek API — Dutch government data in one line of code

Project description

omnizoek · Python SDK

Official Python SDK for the OmniZoek API — Dutch government data (address enrichment, IBAN/BIC, VAT, energy labels, emission zones, minimum wage, and more) in one line of code.

from omnizoek import OmniClient

client = OmniClient(api_key="omni_live_...")

# Address enrichment (BAG + PDOK)
address = client.geo.enrich_address(postcode="1012LG", house_number="1")
print(address.street, address.city)  # Damrak Amsterdam

# IBAN → BIC
bic = client.finance.iban_to_bic(iban="NL91ABNA0417164300")
print(bic.bic, bic.bank_name)  # ABNANL2A ABN AMRO Bank N.V.

# Minimum wage
wage = client.hr.minimum_wage(age=21, date="2026-01-01")
print(f"€{wage.hourly_eur}/hour")  # €14.06/hour

Installation

pip install omnizoek

Requires Python 3.10+.

Quick start

from omnizoek import OmniClient

client = OmniClient(api_key="omni_live_...")

Get an API key at omnizoek.nl/signup. Use omni_test_... keys for development — they return fixture data and are never billed.

Async support

Every method has an async counterpart via AsyncOmniClient:

import asyncio
from omnizoek import AsyncOmniClient

async def main():
    async with AsyncOmniClient(api_key="omni_live_...") as client:
        address = await client.geo.enrich_address(postcode="1012LG", house_number="1")
        print(address.street)

asyncio.run(main())

Endpoints

Geo

address = client.geo.enrich_address(postcode="1012LG", house_number="1")
# → AddressEnrichResponse

Finance

bic     = client.finance.iban_to_bic(iban="NL91ABNA0417164300")
# → IbanToBicResponse

vat     = client.finance.vat_verify(country_code="NL", vat_number="004495445B01")
# → VatVerifyResponse

Compliance

result  = client.compliance.validate_finance(type="bsn", number="123456782")
# → FinanceValidationResponse

HR

wage    = client.hr.minimum_wage(age=21, date="2026-01-01")
# → MinimumWageResponse

holiday = client.hr.holiday_surcharge(date="2026-04-27", industry="horeca")
# → HolidaySurchargeResponse

Real Estate

label   = client.real_estate.energy_label(postcode="1012LG", house_number="1")
# → EnergyLabelResponse

Logistics

zone    = client.logistics.emission_zone(kenteken="V-123-AB")
# → EmissionZoneResponse

transit = client.logistics.transit_disruptions(station_code="ASD")
# → TransitDisruptionsResponse

Energy

grid    = client.energy.grid_trigger(country_code="NL")
# → GridTriggerResponse

Error handling

from omnizoek import OmniClient
from omnizoek.exceptions import OmniAuthError, OmniNotFoundError, OmniRateLimitError, OmniError

client = OmniClient(api_key="omni_live_...")

try:
    address = client.geo.enrich_address(postcode="9999XX", house_number="1")
except OmniNotFoundError:
    print("Address not found")
except OmniRateLimitError as e:
    print(f"Rate limited, retry after {e.retry_after}s")
except OmniAuthError:
    print("Invalid API key")
except OmniError as e:
    print(f"API error: {e}")
Exception HTTP status When
OmniAuthError 401 Invalid or missing API key
OmniNotFoundError 404 Resource not found
OmniRateLimitError 429 Rate limit exceeded
OmniServerError 5xx Upstream API unavailable
OmniError Any Base class for all SDK errors

CLI

omnizoek address 1012LG 1
omnizoek iban NL91ABNA0417164300
omnizoek wage 21 2026-01-01
omnizoek vat NL 004495445B01

Set your API key via environment variable:

export OMNIZOEK_API_KEY=omni_live_...

Client options

OmniClient(
    api_key="omni_live_...",   # or set OMNIZOEK_API_KEY env var
    base_url="https://api.omnizoek.nl",  # default
    timeout=10.0,              # seconds, default 10
    max_retries=3,             # retries on 429/5xx, default 3
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnizoek-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnizoek-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file omnizoek-0.1.0.tar.gz.

File metadata

  • Download URL: omnizoek-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for omnizoek-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1f0ff3f00400a4a6cc7e5075dbe358f68febfd1c637058ae0c7ea8006373db16
MD5 9eb53cc8f3daa3e2579769aabaf64f06
BLAKE2b-256 da4465e9535f679c3b2e43a96760e1b10ed8cc401f91fac1b29c93729c266c88

See more details on using hashes here.

File details

Details for the file omnizoek-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: omnizoek-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for omnizoek-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2483ce5fc180a9bddb5c49467e6fe7c850a8d4026404db62aed336760acb2550
MD5 ec6d73a6e64eea75c03b0de21009ed49
BLAKE2b-256 70878b822c1bf26ff516a5e82a5ac7d7e03e811b59c5d666fb8df8f37398e3a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page