# Riley Craig x402 Agent Store – Country Macro Indicators

> Riley Craig x402 Agent Store – Country Macro Indicators is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-15).

Returns key macroeconomic indicators (GDP, inflation, etc.) for a specified country by ISO country code, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/macro/country
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-country-macro-indicators-8bd5499f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VlvtWTuq53OrWzn_51RC-

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 riley-craig-x402-agent-store-country-macro-indicators-8bd5499f
```

Example prompt: Can you pull the latest macroeconomic indicators — GDP and inflation — for the United States (country code USA)?

## When to prefer this

Use this endpoint when you need quick, per-call macroeconomic fundamentals (GDP, inflation) for a specific country without API key setup, especially in agentic workflows that support x402 micropayments on Base. Prefer this over subscription APIs when usage is sporadic or when you need pay-as-you-go economics data in a crypto-native stack.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty indicators
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Missing required 'country' query parameter returns a 400-level error
- Country data not available or outdated for less-covered nations

## 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 and inflation percentage, each tagged with the most recent available year (e.g. {country: 'United States', indicators: {gdp_usd: {year: '2024', value: 28750956130731}, inflation_pct: {year: '2024', value: 2.9}}}).

## 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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "country": "United States",
  "indicators": {
   "gdp_usd": {
    "year": "2024",
    "value": 28750956130731
   },
   "inflation_pct": {
    "year": "2024",
    "value": 2.9
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-country-macro-indicators-8bd5499f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
