Integratiegids — Python

GeoFetch Apify actors aanroepen vanuit Python

Integreer RDW, PDOK, netcongestie en waterdata rechtstreeks in je Python scripts en datapipelines.

Relevante termen & koppelingen

Apify Python client RDW API Python PDOK geocoding Python apify-client pip geodata scraping Python

Stap-voor-stap handleiding

1

Installeer de officiële Apify Python Client

Gebruik pip om het officiële `apify-client` pakket te installeren in je Python omgeving.

bash
pip install apify-client
2

Initialiseer de Client met je API Token

Importeer `ApifyClient` en geef je Apify token mee.

python
from apify_client import ApifyClient

# Initialiseer de client
client = ApifyClient("YOUR_APIFY_TOKEN")
3

Voer de Actor uit en haal resultaten op

Aanroepvoorbeeld voor de RDW Kentekencheck (`codeclouds/nl-voertuig-risicodossier`).

python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

# Bereid de actor input voor
run_input = {
    "licensePlate": "12-ABC-3",
    "includeRecalls": True,
    "includeBijtelling": True
}

# Voer de actor uit en wacht op resultaat
run = client.actor("codeclouds/nl-voertuig-risicodossier").call(run_input=run_input)

# Haal de output op uit de dataset
dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items

for item in dataset_items:
    print(f"Merk: {item.get('brand')}, Model: {item.get('model')}")
    print(f"Tellerstand oordeel: {item.get('odometerJudgement')}")
4

Alternatief: Directe HTTP Request (requests library)

Als je geen SDK wilt installeren, kun je de synchrone REST API-endpoint van Apify aanroepen met `requests`.

python
import requests

url = "https://api.apify.com/v2/acts/codeclouds~nl-voertuig-risicodossier/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN"
payload = {"licensePlate": "12-ABC-3"}

response = requests.post(url, json=payload)
data = response.json()

print(data)

Populaire actors voor Python

NL Voertuig Risico- & Waardedossier (RDW Kentekencheck)

Kilometerteller-fraudesignaal, APK-/gebrekenhistorie, openstaande fabrieksterugroepacties, milieuzone-toegang en een bijtellingscalculator per Nederlands kenteken — allemaal uit officiële RDW/NDW open data.

Vanaf $0,012 per kenteken

Bekijk op Apify

NL Adres Geocoding & Buurtdata — PDOK + CBS

Zoek een NL adres, postcode of coördinaat op — geocoding, reverse geocoding en lookup in 1 call via de gratis PDOK-API. Output: WGS84+RD-coördinaten, BAG-ID's, optioneel CBS-buurtdata. Bespaart 3 API-integraties + RD-conversie. Bulk-verwerking, retries. Vanaf $1,50/1.000 (PPE).

Vanaf $0,0015 per adres ($1,50 per 1.000)

Bekijk op Apify

Vastgoeddossier XXL — PDOK + CBS + Klimaat + Fundering

Combineert PDOK-geocoding, CBS-buurtcijfers, nabijheid van voorzieningen (school/bereikbaarheid/groen), geluidsbelasting (RIVM), veiligheid/criminaliteit (CBS), overstromingsrisico (RWS) en funderingsaandachtsgebied (RVO) tot één samengesteld vastgoed-indicatiedossier per adres.

Vanaf $0,02 per adresdossier

Bekijk op Apify

Veelgestelde vragen

Is de Python Apify client asynchroon te gebruiken?

Ja, de `apify-client` bibliotheek heeft ook een `ApifyClientAsync` klasse voor asyncio ondersteuning.

Kan ik Panda DataFrames maken van de actor output?

Ja, importeer de items direct in pandas via `import pandas as pd; df = pd.DataFrame(dataset_items)`.

Klaar om je geodata-workflow te bouwen?

Alle actors draaien op Apify onder je eigen account. Start meteen met je gratis Apify API token.

Bekijk alle GeoFetch actors →