Installeer de officiële Apify Python Client
Gebruik pip om het officiële `apify-client` pakket te installeren in je Python omgeving.
pip install apify-client
Integratiegids — Python
Integreer RDW, PDOK, netcongestie en waterdata rechtstreeks in je Python scripts en datapipelines.
Gebruik pip om het officiële `apify-client` pakket te installeren in je Python omgeving.
pip install apify-client
Importeer `ApifyClient` en geef je Apify token mee.
from apify_client import ApifyClient
# Initialiseer de client
client = ApifyClient("YOUR_APIFY_TOKEN")
Aanroepvoorbeeld voor de RDW Kentekencheck (`codeclouds/nl-voertuig-risicodossier`).
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')}")
Als je geen SDK wilt installeren, kun je de synchrone REST API-endpoint van Apify aanroepen met `requests`.
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)
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 ApifyZoek 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 ApifyCombineert 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 ApifyJa, de `apify-client` bibliotheek heeft ook een `ApifyClientAsync` klasse voor asyncio ondersteuning.
Ja, importeer de items direct in pandas via `import pandas as pd; df = pd.DataFrame(dataset_items)`.
Alle actors draaien op Apify onder je eigen account. Start meteen met je gratis Apify API token.
Bekijk alle GeoFetch actors →