Google Fonts allows retrieving all of it’s fonts via their api. It’s in json format so once you decode it you can use it in your application.
The process is simple, you just need to access your applications page, create an application and get an API key
Then you can access this link
That is all