LoCulator is a free and open API that allows anyone to check the number of lines of code their git-based project has. Works for any public git repo on GitHub, BitBucket, and GitLab. (See documentation on private repos and special VCS providers.)
Try it out
GET
https://loculator.singularity.net.za/api/loc/
Result