Rest Countries
demographics__rest-countriesRetrieve country demographic data including population, capital, languages, currencies, and flags. Search by name, ISO code, or region using REST Countries API with quality scoring and source verification.
Instructions
[Demographics & Population Agent] Look up country information including population, capital, region, languages, currencies, and flags. Search by name, alpha code, or region. Source: REST Countries (Mozilla Public License 2.0), updates annual. Returns the Katzilla envelope { data, quality, citation } — quality scores freshness/uptime/confidence; citation carries the source URL, license, and a SHA-256 data hash for audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | Search endpoint: name (by country name), alpha (by ISO code), region (by region) | name |
| value | No | Search value (e.g. country name, ISO 3166-1 alpha code, or region name) | United States |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured payload from the upstream source. | |
| text | No | Pre-rendered text representation, when applicable. | |
| quality | Yes | Quality scorecard: freshness, uptime, completeness, confidence, certainty. | |
| citation | Yes | Provenance block — source, license, retrieval timestamp, SHA-256 data hash, pre-formatted citation text. |