16trust / 100

Date Calculator

by Vextorium in Productivity & SaaS

x402 APIFailing, checked 1 h ago

Date facts (weekday, ISO week, quarter, day of year, leap year), exact difference between two dates in years, months, days, weeks and Mon-Fri working days, and adding or subtracting days, months or years (end-of-month safe).

POST https://api.vextorium.com/v1/date-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
1 h ago: Amount "0.003" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/date-calculator" \
  -H "content-type: application/json" \
  -d '{"add_months":12,"date":"2024-02-29","until":"2026-10-02"}'
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%2Fapi.vextorium.com%2Fv1%2Fdate-calculator
const res = await pay("https://api.vextorium.com/v1/date-calculator", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"add_months":12,"date":"2024-02-29","until":"2026-10-02"}),
});
console.log(await res.json());

Example input

{
  "add_months": 12,
  "date": "2024-02-29",
  "until": "2026-10-02"
}

Example output

{
  "date": {
    "date": "2024-02-29",
    "day_of_year": 60,
    "days_in_month": 29,
    "leap": true,
    "quarter": 1,
    "week_iso": 9,
    "weekday": "Thursday",
    "weekend": false,
    "year_iso": 2024
  },
  "difference": {
    "days": 4,
    "months": 7,
    "total_days": 946,
    "until": "2026-10-02",
    "weekdays_mon_fri": 676,
    "weeks": 135.14,
    "years": 2
  },
  "result": {
    "date": "2025-02-28",
    "day_of_year": 59,
    "days_in_month": 28,
    "leap": false,
    "quarter": 1,
    "week_iso": 9,
    "weekday": "Friday",
    "weekend": false,
    "year_iso": 2025
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoAmount "0.003" is not in atomic token units40285 ms$0.003
5 h agoAmount "0.003" is not in atomic token units40292 ms$0.003
9 h agoAmount "0.003" is not in atomic token units40281 ms$0.003
13 h agoAmount "0.003" is not in atomic token units40287 ms$0.003
17 h agoAmount "0.003" is not in atomic token units40284 ms$0.003
21 h agoAmount "0.003" is not in atomic token units40283 ms$0.003
25 h agoAmount "0.003" is not in atomic token units40284 ms$0.003
30 h agoAmount "0.003" is not in atomic token units40284 ms$0.003
33 h agoAmount "0.003" is not in atomic token units40279 ms$0.003
36 h agoAmount "0.003" is not in atomic token units40281 ms$0.003
41 h agoAmount "0.003" is not in atomic token units402173 ms$0.003