You can get info about the last extraction for a given ScheduleId (i.e GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/Schedules('xxxxxxxx')/LastExtraction"
But how can you get the list of all extractions for that schedule? Or even better a list of the extractions for that schedule that happened between two dates?
I thought requests like:
could work, however neither these or similar ones I've tried work.
Do you know how to do it? Or where in the docs can I find how to do it? (I'm using Python requests library)
You can use GetByScheduleId to get all extractions that matchs the given schedule id. However, the results will include all status of extraction (Pending, Processing, Completed). If you want to get only completed extractions, you need to manually filter the status.
According to the ReportExtractions in API Reference Tree, the ReportExtractions and ExtractedFiles exist in the DataScope Select's databases for a limited time. Currently, that time window is 45 days. This means that API will return list of extractions for the last 45 days only.
Also, I have just realised that there are other methods such as GetCompletedByDateRangeByScheduleId and GetCompletedByScheduleId. You can use these methods if you want to retreive only completed extraction.