Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Getting data from REST API with api-key



I'm trying to do fairly easy task that looks like is working for everyone else except me. 

I want to get data from my supplier using REST API. In API instructions I have simple URL and my API key:


This link works fine and returns data in JSON format inserted straight to browser or making request via POSTMAN. However, when I try to get data in Power BI from WEB source I receive error "Details: "Access to the resource is forbidden."". 

Can it be that Power BI has restrictions extracting data from my datasource? Or should this task be done more subtle than just placing URL? 

No additional Authentication is mentioned in API instructions. 

Super User
Super User

In your Data Source Settings, make sure that your authentication type is Anonymous (since you are providing the key with each web call).




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.

@mahoneypa HoosierBI on YouTube

Done this for every suggested url root:

Also set Privacy level to public. Still same "Access to the resource is forbidden.".


Helpful resources

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!