77trust / 100

Driving Time 561

by ort.halowerk.com in News & content

x402 APIPassing, checked 3 h ago

Check a driver’s activities against EU driving and rest time rules (Reg. 561/2006 as amended by 2020/1054): daily/weekly/fortnightly driving, breaks, daily and weekly rests, compensation, with the article for every infringement.

POST
https://ort.halowerk.com/v1/driving-time-561
Price
$0.005
per call in USDC
Uptime
95.8%
last 30 days
Response time
45 ms
198 ms slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://ort.halowerk.com/v1/driving-time-561

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://ort.halowerk.com/v1/driving-time-561
content-type: application/json

{
  "plan": {
    "segments": [
      {
        "minutes": 720,
        "type": "rest"
      },
      {
        "minutes": 300,
        "type": "driving"
      },
      {
        "minutes": 45,
        "type": "break"
      },
      {
        "minutes": 270,
        "type": "driving"
      },
      {
        "minutes": 660,
        "type": "rest"
      }
    ],
    "start": "2026-10-04T18:00:00Z"
  }
}

Parameters

ParameterTypeRequiredDescription
activitiesarray of objectNo
compensation_base_daily_hoursintegerNo One of: 9, 11. Default: 9.
gaps_asstringNo One of: rest, unknown. Default: "rest".
international_goods_transportbooleanNo Default: false.
occasional_passenger_servicebooleanNo Default: false.
planobjectNo
rest_locationsarray of objectNo
week_time_zonestringNo Default: "UTC".

Example response

The provider's example. We can't check it without paying.

Example response, 84 lines
{
  "limitations": [
    "Information computed from the supplied activities; not legal advice and not an o…",
    "Single-manning only; multi-manning, ferry/train interruptions, emergency departu…",
    "Where the Regulation leaves room for interpretation (choice of daily rest within…"
  ],
  "result": {
    "assumptions": [
      "Time not covered by activities is treated as rest (break/rest); 0 minutes were f…",
      "Weeks run from Monday 00:00 to Sunday 24:00 in UTC (Art. 4(i)).",
      "A daily rest period is the first rest of which at least 9 hours fall within the …"
    ],
    "compensation": [],
    "infringements": [
      {
        "article": "Art. 7",
        "at": "2026-10-05T10:30:00Z",
        "description": "Driving period of 5 h without a qualifying break (45 min, or 15 min followed by …",
        "driving_minutes": 300,
        "excess_minutes": 30,
        "period_start": "2026-10-05T06:00:00Z",
        "rule": "break_missing_after_4h30"
      }
    ],
    "legal_basis": {
      "act": "Regulation (EC) No 561/2006",
      "checked": "2026-11-01",
      "url": "http://data.europa.eu/eli/reg/2006/561/2024-05-22",
      "version": "consolidated text of 22 May 2024 (amended by Regulations (EU) 2020/1054 and 2024…"
    },
    "organisational_findings": [],
    "period": {
      "filled_gap_minutes": 0,
      "from": "2026-10-04T18:00:00Z",
      "hours": 33.25,
      "to": "2026-10-06T03:15:00Z"
    },
    "shifts": [
      {
        "availability_minutes": 0,
        "daily_rest": {
          "end": "2026-10-06T03:15:00Z",
          "minutes": 660,
          "minutes_within_24h": 660,
          "start": "2026-10-05T16:15:00Z",
          "truncated_by_end_of_data": true,
          "type": "regular"
        },
        "driving_minutes": 570,
        "duty_end": "2026-10-05T16:15:00Z",
        "extended_driving": true,
        "extension_number_in_week": 1,
        "start": "2026-10-05T06:00:00Z",
        "work_minutes": 0
      }
    ],
    "summary": {
      "by_article": {
        "Art. 7": 1
      },
      "compliant": false,
      "infringements": 1,
      "shifts": 1,
      "weekly_rests": 0
    },
    "weekly_rests": [],
    "weeks": [
      {
        "complete": false,
        "driving_minutes": 0,
        "extended_days": 0,
        "week_start": "2026-09-28T00:00:00Z"
      },
      {
        "complete": false,
        "driving_minutes": 570,
        "extended_days": 1,
        "week_start": "2026-10-05T00:00:00Z"
      }
    ]
  },
  "service": "driving-time-561",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://ort.halowerk.com/v1/driving-time-561' \
  -H 'content-type: application/json' \
  --data-raw '{"plan":{"segments":[{"minutes":720,"type":"rest"},{"minutes":300,"type":"driving"},{"minutes":45,"type":"break"},{"minutes":270,"type":"driving"},{"minutes":660,"type":"rest"}],"start":"2026-10-04T18:00:00Z"}}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://ort.halowerk.com/v1/driving-time-561' \
  -H 'content-type: application/json' \
  --data-raw '{"plan":{"segments":[{"minutes":720,"type":"rest"},{"minutes":300,"type":"driving"},{"minutes":45,"type":"break"},{"minutes":270,"type":"driving"},{"minutes":660,"type":"rest"}],"start":"2026-10-04T18:00:00Z"}}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fort.halowerk.com%2Fv1%2Fdriving-time-561&method=POST
const res = await pay("https://ort.halowerk.com/v1/driving-time-561", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "plan": {
      "segments": [
        {
          "minutes": 720,
          "type": "rest"
        },
        {
          "minutes": 300,
          "type": "driving"
        },
        {
          "minutes": 45,
          "type": "break"
        },
        {
          "minutes": 270,
          "type": "driving"
        },
        {
          "minutes": 660,
          "type": "rest"
        }
      ],
      "start": "2026-10-04T18:00:00Z"
    }
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://ort.halowerk.com/v1/driving-time-561",
        json={
            "plan": {
                "segments": [
                    {
                        "minutes": 720,
                        "type": "rest",
                    },
                    {
                        "minutes": 300,
                        "type": "driving",
                    },
                    {
                        "minutes": 45,
                        "type": "break",
                    },
                    {
                        "minutes": 270,
                        "type": "driving",
                    },
                    {
                        "minutes": 660,
                        "type": "rest",
                    },
                ],
                "start": "2026-10-04T18:00:00Z",
            },
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40240 ms$0.005
17 h agoPassed40240 ms$0.005
3 days agoTimed out---
4 days agoPassed402198 ms$0.005
4 days agoPassed40240 ms$0.005
Show 10 older checks
5 days agoPassed40241 ms$0.005
5 days agoPassed402113 ms$0.005
6 days agoPassed40240 ms$0.005
6 days agoPassed402134 ms$0.005
6 days agoPassed40241 ms$0.005
7 days agoPassed40245 ms$0.005
7 days agoPassed40241 ms$0.005
7 days agoPassed40239 ms$0.005
7 days agoPassed402134 ms$0.005
8 days agoPassed402115 ms$0.005