Skip to main content

Best Practices

Date Range Request Blocks

When making requests for data with DateTo and DateFrom parameters, choose standard ranges to ensure data collection efficiency.

Key Endpoints to Consider

These endpoints especially benefit from this approach:

  • school.behaviourfordaterange
  • school.achievementfordaterange
  • school.timetable
  • school.timetableforstaff
  • school.timetableforstudent
  • school.timetablestructure

Additional Note: Timetable endpoints fetch 1 week behind and 2 weeks ahead without passing any dates, by default. Consider if you need to specify date parameters or if the default range is sufficient for your use cases.

For example, requesting behaviour in month blocks:

https://xporter.groupcall.com/api/v1/School/3281102/BehaviourForDateRange/?DateFrom=2022-09-01&DateTo=2022-09-30&page=1&pageSize=25&httpstatuscodes=true

Monthly Blocks:

BlockDateFromDateTo
Block 12022-09-012022-09-30
Block 22022-10-012022-10-31
Block 32022-11-012022-11-30

For some datasets, a month may be too large. Here, break into 2 week blocks:

2 Week Blocks:

BlockDateFromDateTo
Block 12022-09-012022-09-14
Block 22022-09-152022-09-30
Block 32022-10-012022-10-14
Block 42022-10-152022-10-31
Block 52022-11-012022-11-14
Block 62022-11-152022-11-30
Important

This approach will ensure all data is collected, and keep requests to the API and the school MIS to a minimum