Objective: Substitute text within a URL using a dynamic variable.
Instructions:
Define the Base URL:
Create a variable named
base_urland assign it the valuehttps://api.example.com/users/%s/details.
Create a Dynamic User Name:
Create a second variable named
user_nameand assign it the valueCakeLover.
Combine the URL and User ID:
Create a variable named
final_urland use a filter to combinebase_urlanduser_nameso that the%sinbase_urlis replaced with the value ofuser_name.
Submit your result contained in the variable
final_url.
Expected Result:
Submit the variable final_url as your answer. See example below:
Install the snippet to get started: https://www.xano.com/snippet/XwN5GThx