i trying figure out possibilities goolge fonts developer api , must admit find documentation bit thin.
i not refering google fonts api request fonts this:
https://fonts.googleapis.com/css?family=open+sans
but developer api request font info this:
https://www.googleapis.com/webfonts/v1/webfonts?key=api_key
given use valid api key in above request, large json object info google fonts. according documentation, can sort list using 5 different methods. using method of popularity, syntax follows:
https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity
it took me while figure out how combine sorting request api_key request, after consulting tutorial rest turns out can separate parameters ampersand. sorted list type request this:
https://www.googleapis.com/webfonts/v1/webfonts?key=api_key&sort=popularity
but can't can google foont developer api? if wanted data few fonts or list of monospace fonts. syntaxes such requests? thanks.
Comments
Post a Comment