Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
MFester
Frequent Visitor

Get data using Rest API (post)

Hello

 

I have this url

https://api.statbank.dk/v1/data

 

and I want to use this request for getting data for PowerBI.

{
"table": "ls01",
"format": "CSV",
"valuePresentation": "Value",
"timeOrder": "Ascending",
"delimiter": "Semicolon",
"variables": [
{
"code": "BRANCHE",
"values": [
"*"
]
},
{
"code": "ENHED",
"values": [
"*"
]
},
{
"code": "Tid",
"values": [
"2010",
"2018"
]
}
]
}

 

I have never used API's for getting data into PowerBI, hence a step-by-step guide would be very much appreciated!

Thank you 🙂

1 REPLY 1
Jayendran
Solution Sage
Solution Sage

Hi @MFester ,

 

Basically you can use Web.Contents to call the API like below

 

let
Source = Json.Document(Web.Contents("https://api.statbank.dk/v1/data"))
in
Source

 

Please refer the below link

https://community.powerbi.com/t5/Developer/Connecting-to-web-api/td-p/775075

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.