{"uid":"cap_Sny_84a39BfEbFlm0UeAM","slug":"textkit-business-day-counter-6246bcd0","name":"TextKit Business-Day Counter","description":"General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.","url":"https://textkit.johnaio281.workers.dev/api/tk/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":["from","to"],"properties":{"to":{"type":"object","required":["year","month","day"],"properties":{"day":{"type":"integer"},"year":{"type":"integer"},"month":{"type":"integer"}}},"from":{"type":"object","required":["year","month","day"],"properties":{"day":{"type":"integer"},"year":{"type":"integer"},"month":{"type":"integer"}}}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"businessDays":4,"calendarDays":4}},"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_uDkjMdQmy1TekQqoloI9E","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":"Counts the number of business days (and calendar days) between two dates","exampleAgentPrompt":"How many business days are there between March 3, 2025 and March 31, 2025?","exampleUseCases":[{"title":"Project deadline working-day estimation","prompt":"I need to know how many business days are between April 7, 2025 and May 2, 2025 so I can plan my project milestones."},{"title":"Invoice payment window calculation","prompt":"Our contract says payment is due within 30 business days of January 20, 2025 — how many calendar days is that actually?"},{"title":"Quarter-end reporting countdown","prompt":"How many business days are left between today, June 2, 2025, and June 30, 2025 so I know how much time the finance team has to close the books?"}],"resultDescription":"Returns a JSON object with two integer fields: `businessDays` (the count of weekdays, i.e. Monday–Friday, in the range) and `calendarDays` (the total inclusive calendar-day span). For example, a 4-calendar-day range spanning no weekend returns {\"businessDays\":4,\"calendarDays\":4}.","failureModes":["Missing required `from` or `to` query parameters — returns a validation error","Invalid date components (e.g. month 13, day 32) — likely returns an error response","`to` date earlier than `from` date — may return zero or negative business days","Payment failure via x402 protocol — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use business-day calculation with no API key or signup required. It is ideal for agents that need occasional weekday counts within automation workflows or scheduling tasks. It does not account for public holidays (only excludes weekends), so prefer a dedicated holiday-aware calendar API if public holidays matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:46.037Z","isFirstParty":false,"canonicalSlug":"textkit-business-day-counter-6246bcd0"}