Glyphcall
Everyday data3 free calls over HTTPFrom $0.01 per call · failed calls are never charged

Economic indicators by country: GDP, inflation, unemployment and population

$0.01 per call · failed calls are never charged · no account needed: a card key or USDC

Macro economic data for any country in one call: GDP, consumer-price inflation, unemployment and population from a committed World Bank Open Data snapshot, with up to 10 years of history. Country by ISO code or English name. Use for country briefs, market sizing and economic indicators.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

ISO 3166 code (SE, SWE) or English country name (Sweden)

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
country (required)stringISO 3166 code (SE, SWE) or English country name (Sweden)
yearsintegerYears of history to return, 1-10 (default 5)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/macro/data?country=SE"

Node.js

const r = await fetch("https://glyphtools.com/macro/data?country=SE", {
  headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header

Python

import requests

r = requests.get("https://glyphtools.com/macro/data?country=SE", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()

Or one of your 3 free calls, no key — the same request with &trial=1 on the end:

curl "https://glyphtools.com/macro/data?country=SE&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "country": {
    "code": "SWE",
    "name": "Sweden",
    "iso2": "SE",
    "region": "Europe & Central Asia",
    "incomeLevel": "High income",
    "capital": "Stockholm"
  },
  "gdp": {
    "indicator": "GDP (current US$)",
    "latest": {
      "year": 2025,
      "value": 668998664082.08
    },
    "values": [
      {
        "year": 2025,
        "value": 668998664082.08
      }
    ]
  },
  "inflation": {
    "indicator": "Inflation, consumer prices (annual %)",
    "latest": {
      "year": 2025,
      "value": 0.68
    },
    "values": [
      {
        "year": 2025,
        "value": 0.68
      }
    ]
  },
  "unemployment": {
    "indicator": "Unemployment, total (% of total labor force) (modeled ILO estimate)",
    "latest": {
      "year": 2025,
      "value": 8.69
    },
    "values": [
      {
        "year": 2025,
        "value": 8.69
      }
    ]
  },
  "population": {
    "indicator": "Population, total",
    "latest": {
      "year": 2025,
      "value": 10596620
    },
    "values": [
      {
        "year": 2025,
        "value": 10596620
      }
    ]
  },
  "source": "World Bank Open Data (CC BY 4.0), snapshot 2026-11-10"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is macro_data, and the first 10 successful calls are free:

https://glyphtools.com/mcp

Related tools