API Get Call from Element Code Action Code Block

Hi,

How can you reference an API get call within an element code action block of code. The API has been initialized in API calls using HTTP basic auth. Now trying to understand how I can create the syntax for the user to update the parameter of the get call?

Does this look about right?

API Get Call
https://api.mywebsite.com/search?variable1=[variable1]&variable2=[variable2]&variable3=[variable3]&variable4=[variable4]

API Get Call in Bubble Code
https://api.mywebsite.com/search?variable1=properities.variable1&variable2=properities.variable2&variable3=properities.variable3&variable4=properities.variable4

Thanks