Country Info API
Currency, calling code, languages, capital and flag for any country by ISO code or name.
/api/1/countryCurrent plan limits
Free includes Routing, Route Optimization, Geocoding (including reverse lookup and autocomplete) and Matrix APIs within plan limits. Map Matching, Isochrone, Truck Routing, Fuel Estimate and other separate APIs require a paid plan, including PAYG. API access follows the account’s effective plan; a positive balance alone does not override Free restrictions. Road Data and AI retain their separate Business requirements.
Replace YOUR_KEY with your own API key. Paid API requests consume credits; copying this example does not send a request.
Current plans and pricingOverview
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
/api/1/country| Parameter | Type | Status |
|---|---|---|
| code | string | Optional |
| name | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/country?code=AZ" -H "Authorization: Bearer YOUR_KEY"