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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Puling the data from a REST API

Hi All,  am trying to create a report puling the data from a REST API. The API however is secured using oAuth2, so in order to pull the data, an API call must first be made to /login/token API (using basic authentication) and the token returned needs to be used to authenticate the actual API call pulling the data.  Is this possible with PowerBI

 

Can you please suggest on this ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

You can take a look following link to know how to use web connector to get data from the rest API with authentication:

Pull data from a REST API Authentication 

If these not help, please some more railte about the definition/documents of your rest api then we can write some sample code of them.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

You can take a look following link to know how to use web connector to get data from the rest API with authentication:

Pull data from a REST API Authentication 

If these not help, please some more railte about the definition/documents of your rest api then we can write some sample code of them.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , Check out this previous solution if this can help

https://community.powerbi.com/t5/Desktop/Connecting-REST-API-with-OAUTh-authentication/td-p/424738

 

Another example

https://community.powerbi.com/t5/Desktop/Power-Query-Open-ID-and-OAuth-2-0-Rest-API/td-p/693162

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.