To give you the most accurate development steps, could you tell me: Are you working with or GIS data ? Are you building a Python script or a Web UI ?
Click Export Data > Export to FGDB (File Geodatabase) or Shapefile. Download Dagi zip
If "Dagi" refers to a custom GIS/dataset, automated downloading can be achieved using Python and the zipfile module. This is commonly used in ArcGIS Online (AGOL) to download and extract data. To give you the most accurate development steps,
For custom web tools, you can register a custom data action in ArcGIS Experience Builder to handle the export/download. Download Dagi zip