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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Access Web content credentials fails while queries work in Power Query

Hey, for a report I use web.Contents to create tables from json/csv data from the web. These web.Contents calls are consuming an api that uses a Bearer token for authorization. These queries work within the Power Query editor and actually get the correct data, however not when trying to Apply.

 

When an Apply step is started, I get an "Access Web content" pop up which tries to verify that the data sources can be accessed, which fails because I can't use a Bearer token header in this popup.

 

an example of a query that works like this would be something like this:

 

 

 

 

= Json.Document(Web.Contents("https://<website.com/relevant/path>", [Headers=[Authorization=#"bearer-token"]]))

 

 

How can I get past the "Access Web content" popup?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , refer if this older solution can help

https://community.powerbi.com/t5/Desktop/Pull-data-from-RESTful-API-with-token-authentication/td-p/80531

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , refer if this older solution can help

https://community.powerbi.com/t5/Desktop/Pull-data-from-RESTful-API-with-token-authentication/td-p/80531

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.