# lilambd Conflict Data by Country

> lilambd Conflict Data by Country 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 paginated historical conflict event records for a given country, identified by ISO2 country code, with optional year-range filtering.

## Facts

- Endpoint: GET https://api.lilambd.com/conflict/countries/%7Biso2%7D?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-conflict-data-by-country-17378a9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n9NBYx03QzS1LtkOvOceh

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-conflict-data-by-country-17378a9e
```

Example prompt: Pull up the conflict event records for Ukraine (ISO2 code UA) from 2014 to 2022, and give me up to 100 rows starting from the beginning.

## When to prefer this

Choose this endpoint when you need structured, paginated historical conflict event data scoped to a specific country and optionally filtered by year range. It is well-suited for research, journalism, policy analysis, or data enrichment workflows that require conflict history keyed to ISO2 country codes. Prefer this over general news APIs when you need structured historical records rather than live news headlines.

## Known failure modes

- Invalid or unrecognized ISO2 country code returns empty data array or 404
- Date range parameters in wrong format may return error or empty results
- Limit values outside 1-200 range may be rejected or clamped
- Offset beyond total record count returns empty data array
- Missing required iso2 path parameter causes 400 or routing error
- Payment not provided or insufficient triggers 402 Payment Required

## 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 of conflict event records, a 'count' integer indicating total matching rows, and an 'attribution' string crediting the data source/license. Results are paginated via limit and offset parameters.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "iso2"
     ],
     "properties": {
      "iso2": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "to": {
       "type": "string",
       "description": "Last year"
      },
      "from": {
       "type": "string",
       "description": "First year"
      },
      "limit": {
       "type": "string",
       "description": "Max rows (1-200, default 50)"
      },
      "offset": {
       "type": "string",
       "description": "Rows to skip"
      }
     },
     "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-conflict-data-by-country-17378a9e/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)
