# Delx Commerce — URL Query Parameter Diff

> Delx Commerce — URL Query Parameter Diff 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-02).

Compares the query parameters of two URLs and returns which parameters were added, changed, or removed between them.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-query-param-diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-query-parameter-diff-6461f8e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MfRa84gSI9Tav6Q87WGlM

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-url-query-parameter-diff-6461f8e1 -d '<json body>'
```

Example prompt: Can you tell me what query parameters changed between these two URLs? Before: 'https://example.com/search?a=1&b=2' and after: 'https://example.com/search?a=2&c=3' — I want to know what was added, removed, or updated.

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, privacy-safe comparison of query parameters between two URL versions — especially in agent pipelines where no data retention is acceptable and you want cryptographic proof (SHA-256 hash) of the input. Ideal for URL auditing, redirect validation, parameter drift detection, and webhook integrity checks. At $0.001 USDC per call with no signup required, it fits pay-as-you-go agent workflows well. Prefer it over general-purpose string diff tools when you specifically need structured query-parameter-level semantics rather than raw text diffing.

## Known failure modes

- Malformed or non-URL strings may result in parse errors
- URLs exceeding 8192 characters will be rejected
- Missing required 'before_url' or 'after_url' fields will cause validation errors
- URLs with no query parameters will return empty diff sections
- Payment failure via x402 will block the request from being processed

## 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 three sections — 'added' (new query params in the after URL), 'changed' (params present in both but with different values, showing before and after values), and 'removed' (params in the before URL but absent in the after URL). Also includes an evidence block confirming no data was retained, an input SHA-256 hash for verifiability, zero external calls, and a status of 'pass'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after_url": {
   "type": "string",
   "maxLength": 8192,
   "description": "After URL supplied to URL Query Param Diff; used only for this bounded calculation and processed in memory without retention."
  },
  "before_url": {
   "type": "string",
   "maxLength": 8192,
   "description": "Before URL supplied to URL Query Param Diff; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "added": {
    "c": "3"
   },
   "changed": {
    "a": {
     "after": "2",
     "before": "1"
    }
   },
   "removed": {
    "b": "2"
   }
  },
  "schema": "delx/util-url-query-param-diff/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3515f5558fb69829367b6de74545ae835dc31d8214a47050a271c62c654bddfe",
   "external_calls": 0
  },
  "operation": "web_reliability:url_query_param_diff"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-query-parameter-diff-6461f8e1/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)
