# Macro Country Economic Indicators API

> Macro Country Economic Indicators API is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns key macroeconomic indicators (GDP, inflation, etc.) for a given country by ISO country code

## Facts

- Endpoint: GET https://store.agentexchange.work/macro/country
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macro-country-economic-indicators-api-30acf23b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BO6DHYGHXxt6Xs583PmXi

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 macro-country-economic-indicators-api-30acf23b
```

Example prompt: What are the latest macroeconomic indicators for the United States — specifically GDP and inflation — using the ISO code USA?

## When to prefer this

Use this endpoint when an agent needs quick, machine-payable access to macroeconomic indicators (GDP, inflation) for a specific country without API key signup. Ideal for AI agents needing lightweight macro data per country on demand, especially in x402-enabled payment flows on Base.

## Known failure modes

- Invalid or unrecognized country code returns an error
- Missing required 'country' query parameter causes a 400-level error
- Payment of $0.005 USDC not provided causes 402 Payment Required response
- Country code provided in wrong format (e.g. full name instead of ISO code) may return no results

## How this service works

Live macro/economic indicators for ANY of 200+ countries in one call: GDP, GDP growth %, inflation (CPI %), unemployment %, GDP per capita, and population — most-recent values with year. For AI macro, finance, research and trading agents. Official public-domain data from the World Bank (every country, not just the majors). Pass an ISO code (USA, DEU, JPN, CHN, GBR, IND, BRA).

## Output

A JSON object containing the country name and a set of macroeconomic indicators including GDP in USD (with year) and inflation percentage (with year), e.g. {"country": "United States", "indicators": {"gdp_usd": {"year": "2024", "value": 28750956130731}, "inflation_pct": {"year": "2024", "value": 2.9}}}

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "country": "USA"
  }
 },
 "output": {
  "type": "object"
 }
}
```

## 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. USA, DE, JPN, CN, GBR, IND, BRA"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "country": {
       "type": "string"
      },
      "indicators": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macro-country-economic-indicators-api-30acf23b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
