81trust / 100

Vehicle Apk

by Factline in Other

x402 APIPassing, checked 4 min ago

Use when the user asks when a Dutch car's APK (MOT) expires or whether it is still valid: expiry date, days left and a status band (expired, due within 30 or 90 days, ok), with insurance and open-recall flags. Cheap enough to run daily for a fleet. Input: Dutch licence plate. Source: RDW.

GET https://factline.dev/v1/vehicle/apk

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
72 ms typical, 72 ms slowest 5%
Last check
4 min ago
Next check
in 23 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://factline.dev/v1/vehicle/apk?licence_plate=GT722F"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffactline.dev%2Fv1%2Fvehicle%2Fapk
const res = await pay("https://factline.dev/v1/vehicle/apk?licence_plate=GT722F");
console.log(await res.json());

Example input

{
  "licence_plate": "GT722F"
}

Example output

{
  "apk_expiry": "2027-08-14",
  "days_until_expiry": 310,
  "explain": {
    "status": "expired: driving without valid APK is not allowed; due_within_30_days / due_within_90_days: book an inspection; ok: more than 90 days left."
  },
  "insured": true,
  "make": "MAZDA",
  "model": "MAZDA CX-3",
  "open_recall": false,
  "plate": "GT722F",
  "source": "RDW Open Data",
  "status": "ok"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 min agoPassed402341 ms$0.001
5 h agoPassed40272 ms$0.001