1. The built-in traffic analytics (only for the last 2 weeks)
Get statistics on web traffic to your GitHub repositories.
GitHub Traffic API (only for the last 2 weeks)
- Traffic API is now official (2016-12-28): https://developer.github.com/changes/2016-12-28-end-traffic-api-preview/
- Track traffic to GitHub repo longer than 14 days: https://webapps.stackexchange.com/questions/60915
Can be done using the official github traffic json-api