Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |