{"uid":"cap_crhoKQeANKVzyJp7ZUhjs","slug":"agent-data-tools-revmesh2074-workers-dev-age-calculator-exact-age-4fd87ff0","name":"Age Calculator: Exact Age from Date of Birth","description":"Age calculator. Exact age from a date of birth in years, months and days, total days lived, the weekday of birth, and the date of and days until the next birthday, measured today (UTC) or on any date you give. Use for age checks, forms and anniversaries.","url":"https://agent-data-tools.revmesh2074.workers.dev/calc/age?utm_source=zero.xyz","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":["birthdate"],"properties":{"on":{"type":"string","examples":["2026-10-23"],"description":"Measure on this date, YYYY-MM-DD (default today)"},"birthdate":{"type":"string","examples":["1990-05-17"],"description":"Date of birth, YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"days":{"type":"number"},"years":{"type":"number"},"bornOn":{"type":"string"},"months":{"type":"number"},"totalDays":{"type":"number"},"nextBirthday":{"type":"string"},"daysUntilNextBirthday":{"type":"number"}}}}}}},"responseSchema":{"type":"object","properties":{"days":{"type":"number"},"years":{"type":"number"},"bornOn":{"type":"string"},"months":{"type":"number"},"totalDays":{"type":"number"},"nextBirthday":{"type":"string"},"daysUntilNextBirthday":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h749Hrow_Woz4dQ6zu2bL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Calculates exact age in years, months, and days from a birthdate, plus total days lived, day of birth, and next birthday info, measured today or on any given date.","exampleAgentPrompt":"How old is someone born on March 14, 1990 — give me their exact age in years, months, and days, how many days they've lived, what day of the week they were born, and when their next birthday is.","exampleUseCases":[{"title":"Age eligibility check for user onboarding","prompt":"I need to verify if a user born on 2006-08-22 is at least 18 years old as of today — can you calculate their exact age for me?"},{"title":"Birthday countdown for a greeting app","prompt":"My friend's birthdate is 1985-11-30 — how many days until their next birthday, and what day of the week were they born?"},{"title":"Milestone anniversary calculation","prompt":"Calculate the exact age of someone born on 1950-01-01 as of July 4, 2025 — how old will they be in years, months, and days, and how many total days will they have lived?"}],"resultDescription":"Returns a JSON object with the person's age broken down into years, months, and days; the total number of days lived; the weekday name they were born on (bornOn); the date of their next birthday (nextBirthday in YYYY-MM-DD); and the number of days until that next birthday (daysUntilNextBirthday). All calculations are UTC-based.","failureModes":["Missing required 'birthdate' parameter returns an error","Invalid date format (not YYYY-MM-DD) causes a parsing error","Future birthdate may return zero or negative age values","Invalid 'on' date format causes a similar parsing failure","Birthdate after the 'on' date may produce unexpected results"],"whenToPreferThis":"Choose this endpoint when you need precise, broken-down age data (years + months + days), not just age in years. Ideal for eligibility checks, form validation, birthday countdown features, and anniversaries where exact granularity matters. It also returns the weekday of birth and next birthday date, making it more comprehensive than a simple year-difference calculator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:38:37.142Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-age-calculator-exact-age-4fd87ff0"}