GnistAI GnistAI
Log in

Country Information

Detailed information on world countries — codes, capitals, population, currencies, languages, and more.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 type: open dataset type type open dataset open dataset lifecycle: maintained lifecycle lifecycle maintained maintained Reference

Data source: Embedded (ISO 3166)

REST Bridge Endpoint https://context.gnist.ai/rest/country-info/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (5)

get_country

Get detailed information about a country by ISO code (alpha-2 or alpha-3).

Args:
code: ISO 3166-1 alpha-2 (e.g. "NO") or alpha-3 (e.g. "NOR") country code.

Returns:
Dictionary with country details including capital, population, currencies, and more.

ParameterTypeRequiredDescription
codestringrequired
Request Body
{
  "code": "example"
}
search_countries

Search countries by name (case-insensitive partial match).

Args:
query: Search string to match against country names.
limit: Maximum number of results to return (default 10).

Returns:
Dictionary with count and list of matching countries.

ParameterTypeRequiredDescription
querystringrequired
limitintegeroptional (default: 10)
Request Body
{
  "query": "example"
}
list_countries_by_region

List all countries in a given region.

Args:
region: Region name — one of Africa, Americas, Asia, Europe, Oceania.

Returns:
Dictionary with region, count, and list of countries.

ParameterTypeRequiredDescription
regionstringrequired
Request Body
{
  "region": "example"
}
get_country_stats

Get summary statistics about countries in the database.

Returns:
Dictionary with total countries, UN members, landlocked count, breakdown by region, and total population.

Request Body
{
  "query": "example"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/country-info/get_country" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"code": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/country-info/get_country",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "code": "example"
},
)
print(resp.json())

Related Toolkits (Reference)

Resources