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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 11 | |
| 10 | |
| 10 | |
| 10 |
| User | Count |
|---|---|
| 59 | |
| 41 | |
| 36 | |
| 25 | |
| 25 |