Google Web Fonts Developer API . webfonts

Instance Methods

list(sort=None)

Retrieves the list of fonts currently served by the Google Web Fonts Developer API

Method Details

list(sort=None)
Retrieves the list of fonts currently served by the Google Web Fonts Developer API

Args:
  sort: string, Enables sorting of the list
    Allowed values
      alpha - Sort alphabetically
      date - Sort by date added
      popularity - Sort by popularity
      style - Sort by number of styles
      trending - Sort by trending

Returns:
  An object of the form:

    {
    "items": [ # The list of fonts currently served by the Google Fonts API.
      {
        "kind": "webfonts#webfont", # This kind represents a webfont object in the webfonts service.
        "variants": "", # The available variants for the font.
        "subsets": "", # The scripts supported by the font.
        "family": "", # The name of the font.
      },
    ],
    "kind": "webfonts#webfontList", # This kind represents a list of webfont objects in the webfonts service.
  }