Hi everyone, I was wondering if there is a way to get the data from the hosted feature layer (using attribute filter) through request URL module in ArcGIS API Javascript using either a request URL or something similar to this:

I'm basically trying to get the JSON format of the data and then convert it to CSV and allow users to download data when using the application.
@UndralBatsukh @JoelBennett @Sage_Wall @ReneRubalcava