Does anyone know which of the APIs I could use to recreate the contributions graph or atleast get all of the data for it?
Thank you for being here and my sincere apologies for the delay in response. There is not an API specific to contributions.
If it helps to retrieve statistics for a user for specific repositories, you could also try the Repository Statistics API. This is the same data used to generate graphs such as those seen at https://github.com/git/git/graphs/contributors.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!