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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
sfernamer
Helper III
Helper III

Create a function to call an API

Hi everyone!

 

Last month, I created a connection to an API where there was a list (format = text) and the function modified the Relative Path to call the API with every single element of the list and worked perfectly.

 

Web2.pngWeb3.png

 

Now I'm trying to do the same for a different data source but with this new one, I need to add the authorization input. I tried to do it but I was not able to find the way to create the function bearing in mind the authorization. How could I do it to generate the function adding the authorization (it's always the same no matter the Game ID)?

 

Example of the API call for a simple game (it's what I want to create a function like the one above for this website, with the authorization input included in the call function):

 

Web1.png

 

Thank you so much for your time.

5 REPLIES 5
sfernamer
Helper III
Helper III

Hi @lbendlin 

 

If you agree, I can share you the info of the API though Direct Message and we see how to do it. It's from a public site so nothing impossible to share. Let me know here or on private.

 

Thank you so much for your time.

we can give that a try.

lbendlin
Super User
Super User

You likely will have to run a separate API call to collect the bearer token.

Hi @lbendlin 

 

Could you share an example about how to do it? So I guess I should do an API call for the authorizer, save the result into a variable and then, do the 2nd API Call, adding the variable to the call?

 

Thank you for your time.

That's correct.  As you can probably appreciate it is nearly impossible to help with API queries without access to said API  (which you may not be willing to provide for understandable reasons). You're on your own here.

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.