{"uid":"cap_54L8qUC2977xsZOwbILT0","slug":"recurrence-rules-rrule-nth-weekday-of-month-7710378e","name":"Recurrence Rules (RRULE) – Nth Weekday of Month","description":"Dates of the Nth weekday (or last) of each month in a year, e.g. second Tuesday of 2027; months without one are listed.","url":"https://recurrence-rules.x402tookit.com/nth-weekday-of-month?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":["weekday","nth","year"],"properties":{"nth":{"type":"integer","description":"1 to 5 for first..fifth, or -1 to -5 for last, second-to-last..."},"year":{"type":"integer","description":"Year, 1000 to 9999"},"month":{"type":"integer","description":"Only this month, 1 to 12 (default all twelve)"},"weekday":{"type":"string","description":"Day name or code: Tuesday, Tue, TU"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"nth":{"type":["null","number"]},"asOf":{"type":["null","string"]},"year":{"type":["null","number"]},"dates":{"type":["array","null"],"items":{"type":"object","properties":{"date":{"type":["null","string"]},"month":{"type":["null","string"]},"weekday":{"type":["null","string"]},"dayOfMonth":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"weekday":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"skippedMonths":{"type":["array","null"]},"rruleEquivalent":{"type":["null","string"]}}}}}}},"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_wioC66aT2L_KjL6a9stEE","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 the dates of the Nth (or last) occurrence of a specified weekday in each month of a given year, noting months where that occurrence doesn't exist.","exampleAgentPrompt":"What are the dates of the second Tuesday of every month in 2027, and let me know which months don't have one?","exampleUseCases":[{"title":"Payroll schedule for bi-monthly pay","prompt":"Give me the dates of the second and fourth Friday of every month in 2025 so I can set up a bi-monthly payroll calendar — also flag any months where the fourth Friday doesn't exist."},{"title":"Board meeting recurring dates","prompt":"Our board meets on the third Thursday of every month in 2026 — can you list all those dates and tell me if any months are missing a third Thursday?"},{"title":"Last weekday of month for reporting","prompt":"I need to schedule monthly reports for the last Monday of each month in 2027. List all twelve dates and note any months where there's no last Monday."}],"resultDescription":"Returns a structured response containing: the list of matching dates per month (with date string, month name, weekday, and day-of-month), any months skipped because the Nth weekday doesn't exist, an equivalent RRULE string, a plain-language summary, and metadata like year, nth value, and weekday requested.","failureModes":["Missing required parameters (weekday, nth, year) returns a validation error","nth value outside -5 to 5 or 0 returns an error","year outside 1000–9999 returns a range error","Invalid weekday name/code returns an error","month outside 1–12 returns a validation error","Some months may have no Nth occurrence (e.g., no 5th Tuesday) — these are listed in skippedMonths rather than as an error"],"whenToPreferThis":"Use this endpoint when you need to enumerate the exact calendar dates of a recurring weekday pattern within a year (e.g., 'second Tuesday of every month'), especially when you also want to know which months lack that occurrence. Prefer this over general RRULE parsers when you want human-readable output with per-month dates and an auto-generated RRULE equivalent string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T00:30:36.379Z","isFirstParty":false,"canonicalSlug":"recurrence-rules-rrule-nth-weekday-of-month-7710378e"}