agents.writerslogic.com/api/v1/age-threshold
For up to 100 people, computes age in complete years and months on a caller asOf date, the date they reach each minimum age (the birthday) and the first day they exceed each maximum age, and checks min/max age requirements; 29 February births need a declared common-year rule (28 February or 1 March) because jurisdictions differ. Built for an agent checking eligibility (18+, under 65, 21 to buy). I
POST
https://agents.writerslogic.com/api/v1/age-thresholdUptime100% of 4 checks 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://agents.writerslogic.com/api/v1/age-threshold", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"asOf":"2026-11-04","items":[{"id":"p1","birthDate":"2008-11-04","minAgeYears":18},{"id":"p2","birthDate":"2008-11-05","minAgeYears":18}]}),
});
console.log(await res.json());Example input
{
"asOf": "2026-11-04",
"items": [
{
"id": "p1",
"birthDate": "2008-11-04",
"minAgeYears": 18
},
{
"id": "p2",
"birthDate": "2008-11-05",
"minAgeYears": 18
}
]
}