# BRAINIAC Macro Intelligence Country Risk Profile

> BRAINIAC Macro Intelligence Country Risk Profile is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Generates a structured country risk profile by analyzing supplied macroeconomic indicators, debt instruments, interest rates, inflation data, and geopolitical events using public sources and caller-provided data.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/macro-intelligence/country-risk-profile?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-macro-intelligence-country-risk-profile-6a19d80c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PkYsdF1C7eSJH51jD9rPT

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 brainiac-macro-intelligence-country-risk-profile-6a19d80c -d '<json body>'
```

Example prompt: Can you generate a country risk profile for Brazil as of Q3 2024, using these debt holdings, a policy rate of 10.5%, and inflation at 4.6%?

## When to prefer this

Choose this endpoint when you need a structured, evidence-based country risk profile grounded entirely in caller-supplied macroeconomic data and free public sources, without relying on paid financial data subscriptions. It is ideal for compliance workflows, portfolio risk reviews, or due diligence pipelines where auditability and explicit data sourcing matter. Prefer it over general LLM risk commentary when you need a machine-readable risk score with clear limitations and no invented data.

## Known failure modes

- Missing required country data results in incomplete profile with null indicator fields
- Exceeding maxItems limits on debt, rates, or events arrays causes validation errors
- Malformed base64 file input returns a parsing error
- Supplying conflicting or ambiguous country identifiers may result in misattributed signals
- Caller-supplied data gaps are noted in limitations rather than fabricated — output may be sparse

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON array of country risk items, each containing a risk level label (e.g. 'contained', 'elevated'), a numeric risk score, debt amount, policy rate, latest inflation, and signal count. Also includes overall profiling status, a checked-at timestamp, a findings array, a list of limitations (e.g. no causation claimed, no paid provider used), and flags indicating whether paid providers or API keys were used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "debt": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000000000,
      "minimum": 0
     },
     "coupon": {
      "type": "number",
      "maximum": 100,
      "minimum": 0
     },
     "source": {
      "type": "string",
      "maxLength": 160
     },
     "country": {
      "type": "string",
      "maxLength": 80
     },
     "currency": {
      "type": "string",
      "maxLength": 12
     },
     "instrument": {
      "type": "string",
      "maxLength": 160
     },
     "maturityDate": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "rates": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "asOf": {
      "type": "string",
      "maxLength": 40
     },
     "bank": {
      "type": "string",
      "maxLength": 160
     },
     "rate": {
      "type": "number",
      "maximum": 100,
      "minimum": -100
     },
     "source": {
      "type": "string",
      "maxLength": 160
     },
     "country": {
      "type": "string",
      "maxLength": 80
     },
     "previousRate": {
      "type": "number",
      "maximum": 100,
      "minimum": -100
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "date": {
      "type": "string",
      "maxLength": 40
     },
     "kind": {
      "type": "strin
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "country": "US",
    "riskLevel": "contained",
    "riskScore": 1,
    "debtAmount": 500000000000,
    "policyRate": 5.25,
    "signalCount": 3,
    "apiKeyRequired": false,
    "ratingAssigned": false,
    "inflationLatest": 3.1,
    "paidProviderUsed": false,
    "debtAmountSupplied": true,
    "policyRateSupplied": true,
    "inflationLatestSupplied": true
   }
  ],
  "status": "profiled",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Observations, rates, yields, releases, debt, commodities, and events are copied only from labeled fields supplied by the caller, or from key-free public World Bank responses when requested.",
   "No paid financial data provider is used and no API key is required.",
   "Missing consensus, previous values, FX rates, and debt amounts are not invented.",
   "Country risk labels summarize supplied indicators only and are not a credit rating.",
   "Event impact timelines link supplied events to nearby observation dates; causation is not claimed."
  ],
  "publicSources": [],
  "apiKeyRequired": false,
  "ratingAssigned": false,
  "causationClaimed": false,
  "paidProviderUsed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-macro-intelligence-country-risk-profile-6a19d80c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
