Hi @mountain, thanks for the question!
I think what you are looking for is either the
dataInputPeriods fields of the
dataSet, is that correct? It’s these two fields in the Maintenance app.
If so, those are stored as fields on the
dataSet object, which you can access by adding a
fields parameter to the
dataSets.json API call:
Instead of using multiple network requests and filters, it is more efficient to use the field expansion capabilities of the DHIS2 api within a single request.
This will select the dataSet ID, period type, dataInputPeriods, and the name and id of each affiliated dataElement within a single API call:
You can do the same with the
dataSets.json collection endpoint as well, so that you can retrieve this for multiple dataSets, if you want: