{
    "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/rdw/vehicle-lite": {
            "get": {
                "operationId": "rdw.vehicle-lite",
                "description": "Returns the core vehicle fields (merk, model, kleur, brandstof, vermogen,\nAPK-status, milieuzone-vlag) from the RDW Basisregistratie Voertuigen.\nResults are cached for 24 hours.\n\nFor a wider response including catalogusprijs, dimensions, body type,\naxle data and EV-specs, use the `vehicle` (Pro) endpoint.",
                "summary": "Lightweight vehicle lookup by Dutch license plate (kenteken)",
                "tags": [
                    "RDW",
                    "VehicleLite"
                ],
                "parameters": [
                    {
                        "name": "license_plate",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9\\-\\s]{2,7}[A-Za-z0-9]$",
                            "minLength": 4,
                            "maxLength": 9
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vehicle found (lite response)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "examples": [
                                        {
                                            "found": true,
                                            "license_plate": "AB-123-C",
                                            "vehicle": {
                                                "brand": "Tesla",
                                                "model": "Model 3",
                                                "color": "Wit",
                                                "fuel_type": "Elektriciteit",
                                                "mass_empty": 1822,
                                                "power_kw": 239,
                                                "top_speed_kmh": 225,
                                                "registration_date": "2021-03-15",
                                                "first_admission_date": "2021-03-01"
                                            },
                                            "compliance": {
                                                "apk_expiry_date": "2027-04-01",
                                                "tachograph_expiry_date": null,
                                                "emission_class": 6,
                                                "allowed_in_green_zones": true,
                                                "transfer_possible": true,
                                                "recall_active": false,
                                                "export_indicator": false,
                                                "taxi": false,
                                                "liability_insured": true,
                                                "last_odometer_report": "Logisch"
                                            }
                                        }
                                    ],
                                    "properties": {
                                        "found": {
                                            "type": [
                                                "boolean",
                                                "null"
                                            ]
                                        },
                                        "license_plate": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "vehicle": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "additionalProperties": []
                                        },
                                        "compliance": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "additionalProperties": []
                                        },
                                        "error": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "found",
                                        "license_plate",
                                        "vehicle",
                                        "compliance",
                                        "error"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "description": "License plate not found in RDW",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "examples": [
                                        {
                                            "found": false,
                                            "license_plate": "XX-000-X",
                                            "vehicle": null,
                                            "compliance": null,
                                            "error": null
                                        }
                                    ],
                                    "properties": {
                                        "found": {
                                            "type": "boolean"
                                        },
                                        "license_plate": {
                                            "type": "string"
                                        },
                                        "vehicle": {
                                            "type": "null"
                                        },
                                        "compliance": {
                                            "type": "null"
                                        },
                                        "error": {
                                            "type": "null"
                                        }
                                    },
                                    "required": [
                                        "found",
                                        "license_plate",
                                        "vehicle",
                                        "compliance",
                                        "error"
                                    ]
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "RDW Open Data service temporarily unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "examples": [
                                        {
                                            "found": null,
                                            "license_plate": "AB-123-C",
                                            "vehicle": null,
                                            "compliance": null,
                                            "error": "upstream_unavailable"
                                        }
                                    ],
                                    "properties": {
                                        "found": {
                                            "type": "null"
                                        },
                                        "license_plate": {
                                            "type": "string"
                                        },
                                        "vehicle": {
                                            "type": "null"
                                        },
                                        "compliance": {
                                            "type": "null"
                                        },
                                        "error": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "found",
                                        "license_plate",
                                        "vehicle",
                                        "compliance",
                                        "error"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "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"
                            ]
                        }
                    }
                }
            }
        }
    }
}