# Delx Commerce — Last Modified Compare

> Delx Commerce — Last Modified Compare is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Compares two Unix epoch timestamps to determine which is newer and by how many seconds

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/last-modified-compare?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-last-modified-compare-c5bb521d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__wRoIgBl0GRRnMeGUE5Tp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-last-modified-compare-c5bb521d -d '<json body>'
```

Example prompt: Compare these two Unix timestamps and tell me which one is newer and by how many seconds: before is 1700000000 and after is 1700000120.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-last-modified-compare-c5bb521d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
