{
    "openapi": "3.1.2",
    "info": {
        "title": "GetApi",
        "version": "0.0.1",
        "description": "## Authenticatie\n\nAlle API-endpoints vereisen authenticatie. Stuur je API-sleutel mee met **\u00e9\u00e9n** van deze methoden:\n\n**Optie 1 \u2014 X-Api-Key-header (aanbevolen)**\n```\nX-Api-Key: ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\n**Optie 2 \u2014 Bearer-token**\n```\nAuthorization: Bearer ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\nJe API-sleutels beheer je in je [dashboard](https://getapi.nl/dashboard).\n\n## AI- en agentbetalingen (x402)\n\nSommige endpoints ondersteunen directe betalingen voor AI-agents via het **x402**-protocol (https://www.x402.org).\nEen API-sleutel of account is niet nodig. Stuur een normaal verzoek zonder sleutel;\nde server antwoordt met **HTTP 402** en een `PAYMENT-REQUIRED`-header:\n\n```\nPAYMENT-REQUIRED: <base64 JSON PaymentRequirements>\n```\n\nDeze base64-string bevat onder andere `network`, `asset`, `amount` en `payTo`.\nJe agent ondertekent een EIP-3009 *transferWithAuthorization* voor het opgegeven `amount` in USDC naar dat `payTo`-adres,\ncodeert de handtekening als base64 en verstuurt het verzoek opnieuw met:\n\n```\nPAYMENT-SIGNATURE: <base64 SignedAuthorization>\n```\n\nDe server verifieert de handtekening via een facilitator, levert de data en settle de betaling on-chain.\nDe succesresponse bevat een `PAYMENT-RESPONSE`-header met de transactiegegevens.\nEen eenmalige `nonce` voorkomt replay-aanvallen. Betalingen gaan in USDC op **Base**;\nde prijs wordt bepaald door de `credit_cost` van het endpoint.\n\n## Credits en foutcodes\n\n- Alleen een geslaagde call met data (HTTP 2xx) kost credits. Bij 4xx, 5xx, een leeg antwoord (`found:false`) of een validatiefout wordt niets afgeschreven.\n- Een leeg saldo geeft **HTTP 402** met `error: insufficient_credits`, `topup_url` en `X-Credits-Remaining: 0`. Er is geen `Retry-After`; wachten helpt niet.\n- Een te hoog requesttempo geeft **HTTP 429** met `error: rate_limited`, `retry_after` en de `Retry-After`-header. De limiet geldt per minuut per API-sleutel; `X-RateLimit-Reset` is een Unix-timestamp, `Retry-After` is in seconden.\n- Een x402-betaalchallenge gebruikt ook **402**, maar bevat een `accepts`-array in de body en/of een `PAYMENT-REQUIRED`-header. Zo onderscheid je hem van een leeg saldo.\n- Stuur bij GET-requests met creditkosten een `Idempotency-Key` mee: dezelfde sleutel binnen 10 minuten levert hetzelfde antwoord en boekt maximaal \u00e9\u00e9n keer af.",
        "contact": {
            "email": "info@wdnoord.nl"
        },
        "x-guidance": "GetAPI.nl is een Nederlandse API-platform voor lookups en validaties (postcode,\nadres, kenteken, BTW, e-mail, KVK, IBAN, energiemaatwerk, overheidsdata). Elke\nendpoint accepteert een API key via de X-Api-Key header of Authorization:\nBearer <key>.\n\nSommige endpoints zijn ook direct betaalbaar voor AI-agents via het x402-protocol\n(https://www.x402.org) zonder account of API key: stuur een verzoek zonder key,\nde server antwoordt met HTTP 402 en een PAYMENT-REQUIRED header (base64 JSON met\nnetwork, asset, amount, payTo). Teken daarna een EIP-3009 transferWithAuthorization\nvoor het gevraagde bedrag in USDC op Base en hertrail met een PAYMENT-SIGNATURE\nheader. De server verifieert, levert de data en settleert on-chain.\n\nTips voor agents:\n- Lees eerst de PAYMENT-REQUIRED header van een 402-antwoord; die is leidend.\n- Geef altijd de exact door de server gevraagde parameters mee.\n- Een endpoint met een \"x-payment-info\" blok vereist betaling voor gebruik."
    },
    "servers": [
        {
            "url": "https://api.getapi.nl",
            "description": "GetAPI"
        }
    ],
    "security": [
        {
            "ApiKeyAuth": []
        },
        {
            "BearerAuth": []
        },
        {
            "ApiKeyAuth": []
        },
        {
            "BearerAuth": []
        }
    ],
    "paths": {
        "/v1/ndw/laadpunten": {
            "get": {
                "operationId": "ndw.laadpunten",
                "description": "Retourneert een lijst van alle openbaar toegankelijke laadpunten in Nederland. Data is afkomstig van het NDW Open Data-platform (DOT-NL); per laadpunt worden alle beschikbare bronvelden teruggegeven, inclusief de volledige `availabilities` (aantallen, vermogen, stroomsoort, tarief-ID's en connectorformaat per connector). Optioneel pagineren met `page` (plus `per_page`, max 500; alleen dan bevat de response een `meta`-blok). Filter op stad, status, beschikbaarheid of connectortype.",
                "summary": "Laadpunten lijst",
                "tags": [
                    "NDW - Charging points",
                    "NdwLaadpunten"
                ],
                "parameters": [
                    {
                        "name": "city",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 32
                        }
                    },
                    {
                        "name": "connector_types[]",
                        "in": "query",
                        "schema": {
                            "type": [
                                "array",
                                "null"
                            ],
                            "items": {
                                "type": "string",
                                "maxLength": 64
                            }
                        }
                    },
                    {
                        "name": "beschikbaar",
                        "in": "query",
                        "schema": {
                            "type": [
                                "boolean",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "List of charging points",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "examples": [
                                        {
                                            "total": 1,
                                            "results": [
                                                {
                                                    "id": "NL-ALL-NLLOC006433",
                                                    "name": null,
                                                    "operator": "Allego",
                                                    "latitude": 51.932396,
                                                    "longitude": 5.567213,
                                                    "address": "Nedereindsestraat 27 d",
                                                    "city": null,
                                                    "postal_code": null,
                                                    "country": "NLD",
                                                    "cpo_id": "ALL",
                                                    "owner_name": "Allego",
                                                    "suboperator_name": null,
                                                    "connector_types": [
                                                        "IEC_62196_T2"
                                                    ],
                                                    "availabilities": [
                                                        {
                                                            "total": 2,
                                                            "available": 2,
                                                            "power_max": 11040,
                                                            "power_type": "AC3",
                                                            "tariff_ids": [
                                                                "1683"
                                                            ],
                                                            "connector_type": "IEC_62196_T2",
                                                            "connector_format": "SOCKET"
                                                        }
                                                    ],
                                                    "status": "UNAVAILABLE",
                                                    "source_updated_at": "2026-05-14T12:10:00+00:00"
                                                }
                                            ]
                                        }
                                    ],
                                    "properties": {
                                        "total": {
                                            "type": "integer",
                                            "description": "Totaal aantal gevonden resultaten."
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "page": {
                                                    "type": "integer",
                                                    "description": "Huidige pagina."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Aantal resultaten per pagina."
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "description": "Laatste pagina."
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Totaal aantal resultaten."
                                                }
                                            },
                                            "required": [
                                                "page",
                                                "per_page",
                                                "last_page",
                                                "total"
                                            ],
                                            "description": "Paginering van de resultaten."
                                        },
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "Identificatie van de laadlocatie bij NDW."
                                                    },
                                                    "name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Naam van de laadlocatie, indien bekend."
                                                    },
                                                    "operator": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Exploitant van de laadlocatie."
                                                    },
                                                    "latitude": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "Breedtegraad van de laadlocatie."
                                                    },
                                                    "longitude": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ],
                                                        "description": "Lengtegraad van de laadlocatie."
                                                    },
                                                    "address": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Adres van de laadlocatie."
                                                    },
                                                    "city": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Plaatsnaam."
                                                    },
                                                    "postal_code": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Postcode van de laadlocatie."
                                                    },
                                                    "country": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Land (ISO 3166-1 alpha-3), bijvoorbeeld NLD."
                                                    },
                                                    "cpo_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Identificatie van de exploitant (Charge Point Operator)."
                                                    },
                                                    "owner_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Naam van de eigenaar van de laadlocatie."
                                                    },
                                                    "suboperator_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Naam van de suboperator, indien van toepassing."
                                                    },
                                                    "connector_types": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        },
                                                        "description": "Connectortypes die op de locatie beschikbaar zijn."
                                                    },
                                                    "availabilities": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "total": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ],
                                                                    "description": "Totaal aantal connectors van dit type."
                                                                },
                                                                "available": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ],
                                                                    "description": "Aantal beschikbare connectors van dit type."
                                                                },
                                                                "power_max": {
                                                                    "type": [
                                                                        "number",
                                                                        "null"
                                                                    ],
                                                                    "description": "Maximaal laadvermogen in watt."
                                                                },
                                                                "power_type": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "Soort stroom, bijvoorbeeld AC3."
                                                                },
                                                                "tariff_ids": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "description": "Identificaties van de tarieven die voor deze connector gelden."
                                                                },
                                                                "connector_type": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "Type connector, bijvoorbeeld IEC_62196_T2."
                                                                },
                                                                "connector_format": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "Uitvoering van de connector, bijvoorbeeld SOCKET (contactdoos) of CABLE (vaste kabel)."
                                                                }
                                                            },
                                                            "required": [
                                                                "total",
                                                                "available",
                                                                "power_max",
                                                                "power_type",
                                                                "tariff_ids",
                                                                "connector_type",
                                                                "connector_format"
                                                            ]
                                                        },
                                                        "description": "Beschikbaarheid per type connector."
                                                    },
                                                    "status": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Actuele status van de laadlocatie, bijvoorbeeld AVAILABLE of UNAVAILABLE."
                                                    },
                                                    "source_updated_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "Tijdstip van de laatste update in de bron."
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "operator",
                                                    "latitude",
                                                    "longitude",
                                                    "address",
                                                    "city",
                                                    "postal_code",
                                                    "country",
                                                    "cpo_id",
                                                    "owner_name",
                                                    "suboperator_name",
                                                    "connector_types",
                                                    "availabilities",
                                                    "status",
                                                    "source_updated_at"
                                                ]
                                            },
                                            "description": "De gevonden laadlocaties."
                                        }
                                    },
                                    "required": [
                                        "total",
                                        "results"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "402": {
                        "description": "Payment Required"
                    }
                },
                "x-payment-info": {
                    "price": {
                        "mode": "fixed",
                        "currency": "USD",
                        "amount": "0.005000"
                    },
                    "protocols": [
                        {
                            "x402": {}
                        }
                    ]
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "ApiKeyAuth": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Key"
            },
            "BearerAuth": {
                "type": "http",
                "scheme": "bearer"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Unprocessable content",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "error": {
                                    "type": "string",
                                    "description": "Machine-readable error code."
                                },
                                "message": {
                                    "type": "string",
                                    "description": "Human-readable error message."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "error",
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}