80trust / 100
Developer Structured Diff
by API Acre in Search & web
x402 APIPassing, checked 4 h ago
Compare JSON or YAML deterministically and return source hashes plus machine-readable additions, removals, and replacements by path with explicit truncation evidence.
POST https://apiacre.com/v1/developer/structured-diff
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 108 ms typical, 108 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://apiacre.com/v1/developer/structured-diff" \
-H "content-type: application/json" \
-d '{"after":"{\"status\":\"approved\",\"features\":{\"export\":true}}","before":"{\"status\":\"draft\",\"features\":{\"export\":false}}","format":"json"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdeveloper%2Fstructured-diff
const res = await pay("https://apiacre.com/v1/developer/structured-diff", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"after":"{\"status\":\"approved\",\"features\":{\"export\":true}}","before":"{\"status\":\"draft\",\"features\":{\"export\":false}}","format":"json"}),
});
console.log(await res.json());Example input
{
"after": "{\"status\":\"approved\",\"features\":{\"export\":true}}",
"before": "{\"status\":\"draft\",\"features\":{\"export\":false}}",
"format": "json"
}Example output
{
"data": {
"afterSha256": "1491b575597fbdbb636572aa4cf9ac93e424273a4aa920242398844866dd2a0f",
"beforeSha256": "242eb38c815b9bab51819f9aa7ebd832666455dbfce03671aae54cc93abafcdb",
"changeCount": 2,
"changed": true,
"changes": [
{
"after": true,
"before": false,
"op": "replace",
"path": "$.features.export"
}
],
"changesReturned": 2,
"changesTruncated": false,
"format": "json"
},
"meta": {
"cached": false,
"duration_ms": 42,
"next_actions": [],
"sources": [],
"warnings": []
},
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "developer.structured-diff",
"version": "1"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 108 ms | $0.01 |