Filtered request to API when the user changes the filters

Document this function