78trust / 100

Flight Delay Compensation

by travel-check-x402.onrender.com in Weather & location

x402 APIPassing, checked 11 h ago

Pay-per-call flight compensation check for AI agents. Send the airports, what happened (delay, cancellation, denied boarding), the arrival delay or notice given, and the cause, and get whether UK261 or EU261 applies, the distance, the amount owed per passenger, care rights, step-by-step claim and escalation guidance and a ready-to-send claim letter, as JSON. Errors never charged.

GET
https://travel-check-x402.onrender.com/flight-delay-compensation
Price
$0.03
per call in USDC
Uptime
100%
last 30 days
Response time
52 ms
52 ms slowest 5%
Last check
Passed
11 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

GET https://travel-check-x402.onrender.com/flight-delay-compensation

Each call costs $0.03 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.

GET https://travel-check-x402.onrender.com/flight-delay-compensation?from=LHR&to=JFK

Parameters

ParameterTypeRequiredDescription
airline_regionstringNoWhere the operating airline is based: uk, eu or other (matters for flights into the UK/EU)
causestringNoReason given: technical, crew_shortage, airline_staff_strike, overbooking, operational, late_inbound_aircraft, weather, air_traffic_control, airport_staff_strike, security, bird_strike, medical_emergency, political_unrest, unknown
delay_hoursstringNoHours late arriving at the final destination (for delays)
fromstringYesFirst departure airport code, e.g. LHR (for connecting flights on one booking, the first airport)
notice_daysstringNoDays of notice before departure (for cancellations)
rerouted_arrival_delay_hoursstringNoFor cancellations or denied boarding: how many hours after the original arrival time the replacement flight arrived
tostringYesFinal destination airport code, e.g. JFK
typestringNodelay (default), cancellation or denied_boarding

Example response

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

Example response, 40 lines
{
  "amount": {
    "currency": "GBP",
    "note": null,
    "per": "passenger",
    "value": 520
  },
  "attribution": "Rules: UK261 and EU261 (Regulation (EC) No 261/2004) as explained by the UK Civil Aviation Authority. Airport locations: OurAirports (public domain). Not affiliated with the CAA, the EU or any airline.",
  "care_and_assistance": [
    "Food and drink once delayed 4+ hours, phone/email access, and a hotel plus transfers if delayed overnight, whatever the cause.",
    "If the delay reaches 5 hours you can choose a full refund instead of flying."
  ],
  "cause": "technical",
  "claim_letter": "Dear [Airline] Customer Relations, ...",
  "covered_by": "UK261",
  "flight": {
    "distance_km": 5540,
    "from": "LHR London Heathrow Airport, London (GB)",
    "to": "JFK John F. Kennedy International Airport, New York (US)"
  },
  "important": "An estimate of what the rules say, not legal advice or a guarantee: the airline decides first and may dispute the cause. Amounts are per passenger. Claim for out-of-pocket expenses (meals, hotel) separately with receipts.",
  "reasons": [
    "Covered by UK261: the flight departs the UK.",
    "Great-circle distance 5,540 km from the first departure to the final destination (band: over 3,500 km).",
    "Arrived 4.5 hours late (3 hours or more).",
    "Technical faults are usually NOT extraordinary circumstances (they are part of normal airline operations), so compensation is normally due."
  ],
  "sources": [
    {
      "name": "UK Civil Aviation Authority: delays",
      "url": "https://www.caa.co.uk/passengers/resolving-travel-problems/delays-and-cancellations/delays/"
    }
  ],
  "steps": [
    "Gather the booking reference, flight number, date, boarding passes and anything showing the actual arrival time.",
    "..."
  ],
  "type": "delay",
  "verdict": "likely_eligible"
}

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.03.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://travel-check-x402.onrender.com/flight-delay-compensation?from=LHR&to=JFK'

# 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 - 'https://travel-check-x402.onrender.com/flight-delay-compensation?from=LHR&to=JFK' \
  | 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.03 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.03" });
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.03 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftravel-check-x402.onrender.com%2Fflight-delay-compensation
const res = await pay("https://travel-check-x402.onrender.com/flight-delay-compensation?from=LHR&to=JFK");
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.03 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.03"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://travel-check-x402.onrender.com/flight-delay-compensation?from=LHR&to=JFK")
    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
11 h agoPassed40252 ms$0.03