hiteshchoudhary / chai-aur-react

chai aur react series on youtube
5.98k stars 794 forks source link

🛠️ Currency API Problem Solutions 🛠️ #125

Open AliGates915 opened 1 month ago

AliGates915 commented 1 month ago
  1. Correct URL Format: Make sure you are using the correct URL format to access the API. The format should be:
    https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json

  2. Dynamic Currency Code: You can dynamically change the currency code to get rates for different currencies. For example: ${currency} instead of usd

  3. Fallback Mechanism: If the primary URL fails, use the fallback URL provided by the maintainer: https://github.com/fawazahmed0/exchange-api

✅ Now this API is working perfectly! You can change ${currency} instead of usd. 🌍💱

❓ Additional Troubleshooting Steps ❓

Originally posted by @AliGates915 in GitHub 💬