{
    "openapi": "3.1.0",
    "info": {
        "title": "GetApi",
        "version": "0.0.1",
        "description": "## Authentication\n\nAll API endpoints require authentication. Include your API key in every request using **one** of the following methods:\n\n**Option 1 \u2014 X-Api-Key header (recommended)**\n```\nX-Api-Key: ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\n**Option 2 \u2014 Bearer token**\n```\nAuthorization: Bearer ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\nYou can generate and manage API keys in your [dashboard](https://getapi.nl/dashboard).\n\n## AI & Agent Payments (x402)\n\nSome endpoints support direct payments for AI agents via the **x402** protocol (https://www.x402.org).\nNo API key or account is needed. Send a normal request without key;\nthe server will respond with **HTTP 402** and a `PAYMENT-REQUIRED` header:\n\n```\nPAYMENT-REQUIRED: <base64 JSON PaymentRequirements>\n```\n\nThis base64 string contains, among other things, `network`, `asset`, `amount`, and `payTo`. \nYour agent signs an EIP-3009 *transferWithAuthorization* for the specified `amount` of USDC to that `payTo` address, \nencodes the signature as base64, and resubmits the request with:\n\n```\nPAYMENT-SIGNATURE: <base64 SignedAuthorization>\n```\n\nThe server verifies the signature via a facilitator, provides the data, and settles the payment on-chain. \nThe success response includes a `PAYMENT-RESPONSE` header containing the transaction information. \nA one-time `nonce` prevents replay attacks. Payments are made in USDC on **Base**; \nthe price is determined by the `credit_cost` of the endpoint.",
        "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/emissiezones": {
            "get": {
                "operationId": "ndw.emissiezones",
                "description": "Geeft een overzicht van alle milieuzones (lage-emissiezones en nul-emissiezones) in Nederland.\nData afkomstig van het NDW Open Data platform (DATEX II formaat).\nOptioneel te pagineren met `page` (+ `per_page`, max 500; alleen dan bevat de\nresponse een `meta`-blok). Filteren\nop type zone of stad.",
                "summary": "Emissiezones lijst",
                "tags": [
                    "NDW - Emissiezones",
                    "NdwEmissiezones"
                ],
                "parameters": [
                    {
                        "name": "zone_type",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "low_emission",
                                "zero_emission"
                            ]
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "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": "Lijst van emissiezones",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "examples": [
                                        {
                                            "total": 1,
                                            "results": [
                                                {
                                                    "id": "NDW11_1022dd10-d4f5-47b1-9cc4-02219b3fb7b1",
                                                    "name": "Milieuzone Arnhem",
                                                    "city": "Arnhem",
                                                    "zone_type": "low_emission",
                                                    "controlled_zone_type": "lowemissionzone",
                                                    "status": "active",
                                                    "url_for_further_information": "https://www.arnhem.nl/stad_en_wijken/Wegen_en_vervoer/milieuzones",
                                                    "regulation_id": "stcrt-2020-31211",
                                                    "access_restriction_type": "noEntry",
                                                    "geometry": {
                                                        "type": "Polygon",
                                                        "coordinates": [
                                                            [
                                                                [
                                                                    5.87,
                                                                    51.97
                                                                ],
                                                                [
                                                                    5.93,
                                                                    51.97
                                                                ],
                                                                [
                                                                    5.93,
                                                                    51.99
                                                                ],
                                                                [
                                                                    5.87,
                                                                    51.99
                                                                ],
                                                                [
                                                                    5.87,
                                                                    51.97
                                                                ]
                                                            ]
                                                        ]
                                                    },
                                                    "vehicle_restrictions": [
                                                        {
                                                            "type": "condition_set",
                                                            "id": "NDW11_1022dd10-d4f5-47b1-9cc4-02219b3fb7b1_CS",
                                                            "label": "CS",
                                                            "operator": "and",
                                                            "conditions": [
                                                                {
                                                                    "type": "validity_condition",
                                                                    "id": "..._VAC",
                                                                    "label": "VAC",
                                                                    "validity_status": "definedByValidityTimeSpec",
                                                                    "valid_from": "2025-03-01T00:00:00Z",
                                                                    "valid_until": "2999-01-01T00:00:00Z"
                                                                },
                                                                {
                                                                    "type": "location_condition",
                                                                    "id": "..._area",
                                                                    "label": "area"
                                                                },
                                                                {
                                                                    "type": "vehicle_condition",
                                                                    "id": "..._restriction_VC",
                                                                    "label": "VC",
                                                                    "vehicle_characteristics": {
                                                                        "fuelType": [
                                                                            "diesel"
                                                                        ],
                                                                        "vehicleType": [
                                                                            "anyVehicle"
                                                                        ]
                                                                    }
                                                                },
                                                                {
                                                                    "type": "condition_set",
                                                                    "id": "..._EX_CS",
                                                                    "label": "EX_CS",
                                                                    "operator": "or",
                                                                    "negate": true,
                                                                    "conditions": [
                                                                        {
                                                                            "type": "vehicle_condition",
                                                                            "id": "..._oldtimerExemption_A",
                                                                            "label": "A",
                                                                            "vehicle_characteristics": {
                                                                                "comparisonOperator": [
                                                                                    "greaterThanOrEqualTo"
                                                                                ],
                                                                                "vehicleAge": [
                                                                                    "40"
                                                                                ]
                                                                            }
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "valid_from": "2025-03-01T00:00:00+00:00",
                                                    "valid_until": null
                                                }
                                            ]
                                        }
                                    ],
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "results": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "results"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "meta": {
                                                    "type": "object",
                                                    "properties": {
                                                        "page": {
                                                            "type": "integer"
                                                        },
                                                        "per_page": {
                                                            "type": "integer"
                                                        },
                                                        "last_page": {
                                                            "type": "integer"
                                                        },
                                                        "total": {
                                                            "type": "integer"
                                                        }
                                                    },
                                                    "required": [
                                                        "page",
                                                        "per_page",
                                                        "last_page",
                                                        "total"
                                                    ]
                                                },
                                                "results": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "city": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "zone_type": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "controlled_zone_type": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "status": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "url_for_further_information": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "regulation_id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "access_restriction_type": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "geometry": {
                                                                "type": [
                                                                    "array",
                                                                    "null"
                                                                ],
                                                                "items": []
                                                            },
                                                            "vehicle_restrictions": {
                                                                "anyOf": [
                                                                    {
                                                                        "type": "array",
                                                                        "items": []
                                                                    },
                                                                    {
                                                                        "type": "null"
                                                                    },
                                                                    {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": "string"
                                                                        },
                                                                        "minItems": 0,
                                                                        "maxItems": 0,
                                                                        "additionalItems": false
                                                                    }
                                                                ]
                                                            },
                                                            "valid_from": {
                                                                "type": "string"
                                                            },
                                                            "valid_until": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "city",
                                                            "zone_type",
                                                            "controlled_zone_type",
                                                            "status",
                                                            "url_for_further_information",
                                                            "regulation_id",
                                                            "access_restriction_type",
                                                            "geometry",
                                                            "vehicle_restrictions",
                                                            "valid_from",
                                                            "valid_until"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "meta",
                                                "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": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}