Buzz API

Results Limit/Offset

Follow
Answered
Ethan Ransdell

Is there a way to set a numbered offset of the results I want returned? For instance, if I pass 'limit=10' to listcourses, get results, and then create another request to get the NEXT 10 results?

Comments (3)

Sort by
Brad Marshall
  • Agilix team member

Hey Ethan, unfortunately, our list APIs (e.g., `listcourses`) does not currently support any pagination or offset.

0 Comment actions Permalink
Emanuel

Hello, my question is also related to this so rather than starting a new topic, I'll post it here.

Brad Marshall Since the API doesn't support pagination, if we set the limit to 0 (in order to get all records) the server crashes due to trying to fetch too many records. There doesn't seem to be a way to only get the records that were modified on a specific date, or after a date, so what would the solution be in this case? We are trying to get a list of records (courses, students etc) that were updated or added today, that way our external application would have up to date data.

0 Comment actions Permalink
Brad Marshall
  • Agilix team member

Hey Emanuel, by "crashes" do you mean the API returns a timeout? Or is your service crashing because its timeout threshold is too low or the data is too big to process?

You can filter courses and other entities by last modified date. For example, if you wanted to see all courses in domain 12345 that were modified after August 31, you could do:

listcourses&limit=500&domainid=12345&query=/modifieddate>2020-08-31

That said, I would recommend working closely with your LMS provider (the one that you acquired Buzz from) as they may have existing solutions for you or recommendations on how to best get the information you need.

0 Comment actions Permalink
Please sign in to leave a comment.