Previous months daily activity

Hi,
Can someone advise whether there’s a way of using the API to get the previous months activity broken down by each day of the month?
Thanks
Tom