Skip to content
Fourohtwo

api.macaroonnetwork.com/execute/world-bank-wdi-indicator-search-v1

Search live macroeconomic indicators from the World Bank's World Development Indicators (WDI) database by country and indicator (e.g. GDP, population, inflation, unemployment). Restricted exclusively to WDI, source ID 2 -- the World Bank's own flagship, wholly-owned compiled dataset -- never any of the ~90 other databases the same World Bank API also serves, some of which carry third-party reuse t

BaseAnswering
POSThttps://api.macaroonnetwork.com/execute/world-bank-wdi-indicator-search-v1

Uptime100% 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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.macaroonnetwork.com/execute/world-bank-wdi-indicator-search-v1", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":{"country":"GBR","filters":{"indicator_code":"NY.GDP.MKTP.CD","year_from":2020,"year_to":2023},"indicator":"GDP"},"predicate":{"conditions":[{"field":"$.results","type":"count_gte","value":1}],"type":"all"}}),
});
console.log(await res.json());

Example input

{
  "input": {
    "country": "GBR",
    "filters": {
      "indicator_code": "NY.GDP.MKTP.CD",
      "year_from": 2020,
      "year_to": 2023
    },
    "indicator": "GDP"
  },
  "predicate": {
    "conditions": [
      {
        "field": "$.results",
        "type": "count_gte",
        "value": 1
      }
    ],
    "type": "all"
  }
}

More from Macaroon NetworkProvider status