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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Markzolotoy
Impactful Individual
Impactful Individual

Data from Web - running multiple API call in the same query

My APIs require a token to access to. I have two other APIs that generate tokens. I would like to call token APIs before calling the actual data access API. But looks like the query only returns the result of the first call. If I use a similar technique in PowerBI Desktop than it works fine, but not in Excel. Any idea?

 

Thanks

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Markzolotoy 

 

You can try converting the query which gets the token into a custom function, then call this function to get tokens in other queries for calling the actual data. 

 

Reference:

Web.contents unbale to authenticate with anonymous authentication - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it. Highly appreciate your Kudos!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors