Mailgun event API call

Does anyone have experience with generating an API call for ‘events’ for mailgun? I need to extract the event data by date. I understand mailgun maintains 30 days of detailed data, 365 days of monthly summarized data. I want to pull the last 30 days. I was able to use api key and make a successful connection (code 200), but I’m struggling with identifying how to pull a larger date range. It seems that it is only pulling recent data and I think it’s pulling one row. I think I read I need to create a loop to extract more data? In any event, would love some direction on best practice to extract data from event API for mailgun. Thank you and happy holidays!