agents.writerslogic.com/api/v1/metric-comparability
Compares two structured metric definitions field by field (numerator, denominator, aggregation, weighting, population, filters, exclusions, period grain and calendar, timezone, currency, FX and tax basis, unit) and returns which differences make the numbers not comparable, which are adjustable with raw data, and which fields are missing from one side. In drift mode a is the old and b the new defin
POST
https://agents.writerslogic.com/api/v1/metric-comparabilityUptime100% of 3 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://agents.writerslogic.com/api/v1/metric-comparability", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"a":{"name":"conversion rate","period":{"calendar":"iso-week","timezone":"UTC","granularity":"week"},"numerator":"orders","exclusions":["internal traffic"],"aggregation":"ratio-of-sums","denominator":"sessions"},"b":{"name":"Conversion Rate","period":{"calendar":"us-week","timezone":"America/New_York","granularity":"week"},"numerator":"orders","exclusions":["internal traffic","bots"],"aggregation),
});
console.log(await res.json());Example input
{"a":{"name":"conversion rate","period":{"calendar":"iso-week","timezone":"UTC","granularity":"week"},"numerator":"orders","exclusions":["internal traffic"],"aggregation":"ratio-of-sums","denominator":"sessions"},"b":{"name":"Conversion Rate","period":{"calendar":"us-week","timezone":"America/New_York","granularity":"week"},"numerator":"orders","exclusions":["internal traffic","bots"],"aggregation