{"uid":"cap_MYIxJVbozXuyvgMvzhVFj","slug":"week-number-date-details-lookup-92ea050b","name":"Week Number & Date Details Lookup","description":"ISO 8601 week number and week year, day of the year, quarter, weekday and leap-year status for a date.","url":"https://timezone-time.x402tookit.com/week-number?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":[],"properties":{"date":{"type":"string","description":"YYYY-MM-DD, default today (UTC)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"date":{"type":["null","string"]},"source":{"type":["null","string"]},"isoWeek":{"type":["null","number"]},"quarter":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"weekday":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"leapYear":{"type":["boolean","null"]},"dayOfYear":{"type":["null","number"]},"daysInYear":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"isoWeekYear":{"type":["null","number"]},"isoWeekLabel":{"type":["null","string"]},"daysLeftInYear":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vBAP9sYqPJ4p_7a9VXJRz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ISO 8601 week number, week year, day of year, quarter, weekday name, and leap-year status for a given date.","exampleAgentPrompt":"What ISO week number, quarter, weekday, and day of year is 2025-03-15? Also tell me whether it's a leap year.","exampleUseCases":[{"title":"Project sprint week numbering","prompt":"What ISO week number and week year does 2025-01-06 fall in? I need it for labeling our sprint."},{"title":"Fiscal quarter classification","prompt":"Which quarter does November 15th 2025 fall in, and what weekday is it?"},{"title":"Leap year and days-remaining check","prompt":"Is 2024 a leap year, and how many days are left in the year after October 10th 2024?"}],"resultDescription":"Returns a JSON object with the ISO week number (isoWeek), ISO week year (isoWeekYear), a formatted label like 'W03-2025' (isoWeekLabel), the day of year (dayOfYear), total days in the year (daysInYear), days remaining in the year (daysLeftInYear), the fiscal quarter (quarter), the weekday name (weekday), and a boolean leap year flag (leapYear), plus a human-readable summary. If no date is provided, defaults to today in UTC.","failureModes":["Invalid date format returns an error — must be YYYY-MM-DD","Dates outside supported range may return null fields","Missing date parameter defaults to today UTC, which may be unexpected for non-UTC callers","Degraded mode may return partial results with a degraded flag set to true"],"whenToPreferThis":"Use this endpoint when you need ISO 8601 week metadata, day-of-year position, quarter classification, or leap-year determination for a specific date, particularly in scheduling, reporting, or calendar-aware workflows. It is purpose-built for date attribute lookups and returns multiple properties in a single call, avoiding the need to compute these values client-side.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:24.146Z","isFirstParty":false,"canonicalSlug":"week-number-date-details-lookup-92ea050b"}