{"uid":"cap_ln2QYvN6_SUJcTWsuloYV","slug":"delx-commerce-age-calculator-age-in-whole-years-0fc227f7","name":"Delx Commerce Age Calculator — Age in Whole Years","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/age-years?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"birthdate":{"type":"string","format":"date","description":"ISO-8601 birth date (YYYY-MM-DD). Used only to compute whole-year age."}}},"responseSchema":{"type":"json","example":{"schema":"delx/age-years/v1","age_years":26,"birthdate":"2000-01-01"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6uXzAFp9T-NHiJ67gkfMI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a person's current age in whole years given their ISO-8601 birth date","exampleAgentPrompt":"How old is someone born on March 15 1990 — give me their age in full years?","exampleUseCases":[{"title":"Age gate check for user signup","prompt":"A user says their birthday is July 4 2006 — can you check how old they are in whole years so I know if they're 18 yet?"},{"title":"Profile enrichment with current age","prompt":"I have a customer record with birthdate 1985-11-22 and I need to display their current age in years on their profile page — can you compute that?"},{"title":"Eligibility check for senior discount","prompt":"My customer was born on February 28 1958 — how old are they in whole years? I need to know if they qualify for the 65-and-over discount."}],"resultDescription":"A JSON object containing the schema identifier 'delx/age-years/v1', the computed whole-year age as an integer (age_years), and the echoed input birth date (birthdate). For example: {\"schema\":\"delx/age-years/v1\",\"age_years\":26,\"birthdate\":\"2000-01-01\"}.","failureModes":["Invalid or malformed date format (non-ISO-8601) results in a validation error","Future birth dates may return zero or an error","Missing birthdate field causes a bad request response","Network or payment settlement failure may prevent response delivery"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, single-call age computation from a birth date with no signup or API key — particularly in agentic workflows where you pay per result via USDC on Base or Solana using the x402 protocol. Ideal for age-gating, eligibility checks, or profile enrichment where you just need a reliable whole-year integer age.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.916Z","isFirstParty":false,"canonicalSlug":"delx-commerce-age-calculator-age-in-whole-years-0fc227f7"}