Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Amar-Agnihotri
Resolver I
Resolver I

How to use API using Free access key in power query

Hello guys, 

I found a code and pbix file here to create Historical currency exchange rates but when i tried to run that file it is showing error for API access key. I have access key but i have never used API in power query before so i am not able to undrstand where and how to put this key . I shall be thankful if anybody can help me regarding that. I am attaching the snapshots and the pbix file here.  A function is created to get historical ratyes using API and a Query has been used to create a table of dates 

 

 

Thanks in advance Error.pngFunction.png

1 ACCEPTED SOLUTION
Watsky
Solution Sage
Solution Sage

Hey @Amar-Agnihotri ,

 

I took a look at the instructions provided by exchangeratesapi as there are many ways an API call could work depending on how it is setup. To write out the key for this API you will need to put the key in right after your date so it will look like this:

 

 

http://api.exchangeratesapi.io/v1/2013-03-16?access_key=key goes here&symbols=USD,AUD,CAD,PLN,MXN&format=1

 

Watsky_2-1632257897537.png

 

Watsky_1-1632257792203.png

One thing to note is that the free key does not allow for you to set the base so you'll need to remove that from your code if you're using the free version.

 

Quickstart Guide | exchangeratesapi API


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up! ?
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

View solution in original post

1 REPLY 1
Watsky
Solution Sage
Solution Sage

Hey @Amar-Agnihotri ,

 

I took a look at the instructions provided by exchangeratesapi as there are many ways an API call could work depending on how it is setup. To write out the key for this API you will need to put the key in right after your date so it will look like this:

 

 

http://api.exchangeratesapi.io/v1/2013-03-16?access_key=key goes here&symbols=USD,AUD,CAD,PLN,MXN&format=1

 

Watsky_2-1632257897537.png

 

Watsky_1-1632257792203.png

One thing to note is that the free key does not allow for you to set the base so you'll need to remove that from your code if you're using the free version.

 

Quickstart Guide | exchangeratesapi API


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up! ?
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.