AnsweredAssumed Answered

URL structure for Pageviews using start_time & end_time

Question asked by Jonathan Puno on Aug 7, 2019
Latest reply on Aug 8, 2019 by Jonathan Puno

Hi everyone,


I am trying to retrieve the pageviews for a student.  I can only retrieve 300 lines via the frontend and was advised that outside of that, I need to do API calls.  I consulted the PageViews API documentation here.  I am able to make a successful call using {{schoolURLbase}}/api/v1/users/{{userID}}/page_views and {{schoolURLbase}}/api/v1/users/{{userID}}/page_views?per_page=xxxxx.  With these calls, I am only to get a maximum of 10 lines and seemingly only from the previous day. 


I need help using the start_time and end_time parameters and possibly with paging as well.  Can someone help me what the structure of the URL should be to get lines/pageviews from a specific date range, please?


I know there are more than 10 pageviews because I can retrieve 300 lines from the Canvas front end.