Search World Bank indicators

$0.002 per callUSDC via x402GET /api/world-bank-search

Search the World Bank indicator catalog (1,400+ indicators across GDP, demographics, health, environment, education, etc.) by keyword. Send GET /api/world-bank-search with the required field q and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with query, count and indicators.

Returns indicator codes you can feed into /api/world-bank-indicator.

Category: Live public dataTags: world-bank indicators search macro economic-data catalog

Try in playground →

Parameters

NameTypeRequiredDescription
qstringyesSearch keyword Also accepted as query, search, term, keyword.
rowsnumbernoResults to return, 1-20 (default 5)

Example request

curl -i "https://agent402.tools/api/world-bank-search?q=inflation&rows=5"

Without payment this returns HTTP 402 Payment Required with the exact price for world-bank-search; any x402 v2 or MPP client pays it and retries.

Example response

{
  "query": "inflation",
  "count": 5,
  "indicators": [
    {
      "code": "FP.CPI.TOTL.ZG",
      "name": "Inflation, consumer prices (annual %)",
      "sourceNote": "Inflation as measured by the consumer price index…"
    }
  ]
}
FieldTypeAlways presentIn the example
querystringyesinflation
countnumberyes5
indicatorsarray of objectsyes1 item in the example

From an MCP client

catalog.call {
  "slug": "world-bank-search",
  "params": {
    "q": "inflation",
    "rows": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for world-bank-search; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y [email protected].

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.002" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/world-bank-search?q=inflation&rows=5");

Related tools

FRED catalog search

$0.005 · GET /api/fred-search

Full-text search across FRED's ~800,000 economic time series.

World Bank indicator series

$0.005 · GET /api/world-bank-indicator

Fetch a World Bank indicator time series for a country (e.g.

FRED economic release calendar

$0.005 · GET /api/fred-release-calendar

Upcoming and very-recent US economic data release dates - CPI, employment, GDP, FOMC minutes, Treasury auctions, etc.

FRED bulk release observations (v2)

$0.005 · GET /api/fred-release-observations

Bulk-fetch observations for every series in a FRED release in one call.

FRED time series

$0.005 · GET /api/fred-series

Fetch any of FRED's ~800,000 economic time series by series ID - GDP (GDPC1), CPI (CPIAUCSL), unemployment (UNRATE), fed.

FRED series metadata

$0.005 · GET /api/fred-series-info

Metadata for a FRED series: title, frequency, units, seasonal adjustment, observation date range, and popularity.