77trust / 100

Service Frequency

by ort.halowerk.com in Other

x402 APIPassing, checked 2 h ago

Service frequency at a German stop for one day: departures per hour and per time band, and per line and direction the number of trips, first and last departure, typical and longest headway. Counts all scheduled departures of the station (all platforms) on the service date by hour (00–27 incl. after-midnight trips of that service day) and by time band (early 04–06, morning peak 06–09, day 09–16, afternoon peak 16–19, evening 19–22, night 22–04).

POST
https://ort.halowerk.com/v1/service-frequency
Price
$0.004
per call in USDC
Uptime
98.2%
last 30 days
Response time
129 ms
268 ms slowest 5%
Last check
Passed
2 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/service-frequency

Each call costs $0.004 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/service-frequency
content-type: application/json

{
  "modes": [
    "rail"
  ],
  "stop": {
    "name": "Bonn Hbf"
  }
}

Parameters

ParameterTypeRequiredDescription
datestringNo
linestringNo
modesarray of anyNo
stopobjectYes

Example response

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

Example response, 154 lines
{
  "limitations": [
    "Planned (scheduled) timetable only: no real-time delays, cancellations, construction work notices or replacement services unless they are in the published plan.",
    "Counts per service day as in GTFS: trips after midnight belong to the previous day (hours 24–27).",
    "A line with the same name in both directions is split by headsign; headsigns changing along the route can split one direction."
  ],
  "result": {
    "by_band": [
      {
        "band": "early",
        "departures": 8,
        "from": "04:00",
        "per_hour": 4,
        "to": "06:00"
      },
      {
        "band": "morning_peak",
        "departures": 34,
        "from": "06:00",
        "per_hour": 11.3,
        "to": "09:00"
      },
      {
        "band": "day",
        "departures": 76,
        "from": "09:00",
        "per_hour": 10.9,
        "to": "16:00"
      },
      {
        "band": "afternoon_peak",
        "departures": 36,
        "from": "16:00",
        "per_hour": 12,
        "to": "19:00"
      },
      {
        "band": "evening",
        "departures": 30,
        "from": "19:00",
        "per_hour": 10,
        "to": "22:00"
      }
    ],
    "by_hour": [
      {
        "departures": 2,
        "hour": 0
      },
      {
        "departures": 1,
        "hour": 1
      },
      {
        "departures": 1,
        "hour": 2
      },
      {
        "departures": 0,
        "hour": 3
      },
      {
        "departures": 2,
        "hour": 4
      }
    ],
    "data_basis": {
      "attribution": "DELFI e.V; GTFS.de; OpenStreetMap contributors",
      "dataset": "gtfs.de Germany (free), based on DELFI e.V. national timetable data",
      "kind": "planned timetable (no real-time data)",
      "license": "CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); stop positions partly © OpenStreetMap contributors (ODbL 1.0)",
      "source_sha256": "75a498631f600baadf3b6cc6f7f63f20768310fbb3ec274e6cac312728f53825",
      "source_url": "https://download.gtfs.de/germany/free/latest.zip",
      "valid_from": "2026-11-07",
      "valid_until": "2026-12-07"
    },
    "date": "2026-11-19",
    "lines": [
      {
        "agency": "800352 DB Regio AG NRW",
        "departures": 28,
        "first": "00:10",
        "headsign": "Euskirchen",
        "last": "23:40",
        "line": "S23",
        "max_headway_min_06_20": 60,
        "median_headway_min_06_20": 60,
        "mode": "rail"
      },
      {
        "agency": "National Express",
        "departures": 19,
        "first": "06:07",
        "headsign": "Bonn-Mehlem",
        "last": "25:07",
        "line": "RB48",
        "max_headway_min_06_20": 60,
        "median_headway_min_06_20": 60,
        "mode": "rail"
      },
      {
        "agency": "National Express",
        "departures": 18,
        "first": "05:56",
        "headsign": "Koblenz Hbf",
        "last": "22:56",
        "line": "RE5",
        "max_headway_min_06_20": 60,
        "median_headway_min_06_20": 60,
        "mode": "rail"
      },
      {
        "agency": "MittelrheinBahn (Trans Regio)",
        "departures": 17,
        "first": "04:33",
        "headsign": "Köln Messe/Deutz",
        "last": "20:33",
        "line": "RB26",
        "max_headway_min_06_20": 61,
        "median_headway_min_06_20": 60,
        "mode": "rail"
      },
      {
        "agency": "MittelrheinBahn (Trans Regio)",
        "departures": 16,
        "first": "04:27",
        "headsign": "Mainz Hbf",
        "last": "20:27",
        "line": "RB26",
        "max_headway_min_06_20": 61,
        "median_headway_min_06_20": 60,
        "mode": "rail"
      }
    ],
    "lines_total": 34,
    "station": {
      "lat": 50.732006,
      "lon": 7.097131,
      "name": "Bonn Hbf",
      "other_matches": [
        {
          "name": "Bonn Colmantstr./Hbf",
          "stop_id": "7487"
        }
      ],
      "resolved_by": "name_exact",
      "stop_id": "304770"
    },
    "total_departures": 212,
    "weekday": "Thursday"
  },
  "service": "service-frequency",
  "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.004.

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/service-frequency' \
  -H 'content-type: application/json' \
  --data-raw '{"modes":["rail"],"stop":{"name":"Bonn Hbf"}}'

# 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/service-frequency' \
  -H 'content-type: application/json' \
  --data-raw '{"modes":["rail"],"stop":{"name":"Bonn Hbf"}}' \
  | 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.004 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.004" });
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.004 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fort.halowerk.com%2Fv1%2Fservice-frequency&method=POST
const res = await pay("https://ort.halowerk.com/v1/service-frequency", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "modes": [
      "rail"
    ],
    "stop": {
      "name": "Bonn Hbf"
    }
  }),
});
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.004 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.004"})
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/service-frequency",
        json={
            "modes": [
                "rail",
            ],
            "stop": {
                "name": "Bonn Hbf",
            },
        },
    )
    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
2 h agoPassed402131 ms$0.004
15 h agoPassed402129 ms$0.004
3 days agoTimed out---
4 days agoPassed40250 ms$0.004
4 days agoPassed402325 ms$0.004
Show 10 older checks
5 days agoPassed40239 ms$0.004
5 days agoPassed402140 ms$0.004
6 days agoPassed402127 ms$0.004
6 days agoPassed402130 ms$0.004
6 days agoPassed402190 ms$0.004
7 days agoPassed402122 ms$0.004
7 days agoPassed402130 ms$0.004
7 days agoPassed402126 ms$0.004
7 days agoPassed402131 ms$0.004
8 days agoPassed402114 ms$0.004