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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Friendly_user
Frequent Visitor

Getting data from REST API with api-key

Hi,

 

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: 

https://www.mysupplier.com/api/search/?apikey=MyApiKey&searchterm=MySearchTerm

 

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. 

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

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

 

Pat

 





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:
https://www.mysupplier.com/api/search

https://www.mysupplier.com/api/

https://www.mysupplier.com/

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

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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