{"uid":"cap_qCP-Ki86BoIOUkkAq1nek","slug":"fastx402-lab-date-info-a27eb471","name":"FastX402 Lab – Date Info","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/date-info?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":["date"],"properties":{"date":{"type":"string","description":"ISO 8601 date or date-time"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"date":{"type":"string"},"unix":{"type":"integer"},"quarter":{"type":"integer"},"weekday":{"type":"string"},"iso_week":{"type":"integer"},"is_weekend":{"type":"boolean"},"day_of_year":{"type":"integer"},"is_leap_year":{"type":"boolean"},"days_in_month":{"type":"integer"},"iso_week_year":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"date":"2026-10-17","unix":1792195200,"quarter":4,"weekday":"Saturday","iso_week":42,"is_weekend":true,"day_of_year":290,"is_leap_year":false,"days_in_month":31,"iso_week_year":2026}},"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_qONXSlNFZDLn2WqhAO-ab","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 calendar facts for a given ISO 8601 date: weekday, ISO week number, week-year, day of year, quarter, days in month, leap year flag, weekend flag, and Unix timestamp.","exampleAgentPrompt":"What are the calendar facts for October 17, 2026 — give me the weekday, ISO week number, quarter, whether it's a weekend, and the Unix timestamp.","exampleUseCases":[{"title":"ISO week number for payroll reporting","prompt":"Our payroll system needs the ISO week number and week-year for March 15, 2027 — can you look that up?"},{"title":"Leap year check for scheduling logic","prompt":"Is February 29 a valid date in 2028? Tell me if 2028 is a leap year and how many days are in February that year."},{"title":"Quarter and day-of-year for fiscal analytics","prompt":"For our Q4 report, what quarter and day of year does December 5, 2025 fall in, and is it a weekend?"}],"resultDescription":"A JSON object containing: the normalized date string, weekday name (e.g. 'Saturday'), ISO week number, ISO week-year, day of year (1–366), quarter (1–4), number of days in the month, a boolean for leap year, a boolean for weekend, and the Unix epoch timestamp in seconds.","failureModes":["Missing or malformed 'date' query parameter returns an error — date must be a valid ISO 8601 date or date-time string","Dates outside supported range may return unexpected results","Non-ISO date formats (e.g. 'Oct 17 2026') will not parse correctly","Network or payment authentication failure returns a 402 or 5xx response"],"whenToPreferThis":"Use this endpoint when you need a fast, single-call lookup of multiple calendar facts for one date — especially ISO week math, quarter assignment, leap year checks, or Unix timestamp conversion — without setting up a full date library. Ideal for scheduling agents, reporting pipelines, and fiscal calendar logic where ISO week-year semantics matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:53.051Z","isFirstParty":false,"canonicalSlug":"fastx402-lab-date-info-a27eb471"}