80trust / 100
Cpi
by US CPI Data & Inflation Report in Onchain & crypto
x402 APIPassing, checked 12 min ago
Gives you official United States inflation numbers from the government's BLS Consumer Price Index. Ask for the newest reading, a specific month in the past, or a whole range of months, and get back clear percentages for overall inflation and 'core' inflation (which ignores food and energy prices), plus a plain-English summary sentence.
POST https://cpi-report-us.underscoredone.com/cpi
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 317 ms typical, 317 ms slowest 5%
- Last check
- 12 min ago
- Next check
- in 16 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://cpi-report-us.underscoredone.com/cpi" \
-H "content-type: application/json" \
-d '{"period":"2024-03"}'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%2Fcpi-report-us.underscoredone.com%2Fcpi
const res = await pay("https://cpi-report-us.underscoredone.com/cpi", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"period":"2024-03"}),
});
console.log(await res.json());Example input
{
"period": "2024-03"
}Example output
{
"api_version": "1.0.0"
}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 |
|---|---|---|---|---|
| 12 min ago | Passed | 402 | 317 ms | $0.01 |
| 5 h ago | Passed | 402 | 364 ms | $0.01 |