{"uid":"cap_gotJPNe8U7Bp93A3reJFh","slug":"due-date-calculator-batch-firstmention-uk-f03f17c1","name":"Due Date Calculator (Batch) — firstmention.uk","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/batch?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_h5FWFpEOa1qZbzhBDARNB","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 checks whether a deadline has expired, in a batch-friendly GET call paid via x402 USDC.","exampleAgentPrompt":"How many calendar days, business days, and weeks are there between March 1 2025 and April 24 2025, and has the deadline already expired?","exampleUseCases":[{"title":"Project deadline elapsed check","prompt":"Has the deadline of June 30 2025 already passed relative to today May 15 2025, and if not, how many business days do we still have left?"},{"title":"Invoice payment terms calculation","prompt":"An invoice was issued on January 10 2025 with net-30 terms — how many calendar days and business days have passed since then as of February 20 2025, and is it overdue?"},{"title":"Contract duration in weeks","prompt":"How many weeks and business days are there between the contract start date of April 1 2025 and the end date of June 24 2025?"}],"resultDescription":"A JSON object containing: 'op' (the operation performed, e.g. 'between'), 'days' (total calendar days), 'weeks' (fractional weeks), 'business_days' (working days excluding weekends), and 'expired' (boolean indicating whether the end date has already passed).","failureModes":["Missing required 'from' or 'to' query parameters returns a 400 error","Invalid date format causes a parsing error","Reversed date range may return negative values or unexpected 'expired' flag","Payment not included or insufficient USDC triggers a 402 Payment Required response","Unsupported 'op' value returns an error or unexpected output"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic date-arithmetic computation — especially business-day counts or expiry checks — without spinning up a full calendar service. It is particularly useful for agents doing deadline validation, SLA tracking, or invoice aging on a pay-per-call basis where no persistent state is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T18:49:34.441Z","isFirstParty":false,"canonicalSlug":"due-date-calculator-batch-firstmention-uk-f03f17c1"}