Hi @Anonymous ,
From your endpoint, It looks like you are using sites/{siteID}
twice.
As per the documentation, this is the request endpoint:
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/getActivitiesByInterval(startDateTime='2017-05-01',endDateTime='2017-05-20',interval='week')
Please check and validate the same.
Hope this helps. If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.