{"uid":"cap_lhV0gjBf-ekGxYgZjCmtR","slug":"age-on-date-calculator-eb3f6acb","name":"Age on Date Calculator","description":"Calculate age in completed years on a specified date from an ISO birth date.","url":"https://x402-zoo.lolagent.workers.dev/api/age-on-date","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["birth"],"properties":{"on":{"type":"string"},"birth":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"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_wjhzXAW4h4EeJS-yrBvAC","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":"Calculates the completed age in years of a person on a specified date given their ISO birth date.","exampleAgentPrompt":"How old will someone born on 1990-03-15 be on 2025-07-04? Give me their completed age in years.","exampleUseCases":[{"title":"Verify eligibility age for event","prompt":"My attendee was born on 2007-11-20 — how old will they be on 2025-09-01? I need to confirm they'll be at least 18 before the event."},{"title":"Calculate child's age at school year start","prompt":"My kid's birth date is 2019-08-30. How old will they be in completed years on 2025-09-01, when the school year starts?"},{"title":"Determine retirement age milestone","prompt":"An employee born on 1965-04-12 — what will their completed age in years be on 2030-04-12 so we can plan their retirement milestone?"}],"resultDescription":"Returns the number of completed (whole) years of age the person has reached by the specified date, calculated from the provided ISO birth date.","failureModes":["Missing 'birth' query parameter returns an error","Invalid ISO date format for birth or target date causes a parsing error","Future birth dates or dates before epoch may return unexpected results","If 'on' date is omitted the endpoint may default to today or error","Network or worker timeout on edge infrastructure"],"whenToPreferThis":"Use this endpoint when you need a precise, deterministic calculation of someone's completed age in whole years on any past, present, or future date — especially in legal, healthcare, eligibility-checking, or event-planning contexts where correct age calculation matters. Prefer it over manual arithmetic or general-purpose LLM reasoning to avoid off-by-one errors around birthdays.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:05:20.423Z","isFirstParty":false}