add filter to API call