{
  "openapi": "3.0.1",
  "info": {
    "title": "Dutch License Plate Lookup (RDW)",
    "description": "Look up Dutch vehicles by license plate (kenteken) or search the national register by make, model and dates. Official RDW open data joined into one record: specs, APK expiry, odometer verdict, fuels and emissions, open recalls. No proxy or login.",
    "version": "0.1",
    "x-build-id": "5drl7QMH7x0YBiBHj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memorable_alphabet~rdw-vehicle-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memorable_alphabet-rdw-vehicle-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/memorable_alphabet~rdw-vehicle-lookup/runs": {
      "post": {
        "operationId": "runs-sync-memorable_alphabet-rdw-vehicle-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/memorable_alphabet~rdw-vehicle-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-memorable_alphabet-rdw-vehicle-lookup",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "licensePlates": {
            "title": "License plates",
            "type": "array",
            "description": "Dutch license plates (kenteken), any format: GX-Z86-T, gxz86t. Up to thousands per run. If set, the search filters below are ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Search by make, e.g. TESLA, VOLKSWAGEN, MERCEDES-BENZ. Upper or lower case."
          },
          "model": {
            "title": "Model contains",
            "type": "string",
            "description": "Search by model name, matched anywhere in the name, e.g. MODEL 3, GOLF."
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "",
              "Personenauto",
              "Bedrijfsauto",
              "Motorfiets",
              "Bromfiets",
              "Bus",
              "Aanhangwagen",
              "Oplegger",
              "Land- of bosbouwtrekker",
              "Driewielig motorrijtuig"
            ],
            "type": "string",
            "description": "Type of vehicle in the register.",
            "default": ""
          },
          "color": {
            "title": "Main color",
            "type": "string",
            "description": "Main color in the register's Dutch wording, e.g. ZWART, WIT, GRIJS, BLAUW, ROOD."
          },
          "firstAdmissionFrom": {
            "title": "First admission from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only vehicles first admitted on or after this date. Format YYYY-MM-DD."
          },
          "firstAdmissionTo": {
            "title": "First admission to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only vehicles first admitted on or before this date. Format YYYY-MM-DD."
          },
          "apkExpiresFrom": {
            "title": "APK expires from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only vehicles whose APK (MOT) expires on or after this date. Format YYYY-MM-DD."
          },
          "apkExpiresTo": {
            "title": "APK expires to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only vehicles whose APK (MOT) expires on or before this date. Format YYYY-MM-DD."
          },
          "includeFuel": {
            "title": "Include fuels and emissions",
            "type": "boolean",
            "description": "Add the fuel list with emission class, CO2 and power per vehicle.",
            "default": true
          },
          "includeRecalls": {
            "title": "Include recalls",
            "type": "boolean",
            "description": "Add recalls (open and repaired) with the RDW's description per vehicle.",
            "default": true
          },
          "includeInspections": {
            "title": "Include APK inspection history",
            "type": "boolean",
            "description": "Add every APK/inspection notification per vehicle (date, type, new expiry date) with the defects found and their descriptions.",
            "default": true
          },
          "maxItems": {
            "title": "Max. results",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on the number of vehicles returned.",
            "default": 100
          },
          "maxRequestRetries": {
            "title": "Max. request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Retries per failed request to the RDW, with growing waits.",
            "default": 3
          },
          "appToken": {
            "title": "RDW app token (optional)",
            "type": "string",
            "description": "Optional free app token from opendata.rdw.nl for higher rate limits on very large runs."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}