# Country Macroeconomic Indicator Basket

> Country Macroeconomic Indicator Basket is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Returns a curated basket of 10 key macroeconomic and development indicators (GDP, inflation, unemployment, etc.) for a single country, with latest values, short history, and source citations.

## Facts

- Endpoint: GET https://api.agentstools.dev/macro/country?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-macroeconomic-indicator-basket-c1bb4ba8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hfEE4xEDUWWZnie5fKLSU

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 country-macroeconomic-indicator-basket-c1bb4ba8
```

Example prompt: Give me a full macroeconomic snapshot for Brazil — GDP, GDP per capita, growth, inflation, unemployment, population, government debt, current account, life expectancy, and CO2 per capita — with the last 5 years of history and source citations for each indicator.

## When to prefer this

Use this endpoint when you need a broad, multi-indicator economic overview of a single country in one call, rather than fetching individual indicators one at a time. It is ideal for country briefings, economic comparison dashboards, or agent workflows that need a cited snapshot across GDP, inflation, unemployment, debt, and social indicators simultaneously. Prefer the sibling single-indicator endpoint if you need deep time series for one specific metric, or the IMF WEO endpoint for forward-looking forecasts.

## Known failure modes

- Country not recognized — returns error if ISO-2, ISO-3, or name cannot be resolved
- Missing required 'country' query parameter — returns validation error
- Requested year range outside 1–65 bounds — schema validation failure
- Some indicators may have no data for very small or sanctioned countries
- Conflicting 'range' and 'years' parameters may produce unexpected results
- HTTP 402 if payment header is not included or payment fails

## How this service works

A curated headline basket of key macroeconomic and development indicators for one country: GDP, GDP per capita, growth, inflation, unemployment, population, government debt, current account, life expectancy and CO2 per capita. Latest value plus short history, each value cited to its source.

## Output

A structured object containing up to 10 macroeconomic/development indicators for the requested country, each with the latest available value, a short historical series (configurable up to 65 years), and a citation to the original data source (e.g. World Bank, IMF). Indicators include GDP, GDP per capita, real GDP growth, inflation, unemployment, population, government debt, current account balance, life expectancy, and CO2 emissions per capita.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "range": {
       "type": "integer",
       "maximum": 65,
       "minimum": 1,
       "description": "Most recent N years of history per indicator"
      },
      "years": {
       "type": "string",
       "description": "A single year or a Y1:Y2 range"
      },
      "country": {
       "type": "string",
       "description": "A single country as ISO-2, ISO-3 or name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-macroeconomic-indicator-basket-c1bb4ba8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
