Skip to content
Fourohtwo

Age Check

api.strale.io/x402/age-verify

Age Check: Check whether a date of birth meets a minimum age. Returns the exact age, whether the threshold is met, and the days until it is.

BaseAnswering
GEThttps://api.strale.io/x402/age-verify

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.strale.io/x402/age-verify?date_of_birth=%3Cdate_of_birth%3E&minimum_age=%3Cminimum_age%3E&reference_date=%3Creference_date%3E");
console.log(await res.json());

Example input

{
  "date_of_birth": {
    "description": "Date of birth (YYYY-MM-DD)",
    "required": true,
    "type": "string"
  },
  "minimum_age": {
    "description": "Minimum age to verify (default 18)",
    "type": "integer"
  },
  "reference_date": {
    "description": "Date to check against (default today)",
    "type": "string"
  }
}