extract api_handler that returns a Results instance