The Google Fonts API doesn't include license or copyright information which is frustrating if you want to programmatically include this information in your application.
This repo include a small script that scrapes the Google Fonts attribution page and loads it into a JSON object. The format closely resembles the official API.
bundle install
irb
require './google-fonts-attribution'
GoogleFontsAttribution.new.execute
{
"kind": "webfonts#webfontList",
"items": [
{
"family": "ABeeZee",
"license_name": "SIL Open Font License, 1.1",
"license_url": "http://scripts.sil.org/OFL",
"copyright": "Copyright (c) 2011 by Anja Meiners, with Reserved Font Name 'ABeeZee'"
},
{
"family": "Abel",
"license_name": "SIL Open Font License, 1.1",
"license_url": "http://scripts.sil.org/OFL",
"copyright": "Copyright (c) 2011, Matthew Desmond (http://www.madtype.com | [email protected]), with Reserved Font Name Abel."
},
{
"family": "Abhaya Libre",
"license_name": "SIL Open Font License, 1.1",
"license_url": "http://scripts.sil.org/OFL",
"copyright": "Copyright (c) 1996-2015 Pushpananda Ekanayake ([email protected]) Copyright (c) 2015 Sol Matas ([email protected]) Copyright (c) 2015 Mooniak ([email protected])"
}
]
}