{"uid":"cap_Maagd4qRhSPRPt1OHf7as","slug":"calendar-month-grid-generator-f748f4b5","name":"Calendar Month Grid Generator","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/v1/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_zwFwQCenT7jwcNdrMMMKe","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 calendar month as a grid of week rows (Monday or Sunday start), along with the weekday of the 1st, total day count, and leap year status.","exampleAgentPrompt":"Can you give me a calendar grid for March 2026 with weeks starting on Monday — I need to know what day the 1st falls on, how many days are in the month, and whether it's a leap year?","exampleUseCases":[{"title":"Monthly scheduler calendar widget","prompt":"Generate a full calendar grid for February 2028 with weeks starting on Sunday — I need to know what day of the week the 1st falls on and how many days are in the month."},{"title":"Leap year check for payroll planning","prompt":"Is 2028 a leap year? Also show me the week grid for February 2028 starting on Monday so I can plan our payroll schedule."},{"title":"Event planning layout for calendar app","prompt":"Give me the week-row layout for October 2025 starting on Monday — I'm building a calendar view and need the grid, the weekday of the 1st, and the total day count."}],"resultDescription":"Returns a structured object containing: a 2D grid of week rows where each cell is a day number (or null for padding), the weekday 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 number (e.g. 0 or 13) returns an error","Invalid year (e.g. negative or non-integer) returns a validation error","Missing required fields (year or month) result in a bad request response","Invalid week-start value (not Monday or Sunday) may return an error or default behavior"],"whenToPreferThis":"Use this endpoint when you need a structured, grid-ready calendar layout for a specific month — especially when you also need metadata like leap year status, day count, or the weekday of the 1st. Prefer this over manual date calculations or general-purpose date libraries when you need a pre-formatted week-row grid ready for rendering in a UI or scheduling tool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:48:00.937Z","isFirstParty":false}