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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Pull Data from Rest API -Appointment Plus

Dear Power BI Community,

 

I am looking for help with pulling in data from a Rest API. The system is called Appointment-Plus. Here is the API documentation:  https://s24400.pcdn.co/wp-content/uploads/2019/04/TechnicalGuide.pdf

 

So in researching/watching videos I know I need to pull it from the web connector in Power BI. The https link I am using is "https://ws.appointment-plus.com/Appointments/GetAppointments" After that is what I am struggling with. Can anyone help with how to pull in their API? 

I am a little out of my depth and don't fully understand how API's work and haven't used one in BI before.

1 REPLY 1
Anonymous
Not applicable

Sorry for the late response, only seen it now. 
I don't have an api_key to test but this should get you close (paste it in Advanced Editor as a New Query)

 

let

   api_key= "your_api_key",

 

   fxGetAppointments = () =>
     let
         base_url = "https://ws.appointment-plus.com/Appointments/GetAppointments",
         accessToken = "Bearer " & api_key,
         options = [Headers = [Authorization = accessToken, response_type = "json"]],
         source = Web.Contents(base_url, options),
         jsonList = Json.Document(source)
    in
         jsonList

in
   fxGetAppointments

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.