Skip to content
Fourohtwo

x402-agent-tools.nerolabs.workers.dev/data/diff

Compares an old and a new list of JSON rows by a key field and returns what was added, removed and changed, with the old and new value of every changed field. Use it to spot new leads, price changes or deleted items between two scrapes. Up to 500 rows a side. $0.001 per new row sent (old rows free), $0.002 minimum. Same engine as nerolabs/dataset-diff-detector.

BaseAnswering
POSThttps://x402-agent-tools.nerolabs.workers.dev/data/diff

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-agent-tools.nerolabs.workers.dev/data/diff", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"keyFields":["sku"],"newRows":[{"price":12,"sku":"A1"},{"price":5,"sku":"C3"}],"oldRows":[{"price":10,"sku":"A1"},{"price":20,"sku":"B2"}]}),
});
console.log(await res.json());

Example input

{
  "keyFields": [
    "sku"
  ],
  "newRows": [
    {
      "price": 12,
      "sku": "A1"
    },
    {
      "price": 5,
      "sku": "C3"
    }
  ],
  "oldRows": [
    {
      "price": 10,
      "sku": "A1"
    },
    {
      "price": 20,
      "sku": "B2"
    }
  ]
}

More from Nero Labs Agent ToolsProvider status