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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
trogne
Helper I
Helper I

Get data from API with token

 

I'd like to use a Springshare LibCal API as a data source.

And I want auto-refresh possible for the Power BI service.

 

I was able to use a Python script in Power BI desktop, and I can refresh from there.

But of course, auto-refresh won't work in the Power BI service since it does not have access to my local Python script.

 

So what can I do with the API, so that the auto-refresh works ?

 

The API first needs a valid token, the it uses that token for the API calls, with Authorization: Bearer {TOKEN}.

 

Is there any way I can set up API authentications and calls from the Power BI service ?

 

 

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You need to create a custom connector (and a gateway) to be able to refresh that source in the service.

View solution in original post

3 REPLIES 3
trogne
Helper I
Helper I

I created an API on Vercel that does the authentication and outputs the json.

I use my API link as the data source for Power BI.

 

Is that an overkill solution ?  Would a custom connector (and a gateway) be an easier and more effective solution ?

 

I think the final result will be the same. If your solution works then use it.

lbendlin
Super User
Super User

You need to create a custom connector (and a gateway) to be able to refresh that source in the service.

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.