Hoppscotch allows you to pass variables in the query to fetch data dynamically. To demonstrate the use of variables, let’s write a query to get countries by theirDocumentation Index
Fetch the complete documentation index at: https://docs.hoppscotch.io/llms.txt
Use this file to discover all available pages before exploring further.
name and continent. For example, we will fetch the details of “Bahrain” from the “Asia” continent.
Variables
Go to the variables section and define the variable.Using the variable in the query
Now create a querygetCountries with variables as shown below: