fawazahmed0 / exchange-api

Free Currency Exchange Rates API with 200+ Currencies & No Rate Limits
https://github.com/fawazahmed0/exchange-api#readme
Creative Commons Zero v1.0 Universal
720 stars 46 forks source link

is there a quick way to get the date of the latest currencies? #55

Closed suhaib47 closed 8 months ago

suhaib47 commented 2 years ago

as it's possible that the latest data available is of "yesterday's" date

fawazahmed0 commented 1 year ago

could you please explain a bit more.

You can get today's data using: https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/{todaysDate}/currencies.json but sometimes the link may fail if todays data is not available, you need to have proper error handling

LuisPaGarcia commented 1 year ago

I choose to use the latest folder to get the most recent conversion. Is being updated everyday.

Like if you visit or fetch https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies.min.json you'll get the latest data available 👍🏻

fawazahmed0 commented 9 months ago

currency-api has stopped working, Please read the migration guide