Cost of living for a US state, with level labels
macro.x3digitalcapital.com/macro/cost-of-living
Cost of living for a US state, with level labels: state unemployment and (when a Census key is configured) rent and home value vs the US; region or state EIA gas/diesel vs the national average; and region BLS CPI (all items, rent, groceries, energy) plus national all-items y/y. ?state= required (e.g. WI). Bad params return 400 before payment. US government public-domain data. Not financial advice.
GET
https://macro.x3digitalcapital.com/macro/cost-of-livingUptime100% of 1 check 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://macro.x3digitalcapital.com/macro/cost-of-living?state=WI");
console.log(await res.json());Example input
{
"state": "WI"
}