# Country Facts

One economy's World Bank profile — names, capital, region grouping, income level, and lending type — by ISO2 or ISO3 code.

- Method: `GET`
- Path: `/v1/places/countries/{code}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `code` | path segment | required | ISO2 (`ID`) or ISO3 (`IDN`) country code; aggregates like `WLD` and `EUU` answer too. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/places/countries/%7Bcode%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "code": "IDN",
    "iso2": "ID",
    "name": "Indonesia",
    "capital": "Jakarta",
    "region": "East Asia & Pacific",
    "income_level": "Upper middle income",
    "lending_type": "IBRD",
    "longitude": 106.83,
    "latitude": -6.19752
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-21T04:05:00.000Z"
  }
}
```