{"uid":"cap_cK8eQwPttg6lUgmONJyQw","slug":"24k-labs-calendar-month-grid-0103e231","name":"24K Labs Calendar Month Grid","description":"Return a month as a grid of week rows (weeks start Monday or Sunday), plus the weekday of the 1st, the day count, and whether it is a leap year.","url":"https://api.24klabs.ai/api/calendar-month","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"year":{"type":"number"},"month":{"type":"number"},"first_weekday":{"type":"string"}}},"responseSchema":{"type":"json","example":{"weeks":[[0,0,0,0,0,0,1]],"days_in_month":28}},"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_Wn_UKrEyo9lbia_FQYKqf","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 a month as a structured grid of week rows (Monday or Sunday start), plus the weekday of the 1st, total day count, and leap year flag.","exampleAgentPrompt":"Give me the full calendar grid for March 2025 with weeks starting on Monday — I need the week rows, what day the 1st falls on, and the total number of days.","exampleUseCases":[{"title":"Monthly calendar UI rendering","prompt":"Build me the week-row grid for September 2025 with weeks starting on Sunday so I can render a monthly calendar view in my app."},{"title":"Leap year and day count check","prompt":"How many days does February 2028 have and is it a leap year? Also tell me what day of the week the 1st falls on."},{"title":"Event scheduling layout","prompt":"I need to plan events for November 2025 — can you get me the full calendar grid with Monday as the start of each week so I can see how the weeks are laid out?"}],"resultDescription":"A JSON response containing: an array of week rows where each row lists the days of that week (with padding for partial weeks), the weekday index of the 1st of the month, the total number of days in the month, and a boolean indicating whether the year is a leap year.","failureModes":["Invalid month value (outside 1–12) returns an error","Invalid year value returns an error","Missing required fields (year or month) returns a validation error","Invalid week-start option returns an error"],"whenToPreferThis":"Use this endpoint when you need structured calendar data for a specific month — particularly when you need week-row layout (e.g. for rendering calendar UIs), need to know what weekday a month starts on, or want to confirm day counts and leap year status without manual date arithmetic. Prefer it over generic date libraries when operating in a serverless or agent context without access to local computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:59:19.489Z","isFirstParty":false}