# Penny Data Country Profile Lookup

> Penny Data Country Profile Lookup is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-23).

Returns a structured country profile including population, GDP per capita, region, capital, income group, and geographic coordinates for a given ISO country code.

## Facts

- Endpoint: GET https://pennydatahq.com/api/country/%7Bcode%7D?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-data-country-profile-lookup-905f0d2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OgIkuU1pz1V1SNQ4aphuv

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 penny-data-country-profile-lookup-905f0d2d
```

Example prompt: Can you pull up the country profile for Brazil — I need the population, GDP per capita, capital city coordinates, and income group classification?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call country profile with key economic and geographic metadata (population, GDP, capital, region, income group) without signing up for an API key. Ideal for AI agents that need occasional country enrichment rather than bulk country data subscriptions. Prefer over World Bank or IMF APIs when you need a no-auth, micropayment-based single-call solution.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty response
- Payment failure (insufficient USDC balance on Base) returns HTTP 402
- Malformed code (e.g. numeric instead of alpha) may return 400 or error
- Data may be missing or null for very small territories or disputed regions

## How this service works

Penny Data: pay-per-call data for AI agents. UK Company Lookup, UK Postcode Lookup, UK Company Filing History, LEI Lookup, GB Carbon Intensity, ECB Euro Reference Rate, UK Food Hygiene Ratings, US Company Filings by CIK, Country Profile, US Weather Alerts, UK Company Brief, Australian Company Lookup, EU Economic Indicators and Norwegian Company Lookup, as JSON, paid per call in USDC on Base with x402. No API key or account.

## Output

A JSON object containing the country's ISO2 and ISO3 codes, full name, World Bank region, capital city, population with year, income group, lending type classification, capital latitude and longitude, and GDP per capita in USD with year.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso2": "BR",
  "iso3": "BRA",
  "name": "Brazil",
  "region": "Latin America & Caribbean",
  "capital": "Brasilia",
  "population": {
   "year": 2025,
   "value": 212812405
  },
  "income_group": "Upper middle income",
  "lending_type": "IBRD",
  "capital_latitude": -15.7801,
  "capital_longitude": -47.9292,
  "gdp_per_capita_usd": {
   "year": 2025,
   "value": 10713.2856869511
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-data-country-profile-lookup-905f0d2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennydatahq.com](https://www.zero.xyz/host/pennydatahq.com/llms.txt)
