{"uid":"cap_oI9jMuJ1Cs8AFHTORQP6v","slug":"delx-commerce-date-difference-calculator-1220b2b6","name":"Delx Commerce Date Difference Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/date-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","format":"date-time","description":"Ending ISO-8601 timestamp for a date range."},"start":{"type":"string","format":"date-time","description":"Starting ISO-8601 timestamp for a date range."}}},"responseSchema":{"type":"json","example":{"end":"2026-08-10T12:00:00+00:00","days":6,"start":"2026-08-04T12:00:00+00:00","schema":"delx/date-diff/v1","seconds":518400}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xnevZhOZgiUK3hc7SNeam","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the difference in days and seconds between two ISO-8601 timestamps","exampleAgentPrompt":"How many days and seconds are there between August 4, 2026 at noon UTC and August 10, 2026 at noon UTC?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days are left between today, July 1 2026 at 9am UTC, and our project deadline of August 10 2026 at 9am UTC?"},{"title":"Contract duration check","prompt":"A contract started on January 15 2026 at 00:00 UTC and ends on June 30 2026 at 00:00 UTC — how many days and seconds does that span?"},{"title":"Event interval calculation","prompt":"Our last product launch was March 1 2026 at 10:00 UTC and the next one is scheduled for September 1 2026 at 10:00 UTC — what's the exact number of days in between?"}],"resultDescription":"Returns a JSON object containing the original start and end timestamps, the number of whole days between them, the total number of seconds between them, and a schema identifier ('delx/date-diff/v1').","failureModes":["Invalid or missing start/end timestamps return an error","Non-ISO-8601 formatted dates are rejected","End timestamp earlier than start timestamp may return negative or zero values","Payment failure via x402 protocol prevents response","Network timeout or service unavailability"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, pay-per-use date difference computation without sign-up overhead, particularly in agentic workflows requiring verifiable delivery and micropayment via USDC on Base or Solana. It is ideal for agents that need to compute durations on demand without maintaining subscription credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.314Z","isFirstParty":false,"canonicalSlug":"delx-commerce-date-difference-calculator-1220b2b6"}