Search Google Fonts
GET
/api/v1/fonts/google
const url = 'http://localhost:3000/api/v1/fonts/google?category=Sans%20Serif&limit=30';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/fonts/google?category=Sans%20Serif&limit=30' \ --header 'Authorization: Bearer <token>'The Google Fonts catalog, most popular first; names starting with q before names containing it.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”q
string
Part of the family name, any case
category
string
Only this category
limit
integer
Page size
Responses
Section titled “Responses”Matching families
Media typeapplication/json
object
data
required
Array<object>
object
family
required
string
category
required
string
styles
required
“400”, “700i”: weight, and i for italic
Array<string>
total
required
Matches before limit
integer
Examplegenerated
{ "data": [ { "family": "example", "category": "example", "styles": [ "example" ] } ], "total": 1}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}