Google Fonts

API

Free, open-source font library, served as CSS or as font metadata JSON

Price
Free
Access
None for CSS API, API key for metadata

About

Google's library of free, open-source fonts. The CSS API at fonts.googleapis.com needs no key and returns @font-face rules for use in a page; the separate Developer API returns font family metadata as JSON and needs a Google API key.

What you can do with it

  • Embed a Google Font in a page with a linked stylesheet
  • List every available font family and its variants as JSON
  • Filter fonts by category, subset or variable-font axes

Get started

  1. Link the CSS API URL for a quick embed, no key needed
  2. For metadata, create a Google API key and call the Developer API

Example

curl "https://fonts.googleapis.com/css2?family=Roboto&display=swap"

Details

Hosting
Hosted service
Available in
Worldwide
MCP server
None

Tasks

Last checked on .