The API get projects/:id/traffic/fetches allows user with write access to the repository to get the number of clones for the last 30 days.