The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello guys,
I have an API endpoint from a website and I was also sent an API access token.
I can't find the right way to make the connection with my Power BI Desktop.
How should I procceed?
Thanks in advance,
Anna
Hi @amerianou,
Did these suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements to find it more quickly.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
hi @amerianou,
You can use a web connector with the rest API URL and correspond tokens to get data.
Sample:
let
rooturl = "https://xxxxx.xxxx.com/",
token = "xxxxxxx",
relativeURL = "xxxxx/xxxxx",
Result =
Web.Contents(
rooturl,
[
Headers = [
#"Content-Type" = "application/json",
Authorization = "Bearer " + token,
RelativePath = "/api/xxxx/xxxxx"
],
RelativePath = relativeURL
]
)
in
Result
Regards,
Xiaoxin Sheng
@amerianou , refer if this can help
https://community.powerbi.com/t5/Power-Query/Pull-data-from-a-REST-API-Authentication/td-p/246006
https://docs.microsoft.com/en-us/power-query/handlingauthentication
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
124 | |
111 | |
78 | |
78 |