Country Info API
GlobalCurrency, calling code, languages, capital and flag for any country by ISO code or name.
Overview
The Country Info API returns rich metadata for any country — currency (code, name, symbol), international calling code, official languages, capital, region, flag and population — looked up by ISO 3166 code or name. Backed by a global static dataset, available worldwide.
API reference
GET
/api/1/country| Parameter | Type | Status |
|---|---|---|
| code | string | Required |
| name | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/country?code=AZ&key=YOUR_KEY"
Other services
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringDirections APIAlternative Routes APISnap to Road APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APIGeometry Utilities APICoordinate Conversion API