{"uid":"cap_PADsH--9J5nFnaLWgKsc6","slug":"day-of-year-calculator-006e4f1f","name":"Day of Year Calculator","description":"Get the day number within the year (1-366) for any date, plus days remaining, leap-year status, percent of year complete, and a simple (Sunday-start) week number.","url":"https://agent402.tools/api/day-of-year","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"ISO 8601 date string (e.g. \"2026-06-23\")"}}},"responseSchema":{"type":"json","example":{"date":"2026-06-23","dayOfYear":174,"daysInYear":365,"isLeapYear":false,"weekNumber":26,"daysRemaining":191,"percentComplete":47.7}},"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_BztkGxShfIscl9PPFIdRH","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":"Returns the day number within the year (1-366), days remaining, leap-year status, percent of year complete, and week number for any given date.","exampleAgentPrompt":"What day of the year is March 15, 2026 — like the ordinal day number — and how many days are left in the year after that?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the day-of-year number (1–366), the number of days remaining in the year, whether the year is a leap year (boolean), the percentage of the year that has elapsed, and a simple Sunday-start week number.","failureModes":["Invalid or missing date string returns an error (e.g. non-ISO-8601 format)","Dates outside supported range may return an error","Malformed JSON body causes a 400 error","Payment failure or insufficient funds returns a 402 response"],"whenToPreferThis":"Use this endpoint when you need quick, structured calendar metadata about a specific date — particularly the ordinal day number, remaining days, leap year flag, year-completion percentage, or week number — without setting up a full date library or doing manual arithmetic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.383Z","isFirstParty":false}