libraries/:library

This is documentation for Typekit’s original API. This API is still supported, but we encourage you to try the newer Typekit Platform API.

A font library

Request methods

GET
Returns a font library, including available font families

Parameters

Path parameters:

:library
The library ID

Query parameters:

page
Integer specifying page of families to request (see pagination)
per_page
Integer specifying the number of families to request per page (see pagination)

Examples

Getting info on a font library:

$ curl -s https://typekit.com/api/v1/json/libraries/trial?per_page=2 | jsonpretty
{
  "library": {
    "id": "trial",
    "link": "/api/v1/json/libraries/trial",
    "name": "Trial Library",
    "families": [
      {
        "id": "gmsj",
        "link": "/api/v1/json/families/gmsj",
        "name": "Adelle Web"
      },
      {
        "id": "ydjd",
        "link": "/api/v1/json/families/ydjd",
        "name": "Adrianna Extended Demibold"
      }
    ],
    "pagination": {
      "count": 153,
      "on": "families"
      "page": 1,
      "page_count": 77,
      "per_page": 2
    }
  }
}