81trust / 100
Gdp
by x402stock.xyz in Markets & finance
x402 APIPassing, checked 4 h ago
US real Gross Domestic Product, quarterly, in billions of chained 2017 dollars (seasonally adjusted annual rate), with the latest reading, prior quarter, quarter-over-quarter and year-over-year change, and recent history. No ticker needed. The broad measure of economic output for macro-aware analysis. Sourced from the St. Louis Fed (FRED). From x402stock
GET https://x402stock.xyz/api/v1/gdp
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 289 ms typical, 289 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 GET "https://x402stock.xyz/api/v1/gdp"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%2Fx402stock.xyz%2Fapi%2Fv1%2Fgdp
const res = await pay("https://x402stock.xyz/api/v1/gdp");
console.log(await res.json());Example input
{}Example output
{
"as_of": "2026-01-01T00:00:00.000Z",
"change": 122.3,
"change_percent": 0.52,
"frequency": "quarterly",
"history": [
{
"date": "2026-01-01",
"value": 23512.4
}
],
"latest": {
"date": "2026-01-01",
"value": 23512.4
},
"prior": {
"date": "2025-10-01",
"value": 23390.1
},
"series_id": "GDPC1",
"source": "fred",
"title": "Real Gross Domestic Product",
"unit": "billions_of_chained_2017_usd_saar",
"yoy_percent": 2.4
}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 | 289 ms | $0.01 |