Use the REST API to fetch the data that GitHub uses for visualizing different types of repository activity. About repository statistics You can use the REST API to fetch the data that GitHub uses for visualizing different types of repository activity. Best practices for caching Computing repository statistics is an expensive operation, so we try to return cached data whenever possible. If the data
![REST API endpoints for repository statistics - GitHub Docs](https://cdn-ak-scissors.b.st-hatena.com/image/square/c852e55126697503d2d6aa748d905fcfaf8eface/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fopen_graph%2Fgithub-logo.png)