# lilambd Countries Data Endpoint

> lilambd Countries Data Endpoint is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Returns country data records, optionally filtered by ISO 3166-1 alpha-3 country code, for all countries or a specific one.

## Facts

- Endpoint: GET https://api.lilambd.com/power/countries?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-countries-data-endpoint-8f1dbc27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iEcGCFodgUh1SkqD8w3hn

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 lilambd-countries-data-endpoint-8f1dbc27
```

Example prompt: Can you fetch the country data for Germany — use its ISO alpha-3 code DEU — and show me what comes back including the attribution source?

## When to prefer this

Choose this endpoint when you need structured country-level reference data keyed by ISO 3166-1 alpha-3 codes, especially when you want data with a clear attribution/licence line. Suitable for enriching datasets with country metadata or building country pickers. Not suited for geospatial coordinates, weather, or real-time country statistics.

## Known failure modes

- Invalid or unrecognised ISO alpha-3 code returns empty data array with count 0
- Payment not included or insufficient results in HTTP 402 response
- Malformed query parameter may return an error or empty result
- Country code provided in wrong format (e.g. alpha-2 instead of alpha-3) may yield no results

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

Returns a JSON object with a `data` array containing country records, a `count` integer indicating the number of results, and an `attribution` string crediting the data source licence. When a specific alpha-3 code is supplied, only that country's records are returned; omitting the code returns all countries.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-3 (empty = all)"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-countries-data-endpoint-8f1dbc27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
