Skip to main content
Country metadata API providing population, currencies, languages, timezones, borders, and flag data for every country. Best for workflows needing country-level reference data — internationalization, demographic comparisons, and enriching location data with country attributes. A simple, free alternative to World Bank indicators when you need country metadata rather than economic time series. 1 example endpoint available through Lava’s AI Gateway. See the REST Countries API docs for full documentation.
This provider is managed — no additional setup required.
This is a catch-all provider — any valid URL under https://restcountries.com/v3.1 is supported. Country data API. Construct URL as https://restcountries.com/v3.1/{endpoint}. Common endpoints: /all, /name/, /alpha/, /currency/, /lang/, /capital/, /region/. The endpoints below are curated examples.

Endpoints

Search country by name

GET https://restcountries.com/v3.1/name/japan — Free
const data = await lava.gateway('https://restcountries.com/v3.1/name/japan', { method: 'GET' });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests