Skip to content
Back to skills

Country Info

ASecurity

Get country data — population, languages, currencies, capital,

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
educationgobashapi

Works with

  • api

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill country-info --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Country Info?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Country Info
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-country-info/badge)](https://www.skillsdirectory.com/skills/modbender-country-info)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Country Info
description: Get country data — population, languages, currencies, capital,
  flag, and more using REST Countries API.
---

# Country Info

Get country data — population, languages, currencies, capital, flag, and more using REST Countries API.

**Category:** education
**API Key Required:** No

## When to use

- User asks about a country (population, capital, language, currency)
- User wants to compare countries
- User asks "what currency does X use?" or "what language do they speak in X?"

## How it works

Base URL: `https://restcountries.com/v3.1`

### 1. Search by name

```bash
curl -s "https://restcountries.com/v3.1/name/france"
```

### 2. Get by country code

```bash
curl -s "https://restcountries.com/v3.1/alpha/GB"
```

### 3. Filter specific fields (reduce response size)

```bash
curl -s "https://restcountries.com/v3.1/name/japan?fields=name,capital,population,currencies,languages,flags"
```

### 4. Search by currency

```bash
curl -s "https://restcountries.com/v3.1/currency/eur"
```

### 5. Search by language

```bash
curl -s "https://restcountries.com/v3.1/lang/spanish"
```

### 6. Get all countries in a region

```bash
curl -s "https://restcountries.com/v3.1/region/europe?fields=name,capital,population"
```

Regions: africa, americas, asia, europe, oceania.

## Examples

**User:** "Tell me about Japan"
→ Query by name. Reply with capital, population, languages, currency, region, flag emoji.

**User:** "What countries use the Euro?"
→ Query by currency/eur. List the countries.

## Constraints

- Free, no key needed, no strict rate limit
- Country names are flexible (partial matches work)
- Some fields are deeply nested — parse carefully

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…