80trust / 100

Data Is Holiday

by is-public-holiday in Productivity & SaaS

x402 APIPassing, checked 2 h ago

Is a date a public holiday in a country? Returns yes/no with the holiday name, whether it is a weekend, and the next public holiday after that date. Business-day logic for agents. $0.01 per check.

POST https://intel.rallylive.ca/data/is-holiday

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
40 ms typical, 40 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://intel.rallylive.ca/data/is-holiday" \
  -H "content-type: application/json" \
  -d '{"query":"CA 2026-12-25"}'
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%2Fintel.rallylive.ca%2Fdata%2Fis-holiday
const res = await pay("https://intel.rallylive.ca/data/is-holiday", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"query":"CA 2026-12-25"}),
});
console.log(await res.json());

Example input

{
  "query": "CA 2026-12-25"
}

Example output

{
  "country": "CA",
  "date": "2026-12-25",
  "holiday": true,
  "name": "Christmas Day",
  "next_holiday": {
    "date": "2026-12-26",
    "name": "Boxing Day"
  },
  "weekend": false
}

Security scan

  • Payment address changed recently in payment
    Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402737 ms$0.01
8 h agoPassed40240 ms$0.01

History

11 Oct 2026Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3