You can create a PowerShell script which you schedule on your Windows server.
I started with a snippet created by the Chrome DevTools, you go to the network tab and find the API request and copy the network request as shown below.
0_1540419295859_9cd1ff81-04bc-4ac4-aab0-8fc3f95e7525-image.png
You just need to create an authentication token (on your users page) and add it as a header as shown below.
Invoke-WebRequest ` -Uri "http://yourmangohostname:8080/rest/v2/point-values/single-array/time-period" ` -Method "POST" ` -Headers @{"Accept"="text/csv"; "Authorization"="Bearer yourlongtokenthatyougenerated"} ` -ContentType "application/json;charset=UTF-8" ` -Body "{`"dateTimeFormat`":`"yyyy-MM-dd'T'HH:mm:ss.SSSXXX`",`"from`":`"2018-10-23T21:54:58.951Z`",`"to`":`"2018-10-24T21:54:58.952Z`",`"bookend`":true,`"timezone`":`"UTC`",`"fields`":[`"TIMESTAMP`",`"VALUE`"],`"xids`":[`"DP_9004cb57-f1cb-4415-a078-b60999f06c4d`",`"DP_cd2587fa-93ab-492a-9963-e9f5c4e0a40d`",`"DP_915fb444-6133-45eb-a700-4f415662e108`",`"DP_506cab2d-8f10-46ca-90aa-ff9d8f6c0400`"]}" ` -OutFile "myData.csv"You will just need to modify the script so that it gets data relative to the time it runs at and names the output file accordingly. And also obviously make it get the XIDs you are interested in.