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.
HI,
I'm trying to use an API to pull data into Power BI. I tested the call in Postman and it works, but in Power BI I can't even authenticate it. I get "A web API key can only be specified when a web API key name is provided".
I do have a token with a key, secret, and authorization, but not of those codes work (I'm not too familiar with APIs). Can anyone assist with this error?
My process is:
Hi @StillLearning1 , how did you enter the token in the query?.
I leave you an example of how APIS queries are made with headers and body:
= let
url = "http://..........",
body = "{""date_from"": ""2020-07-05"",""date_to"": ""2025-12-31"",
""utility_ids"": [""61978731d6188e1511a401cd""]}",
Source = Json.Document(Web.Contents(url,[
Headers = [#"Content-Type"="application/json", Authorization ="Token ........................"],
Content = Text.ToBinary(body)
]
))
in
Source
And check in Power bi desktop, in options, the data source configuration (edit permissions), is correct:
Best regards
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 |
---|---|
57 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
66 | |
45 | |
44 | |
40 |