{"uid":"cap__a7D82428Vd85KOJKLyhK","slug":"api-strale-io-1a213db0","name":"Age Verification by Date of Birth","description":"Verify if a person meets a minimum age requirement based on their date of birth. Returns exact age, whether the threshold is met, and days until the threshold (if not met). Accounts for leap years.","url":"https://api.strale.io/x402/age-verify","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["date_of_birth"],"properties":{"minimum_age":{"type":"integer","description":"Minimum age to verify (default 18)"},"date_of_birth":{"type":"string","description":"Date of birth (YYYY-MM-DD)"},"reference_date":{"type":"string","description":"Date to check against (default today)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"minimum_age":18,"date_of_birth":"2000-06-15"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0x0dc2ba6eb8f53e6d93e8949a6d83997f913438aa42d249165bd99f74504ae4ca"},"capability":"age-verify","latency_ms":0,"provenance":{"source":"strale-age-calculator","fetched_at":"2026-06-13T04:24:56.995Z"}},"age_days":29,"age_years":25,"age_months":11,"date_of_birth":"2000-06-15","meets_minimum":true,"reference_date":"2026-06-13","days_until_minimum":null,"date_of_birth_valid":true,"minimum_age_checked":18}},"exampleRequest":{"minimum_age":18,"date_of_birth":"2000-06-15"},"tags":["x402"],"displayCostAmount":"0.0216","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VDr7MOZT7plstku2ysRgP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies whether a person meets a minimum age requirement based on their date of birth, with optional custom age threshold and reference date.","exampleAgentPrompt":"Is someone born on 1998-03-15 old enough to meet the minimum age of 21 as of today?","exampleUseCases":[{"title":"Verify customer eligibility for financial product","prompt":"I need to check if our new customer who was born on 1985-07-22 qualifies for our investment account, which requires being at least 18 years old."},{"title":"Age gate users during account creation","prompt":"When someone signs up and enters their birthdate as 2008-11-30, can you quickly tell me if they're old enough to use our platform that requires users to be 13 or older?"},{"title":"Compliance check for age-restricted purchase","prompt":"A customer wants to buy alcohol and their ID shows they were born on 2006-09-14—can you verify they meet the 21-year minimum age requirement as of today?"}],"resultDescription":"Returns a boolean or structured result indicating whether the person meets the specified minimum age requirement, given their date of birth and an optional reference date.","failureModes":["Missing or malformed date_of_birth (not in YYYY-MM-DD format) — returns 400 or validation error","Invalid minimum_age value (e.g. non-integer or negative) — returns error","reference_date provided in wrong format — parsing error","Payment not provided or insufficient — 402 Payment Required","Future date of birth (impossible age) — may return false or error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, purely algorithmic age check against a date of birth without requiring document upload or identity verification. Ideal for onboarding flows, age-gating, or compliance checks where you already have the user's date of birth and need a fast, cheap, deterministic pass/fail result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:57.508Z","isFirstParty":false}