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
Anonymous
Not applicable

How to call API dynamically

Hello,

 

I would like to know if it is possible to dynamically pull data from a web API?

Because of the API structure I am not able to pull in the data I need in one call.

The API URL is structure like

https://url/Home/name?Key=xyz&requestid=

 

pls give solution if any. Thanks in advance

1 ACCEPTED SOLUTION
whereismydata
Resolver IV
Resolver IV

5 REPLIES 5
whereismydata
Resolver IV
Resolver IV

Hi,

 

since the post is not marked as solved yet, maybe this link will help you:
https://www.burningsuit.co.uk/blog/2021/09/i-have-the-powerquery-using-power-query-to-call-rest-apis... 

v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

I think referring to the steps in the video below can guide you how to dynamically obtain values through the API.

Call Power BI Rest API with Dynamic Access Token From Power BI Desktop |Power BI Rest API | Part Two - YouTube


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-henryk-mstf 

 

Previously I was able to call API into Power bi through web.

I cleared the permissions in datasource settings after that I am not able to call a Single row.

I am getting the following error.

Keerthi_505_0-1632728185011.png

 

I haven't given any credentials here but still it is showing couldn't authenticate credentials.

Pl help me how to resolve the issue. 

 

Regards,

Keerthi

Hi @Anonymous ,

 

I can’t view the content in the picture. Can you upload the high-definition big picture again?


Best Regards,
Henry

 

whereismydata
Resolver IV
Resolver IV

Hi @Anonymous 

 

maybe this will help you: https://community.powerbi.com/t5/Desktop/Dynamic-Nested-API-Calls/td-p/250267

or this: https://community.powerbi.com/t5/Community-Blog/Turning-quot-Web-by-Example-quot-into-Power-Query-Functions/ba-p/619941

 

Although it might be possible, I use a python script for my api handling

 

best

 

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.