{"uid":"cap_2ZV89LeFYsK-cg3CiwP3s","slug":"due-date-calculator-api-12ea575e","name":"Due Date Calculator API","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/due/due?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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","properties":{"op":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"days":{"type":"number"},"weeks":{"type":"number"},"expired":{"type":"boolean"},"business_days":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"op":"between","days":54,"weeks":7.71,"expired":false,"business_days":38}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VZkndc008ipfSQxltUr0c","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the number of calendar days, business days, and weeks between two dates or from a date to now, and checks if a date has expired","exampleAgentPrompt":"How many calendar days, business days, and weeks are between January 15, 2025 and March 10, 2025, and has the end date already expired?","exampleUseCases":[{"title":"Project deadline days remaining","prompt":"How many calendar days and business days are left between today and June 30, 2025 — and has that deadline already passed?"},{"title":"Invoice due date age check","prompt":"An invoice was issued on February 1, 2025 and was due March 1, 2025 — how many days and business days overdue is it, and is it expired?"},{"title":"Contract duration calculation","prompt":"How many total days, business days, and weeks are there between March 15, 2024 and March 15, 2025?"}],"resultDescription":"Returns a JSON object with the operation name, the total number of calendar days, the number of weeks (as a decimal), whether the end date has expired (boolean), and the number of business days between the two dates.","failureModes":["Missing required 'op' or date query parameters returns an error","Invalid date formats result in parsing errors","Dates out of supported range may return unexpected results","Malformed query string parameters may return 400-level errors"],"whenToPreferThis":"Use this endpoint when you need fast, reliable date arithmetic including business-day counts — especially when building deadline trackers, invoice aging tools, contract duration calculators, or any workflow that must distinguish calendar days from working days. Prefer this over general-purpose date libraries when you need a pay-per-call API that handles business day logic without additional setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:55:23.812Z","isFirstParty":false,"canonicalSlug":"due-date-calculator-api-12ea575e"}