Query Parameters

Discover how to apply and read query parameters.

We can also pass query parameters along with the request. This was how we passed information with the Pixabay API: https://pixabay.com/api/?key=${apiKey}&q=${searchTerm.value}&page=${currentPageNumber.value}

This string passed the API key, the search term, and the requested page number.

Passing query parameters

We pass query parameters into the URL string when requesting the data:

Get hands-on with 1400+ tech skills courses.