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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I'm trying to set up a connection to a Web REST API in Power BI Service. I've attempted to use the API key in the username field under Basic Authentication, but I keep getting an error that all fields need to be filled out. Has anyone encountered this issue before, or does anyone have suggestions on how to properly configure this? Any help would be appreciated.
Hi @sajohnson05,
Can you try the below API key approach from the Web.Contents documentation? The Power Query M code is:
Web.Contents("https://contoso.com/api/customers/get", [ApiKeyName="api_key"])
https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-3
@ExpiscornovusI'm able to get the API connection to work in the Desktop version of Power BI. However, when I try to update the data source credentials in the Power BI Service, I'm encountering issues. Any advice on how to resolve this?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 11 | |
| 10 | |
| 9 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 21 | |
| 21 | |
| 20 |