Formicka / exchangerate.host

Exchange rates API is a simple and lightweight free service for current and historical foreign exchange rates & crypto exchange rates.
https://exchangerate.host
357 stars 33 forks source link

You cannot consume this service #239

Open BugMiner2 opened 9 months ago

BugMiner2 commented 9 months ago

Has anyone figured out how to work with the new API? I received a free key, I do 1v1 as per the instructions - it doesn’t work.

cmd = "curl --request GET 'https://api.apilayer.com/currency_data/convert?base=USD&symbols=EUR,GBP,JPY&amount=5&date=2018-01-01' \ --header 'apikey: KKKKEY'"

data = run(cmd, capture_output=True, shell=True) data.stdout

b'{"message":"You cannot consume this service"}'

ShubhamDalmia commented 9 months ago

{"success":false,"error":{"code":105,"type":"https_access_restricted","info":"Access Restricted - Your current Subscription Plan does not support HTTPS Encryption."}} I'm getting this error instead.

CasperRademaker-AbOvo commented 9 months ago

Try HTTP instead of HTTPS. The free service doesn't support HTTPS.

Powerstone-gh commented 8 months ago

Yes, the free service doesn't support HTTPS