DEV Community

2x lazymac
2x lazymac

Posted on

Country Information API - REST + MCP, Free Tier

Country Information API

Lookup country data by name, ISO-2, or ISO-3 code. Returns capital, currency, language, population, timezone, calling code, flag emoji. 195 countries, fully offline.

Quick Start

# Health check
curl https://api.lazy-mac.com/country-info-api/health

# API info
curl https://api.lazy-mac.com/country-info-api
Enter fullscreen mode Exit fullscreen mode

Endpoints

  • {'path': '/lookup', 'method': 'GET', 'description': 'Lookup country by code or name'}
  • {'path': '/list', 'method': 'GET', 'description': 'List all countries with filters'}
  • {'path': '/search', 'method': 'GET', 'description': 'Search countries by partial name'}
  • {'path': '/health', 'method': 'GET', 'description': 'Health check'}

Pricing

Plan Price Features
Free $0/mo 100 req/day, core endpoints
Pro $Free / $5/mo Unlimited, all endpoints, MCP

MCP Integration

This API supports the Model Context Protocol (JSON-RPC 2.0):

curl -X POST https://api.lazy-mac.com/country-info-api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Enter fullscreen mode Exit fullscreen mode

Get Your API Key

Get started on Gumroad — free tier available.


Built by lazymac | All APIs

Top comments (0)