A solution could be to add a dataview which captures the users search criteria and calls the API using those search criteria. The returned list of object is displayed in the datagrid by using a *-* association from Dataview object to the returned list.
Simpel elaboration would be something like this:
Your best bet is probably this grid search AppStore widget: https://appstore.home.mendix.com/link/app/49364/. Try that first.
Alternatively, since your search would trigger a microflow every time, it is an option to create a separate search form with the four attributes you want to search on and a button 'Search’.
You might also want to have a look at https://appstore.home.mendix.com/link/app/32075/, Datagrid search filters. This might exactly be what you are looking for if you get it to function well.