77trust / 100

Economy Indicators

by Economic Indicators in Markets & finance

x402 APIPassing, checked 7 h ago

A country's headline economics from the World Bank: GDP, GDP growth, GDP per capita (nominal and PPP), inflation, unemployment, population and growth, government debt, current account, exports, imports, FDI, real interest rate and life expectancy, each with its latest year, the previous year and the change. Plus region, income level and capital.

GET
https://onchaincheck.dev/economy/indicators
Price
$0.005
per call in USDC
Uptime
97.7%
last 30 days
Response time
122 ms
811 ms slowest 5%
Last check
Passed
7 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://onchaincheck.dev/economy/indicators

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://onchaincheck.dev/economy/indicators?country=CA

Parameters

ParameterTypeRequiredDescription
countrystringYesISO code (CA, DEU) or English name (Canada)

Example response

The provider's example. We can't check it without paying.

Example response, 149 lines
{
  "country": {
    "capital": "Ottawa",
    "incomeLevel": "High income",
    "iso2": "CA",
    "iso3": "CAN",
    "name": "Canada",
    "region": "North America"
  },
  "indicators": {
    "current_account_pct_gdp": {
      "change": -0.47,
      "indicator": "BN.CAB.XOKA.GD.ZS",
      "name": "Current account balance (% of GDP)",
      "previous": -0.49,
      "previousYear": "2024",
      "value": -0.96,
      "year": "2025"
    },
    "exports_pct_gdp": {
      "change": -1.14,
      "indicator": "NE.EXP.GNFS.ZS",
      "name": "Exports of goods and services (% of GDP)",
      "previous": 32.47,
      "previousYear": "2024",
      "value": 31.33,
      "year": "2025"
    },
    "fdi_inflows_pct_gdp": {
      "change": 0.25,
      "indicator": "BX.KLT.DINV.WD.GD.ZS",
      "name": "Foreign direct investment, net inflows (% of GDP)",
      "previous": 2.78,
      "previousYear": "2024",
      "value": 3.02,
      "year": "2025"
    },
    "gdp_growth_pct": {
      "change": -0.3,
      "indicator": "NY.GDP.MKTP.KD.ZG",
      "name": "GDP growth (annual %)",
      "previous": 2.05,
      "previousYear": "2024",
      "value": 1.74,
      "year": "2025"
    },
    "gdp_per_capita_ppp_usd": {
      "change": 1263,
      "indicator": "NY.GDP.PCAP.PP.CD",
      "name": "GDP per capita, PPP (current international $)",
      "previous": 65483,
      "previousYear": "2024",
      "value": 66746,
      "year": "2025"
    },
    "gdp_per_capita_usd": {
      "change": 681.96,
      "indicator": "NY.GDP.PCAP.CD",
      "name": "GDP per capita (current US$)",
      "previous": 55016,
      "previousYear": "2024",
      "value": 55698,
      "year": "2025"
    },
    "gdp_usd": {
      "change": 49823582742,
      "indicator": "NY.GDP.MKTP.CD",
      "name": "GDP (current US$)",
      "previous": 2270076189683,
      "previousYear": "2024",
      "value": 2319899772426,
      "year": "2025"
    },
    "government_debt_pct_gdp": {
      "change": 3.68,
      "indicator": "GC.DOD.TOTL.GD.ZS",
      "name": "Central government debt, total (% of GDP)",
      "previous": 60.46,
      "previousYear": "2023",
      "value": 64.13,
      "year": "2024"
    },
    "imports_pct_gdp": {
      "change": -0.47,
      "indicator": "NE.IMP.GNFS.ZS",
      "name": "Imports of goods and services (% of GDP)",
      "previous": 32.65,
      "previousYear": "2024",
      "value": 32.18,
      "year": "2025"
    },
    "inflation_cpi_pct": {
      "change": -0.31,
      "indicator": "FP.CPI.TOTL.ZG",
      "name": "Inflation, consumer prices (annual %)",
      "previous": 2.38,
      "previousYear": "2024",
      "value": 2.07,
      "year": "2025"
    },
    "life_expectancy_years": {
      "change": 0.48,
      "indicator": "SP.DYN.LE00.IN",
      "name": "Life expectancy at birth, total (years)",
      "previous": 81.63,
      "previousYear": "2023",
      "value": 82.11,
      "year": "2024"
    },
    "population": {
      "change": 389324,
      "indicator": "SP.POP.TOTL",
      "name": "Population, total",
      "previous": 41262329,
      "previousYear": "2024",
      "value": 41651653,
      "year": "2025"
    },
    "population_growth_pct": {
      "change": -2.05,
      "indicator": "SP.POP.GROW",
      "name": "Population growth (annual %)",
      "previous": 2.98,
      "previousYear": "2024",
      "value": 0.94,
      "year": "2025"
    },
    "real_interest_rate_pct": {
      "change": -1.84,
      "indicator": "FR.INR.RINR",
      "name": "Real interest rate (%)",
      "previous": 1.97,
      "previousYear": "2016",
      "value": 0.13,
      "year": "2017"
    },
    "unemployment_pct": {
      "change": 0.56,
      "indicator": "SL.UEM.TOTL.ZS",
      "name": "Unemployment, total (% of total labor force) (modeled ILO estimate)",
      "previous": 6.35,
      "previousYear": "2024",
      "value": 6.91,
      "year": "2025"
    }
  },
  "notes": "Yearly values; each indicator's latest available year and the one before. Recent years appear as countries report, so years differ by indicator.",
  "source": "World Bank World Development Indicators"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://onchaincheck.dev/economy/indicators?country=CA'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://onchaincheck.dev/economy/indicators?country=CA' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fonchaincheck.dev%2Feconomy%2Findicators
const res = await pay("https://onchaincheck.dev/economy/indicators?country=CA");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://onchaincheck.dev/economy/indicators?country=CA")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
7 h agoPassed40225 ms$0.005
17 h agoPassed40232 ms$0.005
27 h agoPassed40286 ms$0.005
47 h agoTimed out---
4 days agoTimed out---
Show 10 older checks
5 days agoPassed402158 ms$0.005
5 days agoPassed402138 ms$0.005
6 days agoPassed402917 ms$0.005
6 days agoPassed40237 ms$0.005
7 days agoPassed40254 ms$0.005
7 days agoPassed402103 ms$0.005
7 days agoPassed402592 ms$0.005
8 days agoPassed402124 ms$0.005
8 days agoPassed402535 ms$0.005
8 days agoPassed40281 ms$0.005