Use when an agent needs macroeconomic facts about a country

$0.003 per call20 free calls/day via MCP

Use when an agent needs macroeconomic facts about a country: GDP and GDP per capita, growth, inflation, unemployment, population, government debt, current account, exports and FDI, with latest values and a 10-year history, from the World Bank. Any country by ISO code. Under 3 s.

economygdpinflationunemploymentmacroworld-bankcountry-dataresearch

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool economy:

{
  "name": "economy",
  "arguments": {
    "country": "IE"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/economy \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"country":"IE"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.003 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO 2 or 3 letter code, e.g. FR or FRA"
    },
    "indicators": {
      "type": "string",
      "description": "Optional subset: gdp,gdpPerCapita,growth,inflation,unemployment,population,debt,currentAccount,exports,fdi"
    }
  },
  "required": [
    "country"
  ]
}

Example output

{
  "country": "Ireland",
  "indicators": {
    "gdpUsd": {
      "latest": 545000000000,
      "year": 2025
    },
    "inflationPct": {
      "latest": 2.1,
      "year": 2025
    },
    "unemploymentPct": {
      "latest": 4.3,
      "year": 2025
    }
  }
}

Related tools

Use when an agent needs to know how long a website has existed (Internet Archive history) ($0.002) · Use when an agent needs the latest news about a company, person, token, place or topic ($0.005) · Use when an agent needs a quick, reliable summary of a person, company, place or concept, or wants to know what the world is reading today ($0.001) · Use when an agent needs scientific or technical papers on a topic or by an author ($0.003) · Use when an agent tracks what developers and founders are discussing ($0.002)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402