How to get Country Area Code like CANADA(+1) in php by API

How to get Country Area Code like CANADA(+1) in php by API



International Dialing Codes . Here Get Country code  using Country Name .Country Region , Subregion , Currencies.

Languages,Timezones , Borders Country Codes and etc

for this api use Get above Details its free . Api web site is https://restcountries.eu

https://restcountries.eu/rest/v1/name/canada
$detailsId=json_decode(file_get_contents('https://restcountries.eu/rest/v1/name/canada'));

You can also get the currency and data you needed.