{"uid":"cap_4Fd-yO5_j0HM25rgLx5Xj","slug":"delx-commerce-days-between-dates-58b024fe","name":"Delx Commerce — Days Between Dates","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/days-between?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","description":"Input field: end."},"start":{"type":"string","description":"Input field: start."}}},"responseSchema":{"type":"json","example":{"ok":true,"days":5,"schema":"delx/util-days-between/v1"}},"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_i1WmVf9KjR59aVCH1TXKW","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":"Calculates the exact number of days between two date strings, returning a verified integer result for $0.001 USDC per call with no signup required.","exampleAgentPrompt":"How many days are there between January 15, 2024 and March 22, 2025?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days are left between today, June 10 2025, and our project deadline on September 30 2025?"},{"title":"Contract duration calculation","prompt":"Calculate the exact number of days between the contract start date March 1, 2024 and its end date February 28, 2025."},{"title":"Age or anniversary duration","prompt":"How many days is it from my birthday on July 4, 1990 to today, June 10, 2025?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean (true on success), a 'days' integer representing the number of days between the two input dates, and a 'schema' string ('delx/util-days-between/v1') identifying the response format.","failureModes":["Invalid or unparseable date strings in start or end fields — may return error or unexpected result","Missing required start or end fields — likely returns a validation error","End date before start date — may return a negative number or error depending on implementation","Incorrect date format not recognized by the parser — returns error response","Payment failure (USDC/x402) — 402 Payment Required response before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need a fast, verified, pay-per-use date difference computation with no prior account setup, especially in agent workflows that require cryptographic payment receipts (x402/USDC on Base or Solana). It is ideal for one-off or low-volume date arithmetic calls where integrating a full SDK or managing API keys is undesirable. Prefer it over local computation when auditability or verifiable delivery of results matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:41.769Z","isFirstParty":false,"canonicalSlug":"delx-commerce-days-between-dates-58b024fe"}