If we make a request to https://reqres.in/api/users/2 (using the fetch function or the XMLHttpRequest object) and set response type to json, we will get a response.
But where in the webpage does that response come from?
It's coming from the server. Server listens to the https://reqres.in/api/users/2 endpoint and returns that response on every request