Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hello i want to connect to a appi by the way of the advance editor within the powerquery i used this code
now if i want to connect i get the datasource error : " web.contents with the option content only support anomeus " what do i need to change in my code so i can connect to the api the Api has a API TOKEN so i need to put a api key in the M-code
many thanks
Hi @Krijgerss - it is difficult to help. Have you tried testing this API call in Postman?
My gut instinct is that you need to include the API key in the Header. It is similar to the approach described here: Accessing REST APIs with Basic Auth and API Key in Power Query | John Dalesandro
Consider moving it from the Web.Content step to the options step, where you have added Content Type.
options =
[
#"Content-Type" = "abc",
"ApiKeyName" = "xyz"
]
If your API Key has been added into the Connection Credential. It will need to be deleted and replaced with "Anonymous" setting like this instead on being included in the "Web API" panel.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |