-2

Here is the my code : enter image description here

Here is my result : enter image description here

What's the actual code for access API ?

imxitiz
  • 3,920
  • 3
  • 9
  • 33
Abir Ahsan
  • 2,649
  • 29
  • 51
  • Welcome to stackoverflow. Please take some minutes to read about how to ask questions. Don't include screenshots of text/code. Use the appropriate tags. – Eiko Jun 07 '20 at 17:23

1 Answers1

2

I went through the Fixer API and there was no reference that says your api key should be in the header.

Change your URL to this instead:

String url = "https://data.fixer.io/api?access_key=API_KEY"
JideGuru
  • 7,102
  • 6
  • 26
  • 48