# MacroLens Country Profile

> MacroLens Country Profile is a paid API for AI agents from macrolens.imac2014ville.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns a comprehensive economic and demographic profile for a given country, including GDP, inflation, unemployment, and 30+ World Bank macro indicators.

## Facts

- Endpoint: GET https://macrolens.imac2014ville.workers.dev/country-profile?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macrolens-country-profile-e194042f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FLO-ejvdlrW5MVUBvFfAb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability macrolens-country-profile-e194042f
```

Example prompt: Pull up the full country profile for Japan — I want to see GDP, inflation, unemployment, and whatever other macro indicators are available.

## When to prefer this

Choose this endpoint when you need a structured, multi-indicator economic snapshot for a specific country sourced from World Bank data. It is ideal for agents that need GDP, inflation, unemployment, and other standardized macro statistics in a single call without managing API keys — paying per call in USDC via x402. Prefer this over scraping or general web search when you need machine-readable, consistently formatted country-level economic data across 200+ countries.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty result
- Missing required 'country' query parameter causes a 400-level error
- Payment not received or insufficient USDC causes a 402 Payment Required response
- World Bank data may lag by 1-2 years for some indicators, returning older year values
- Aggregate codes like WLD or EUU may not support all individual indicator fields

## How this service works

Global macro statistics (GDP, inflation, unemployment, debt and 30+ indicators for 200+ countries), country profiles and rankings, and official company registry lookups (Norway, France) for AI agents. No API key: pay USDC on Base per call via x402.

## Output

A JSON object containing the country's ISO2/ISO3 codes, full name, World Bank region, income level classification, and a dictionary of macro indicators (e.g. GDP in USD, inflation %, unemployment %) each with the most recent year and units available.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "ISO2 or ISO3 country code, e.g. US, DE, JPN (aggregates WLD, EUU also work)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "source": "World Bank Open Data (CC BY 4.0)",
  "country": {
   "iso2": "JP",
   "iso3": "JPN",
   "name": "Japan",
   "region": "East Asia & Pacific",
   "incomeLevel": "High income"
  },
  "indicators": {
   "gdp": {
    "year": 2024,
    "units": "USD",
    "value": 4026211000000
   },
   "inflation": {
    "year": 2024,
    "units": "%",
    "value": 2.7
   },
   "unemployment": {
    "year": 2024,
    "units": "%",
    "value": 2.5
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macrolens-country-profile-e194042f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from macrolens.imac2014ville.workers.dev](https://www.zero.xyz/host/macrolens.imac2014ville.workers.dev/llms.txt)
