{"uid":"cap_8RMet9slLLkj7-1n3weUV","slug":"leap-year-checker-f299b812","name":"Leap Year Checker","description":"Check whether a year is a leap year and get related info: days in that year, the next and previous leap years, and the Gregorian leap-year rule.","url":"https://agent402.tools/api/leap-year","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"year":{"type":"integer","description":"Year to check (1-9999)"}}},"responseSchema":{"type":"json","example":{"year":2024,"isLeap":true,"leapRule":"Divisible by 4, except centuries unless also divisible by 400","nextLeap":2028,"prevLeap":2020,"daysInYear":366}},"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_m3Z02Gg34idLClJnn71iN","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":"Checks whether a given year is a leap year and returns related info including days in that year, adjacent leap years, and the Gregorian rule","exampleAgentPrompt":"Is 1900 a leap year? And while you're at it, tell me how many days were in that year and what the next leap year after it was.","exampleUseCases":null,"resultDescription":"Returns whether the queried year is a leap year, the total number of days in that year (365 or 366), the next leap year after it, the previous leap year before it, and a description of the Gregorian leap-year rule applied.","failureModes":["Year out of range (must be 1–9999) returns a validation error","Non-integer or missing year field returns a 400-level error","Payment not included or invalid results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need authoritative leap-year determination with adjacent leap year context (next/previous) and don't want to implement Gregorian calendar logic yourself — especially useful for date arithmetic, calendar generation, or validating user-supplied years.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.983Z","isFirstParty":false}