Im making a wordpress theme with a feature to allow users to choose their own fonts from Google. Obviously because this is a wordpress theme there is no way to create a new API key for each installation.
All I need is the list of fonts in alphabetical order.
Bonus points if someone gives me a way to group them by category!
Check out the developer API. You can query it for a list of the fonts. I’m not sure it categorises them, but you do get a bunch of details.
Update:
You only need an API key beyond usage limits, so depending on how many calls you make, you could just parse this JSON.
Further update:
Seems that you do now need an API key to make calls to the Developer API.
I would build my list with minimum values I need and store it locally.
You can store it as json string on your page.
For example open in browser:
https://www.googleapis.com/webfonts/v1/webfonts?key=YOUR-API-KEY
Now you can store and use it without api calls: