Check out example codes for "rates api". It will help you in understanding the concepts better.

Code Example 1

GET https://api.ratesapi.io/api/latest{
  "base": "EUR",
  "date": "2020-09-11",
  "rates": {
    "GBP": 0.92408,
    "HKD": 9.1871,
    "IDR": 17772.61,
    "ILS": 4.1004,
    "DKK": 7.4402,
    "INR": 87.2431,
    "CHF": "..."
  }
}

Learn ReactJs, React Native from akashmittal.com