{"uid":"cap_lZiKU8d8XtxC0_t4fWkbR","slug":"iso-week-number-bca953ff","name":"ISO Week Number","description":"Return the ISO 8601 week number, week year and day of year for a date. Pure CPU, instant.","url":"https://api.gadgethumans.com/week-number?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["date"],"properties":{"date":{"type":"string","description":"Date (default today)"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u9c6smy6OY6snqeuu_TZo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the ISO 8601 week number, week year, and day-of-year for a given date.","exampleAgentPrompt":"What ISO 8601 week number, week year, and day of year does 2024-03-15 fall on?","exampleUseCases":[{"title":"Project sprint week identification","prompt":"What ISO week number is 2025-02-10 in? I need to label a sprint in our planning tool."},{"title":"Payroll calendar week lookup","prompt":"Can you tell me the ISO week number, week year, and day of year for 2024-12-30? Our payroll system uses ISO weeks and I want to make sure year-end is handled correctly."},{"title":"Today's week number check","prompt":"What ISO 8601 week number is today?"}],"resultDescription":"Returns a JSON object containing the ISO 8601 week number (1–53), the ISO week year (which may differ from the calendar year near year boundaries), and the day of year (1–366) for the requested date.","failureModes":["Missing or invalid date format returns an error — date should be provided as a parseable string such as YYYY-MM-DD","Ambiguous or malformed dates may be rejected or misinterpreted","No response if the API is unreachable or the x402 payment fails"],"whenToPreferThis":"Use this endpoint when you need a fast, authoritative ISO 8601 week number calculation without setting up local date libraries. It is especially valuable when ISO week year (which can differ from the calendar year for dates near Jan 1) is important, and when you need the day-of-year alongside the week number in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:49:43.199Z","isFirstParty":false,"canonicalSlug":"iso-week-number-bca953ff"}