{"uid":"cap__wRoIgBl0GRRnMeGUE5Tp","slug":"delx-commerce-last-modified-compare-c5bb521d","name":"Delx Commerce — Last Modified Compare","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/last-modified-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after_epoch":{"type":"integer","description":"After Epoch supplied to Last Modified Compare; used only for this bounded calculation and processed in memory without retention."},"before_epoch":{"type":"integer","description":"Before Epoch supplied to Last Modified Compare; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"direction":"newer","delta_seconds":120},"schema":"delx/util-last-modified-compare/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3af22a08d2240acef2720f15dceafc3801c8b2b7dffd60a82da13e82ad1839fb","external_calls":0},"operation":"web_reliability:last_modified_compare"}},"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_TqjVUxWqDBIhM3xacdhtD","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":"Compares two Unix epoch timestamps to determine which is newer and by how many seconds","exampleAgentPrompt":"Compare these two Unix timestamps and tell me which one is newer and by how many seconds: before is 1700000000 and after is 1700000120.","exampleUseCases":[{"title":"Detect stale cache vs fresh content","prompt":"I have two timestamps — the cached version at epoch 1698000000 and the server's current last-modified at 1698000500. Can you tell me which is newer and by how many seconds so I know if the cache is stale?"},{"title":"Verify event ordering in audit log","prompt":"I need to confirm that event A (epoch 1701000000) actually happened before event B (epoch 1701003600) — can you compare them and tell me the direction and the gap in seconds?"},{"title":"Check if a webhook arrived on time","prompt":"My webhook has a before timestamp of 1699500000 and an after timestamp of 1699500045 — compare them to confirm the after one is newer and tell me the delta in seconds."}],"resultDescription":"Returns a JSON object with a 'result' field containing 'direction' (e.g. 'newer') and 'delta_seconds' (integer), plus a 'status' field ('pass'), operation label, schema version, and an evidence block including input_sha256 hash, whether data was retained (always false), and number of external calls made (always 0). No input data is stored.","failureModes":["Missing or non-integer epoch values may cause validation errors","If before_epoch equals after_epoch, delta_seconds will be 0 and direction may be undefined or equal","Payment failure via x402 will block the request before computation","Extremely large or negative epoch values may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a simple, verifiable, privacy-preserving computation to compare two Unix epoch timestamps — especially in agent workflows requiring auditable evidence (input hash, no data retention) that one timestamp precedes or follows another. Prefer it over custom code when you need a pay-per-call, no-signup utility with cryptographic provenance for web reliability checks or event ordering validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:46.047Z","isFirstParty":false,"canonicalSlug":"delx-commerce-last-modified-compare-c5bb521d"}