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

URL Parameters while using for API in Power BI

Hi Friends, I am trying to pull a data from web using API (Basic Authentication). URL is

https://qualysapi.qualys.eu/api/2.0/fo/asset/host/vm/detection/?action=list

 

I am able to fetch the data successfully without issues. But now i want to include parameters in this url to pull specific data example with Status = New and Closed. 

 

I tried like https://qualysapi.qualys.eu/api/2.0/fo/asset/host/vm/detection/?action=list&status=New,Closed which is suggested by the application but I am getting the below error. Am I passing the conditions correctly. Or should I pass the conditions differently in Power BI?

 

BI_Analyticz_0-1619161012931.png

 

 

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Anonymous have you tried looking into below links

 

https://msdynamicsworld.com/story/use-parameters-and-custom-functions-call-apis-power-bi

 

https://www.reddit.com/r/PowerBI/comments/9huan0/dynamic_api_parameters_in_power_bi/

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

3 REPLIES 3
negi007
Community Champion
Community Champion

@Anonymous have you tried looking into below links

 

https://msdynamicsworld.com/story/use-parameters-and-custom-functions-call-apis-power-bi

 

https://www.reddit.com/r/PowerBI/comments/9huan0/dynamic_api_parameters_in_power_bi/

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

@negi007 

 

Thanks for replying. I can use parameters but what is want to know is I am using &status=New,Closed in the URL while calling it from Power BI. is this correct ? or should I type it like &status={New,Closed} or something different ?

 

If I am specifying the conditions straight away in the URL. will it normally works in Power BI ?

https://qualysapi.qualys.eu/api/2.0/fo/asset/host/vm/detection/?action=list&status=New,Closed 

Anonymous
Not applicable

Hi @Anonymous ,

Please try to update the address link as below and check whether it can get work:

https://qualysapi.qualys.eu/api/2.0/fo/asset/host/vm/detection/?action=list&status in ('New', 'Closed') 

In addition, please review the content in the following link, hope it can help you.

THE HIDDEN GEMS OF THE FUNCTION WEB.CONTENTS()

Best Regards

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.