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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.