{"uid":"cap_rvXw_NddY4JleTvpct2B8","slug":"thaikit-business-day-calculator-eca02f26","name":"ThaiKit Business-Day Calculator","description":"Thai business-day calculator on the Bank of Thailand holiday calendar: is a date a business day (or weekend/holiday), next and previous business day, add N business days (&add=5, negative allowed), or count business days between two dates inclusive (&to=2026-11-30). &region=bangkok counts Bangkok-only special days. Query: ?date=2026-10-22&add=1","url":"https://api.thaikit.dev/business-days?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":{"to":{"type":"string","description":"Optional: end date YYYY-MM-DD; counts business days from date to to, both included"},"add":{"type":"string","description":"Optional: business days to add, e.g. 5 or -3"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date, YYYY-MM-DD"},"region":{"enum":["nationwide","bangkok"],"type":"string","description":"nationwide (default) or bangkok"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YRfoZ4R0reSd4YZ53CUti","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates Thai business days using the Bank of Thailand holiday calendar: checks if a date is a business day, finds next/previous business days, adds/subtracts N business days, or counts business days between two dates.","exampleAgentPrompt":"Is October 22, 2026 a Thai business day, and if not, what's the next working day? Also, what date is 5 business days after that, using the Bangkok region calendar?","exampleUseCases":[{"title":"Invoice payment deadline calculation","prompt":"Our Thai supplier invoice is due in 10 business days from November 15, 2026 — what's the actual calendar date that falls on, using the nationwide Thai holiday calendar?"},{"title":"Check if contract signing date is valid","prompt":"We're planning to sign a contract on April 6, 2026 in Thailand — is that actually a business day, or do we need to pick the next available working day?"},{"title":"Count working days in a project sprint","prompt":"How many Thai business days are there between October 1, 2026 and October 31, 2026, including Bangkok-only holidays?"}],"resultDescription":"Returns whether the queried date is a Thai business day, the next and previous business days, and optionally the date resulting from adding N business days or the count of business days between two dates. Results reflect the Bank of Thailand holiday calendar and optionally Bangkok-specific special days.","failureModes":["Invalid date format (not YYYY-MM-DD) returns a 400 error","Date out of supported range returns an error","Invalid region value (not 'nationwide' or 'bangkok') returns a validation error","Missing required 'date' parameter returns a 400 error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need Thai-specific business day calculations that respect the official Bank of Thailand holiday calendar, including regional Bangkok-only special days. Prefer this over generic date libraries that don't know Thai public holidays or over manual holiday lists that may be outdated.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T18:36:49.172Z","isFirstParty":false,"canonicalSlug":"thaikit-business-day-calculator-eca02f26"}