Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello Everyone,
I need your help for one of my Power BI Task. I am getting data to my Power BI Report from Web API . In Desktop, Iam using Apikey as request header to get the data to Power BI , but when iam adding datasources to gateway with Web API i cant find out the option to provide API Key as Authentication . I can only see Anonymous, Windows, Basic, AAD . But i have only Url and Api key . can someone help me how to provide API key as authentication for Web API Data source in Power BI gateway.
TIA
@lbendlin , I cant see any option in Power BI service under gateway as Header section . could you help with screenshots
All you do in the gateway is specify the base URL of your on-prem web source. Choose anonymous login and skip the test. That's it. Everything else (including the header and the POST payload) are done in the actual request that the gateway receives from the service and hands over to the on-prem web source.
Use anonymous authentication (like you did on the desktop) and skip the connection check.
Same as you do in the desktop - in the header section of Web.Contents calls
@lbendlin I cant see any option in Power BI service under gateway as Header section . could you help with screenshots
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 10 | |
| 10 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 35 | |
| 28 | |
| 20 |