Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
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 ?
Solved! Go to Solution.
 
					
				
		
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
 
					
				
		
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
@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
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |