Updated

Technology · Code & frameworks

Google Font API

google.com

What is Google Font API?

The Google Font API is a service that delivers web fonts to a page through a stylesheet link in its HTML. You add the link, then refer to the font in your CSS.[1]

The Google Font API is a robust and user-friendly web service that provides access to an extensive library of open-source font files, revolutionizing typography on the web. It allows developers and designers to easily incorporate a wide variety of high-quality fonts into their web designs without worrying about licensing issues or font file hosting. The API dynamically serves font files optimized for different browsers and devices, ensuring fast loading times and cross-platform compatibility. It offers an intuitive interface for browsing and selecting fonts, with options to customize font weights and styles. The service also provides performance benefits through its global content delivery network, reducing latency and improving page load speeds. With regular updates and additions to its font library, Google Font API continues to be a go-to resource for web typography.

Google Font API belongs toFont scriptscategory.

How you add it

A stylesheet link in your HTML[1]

Styles and weights

Several families in one URL[1]

Loading control

The font-display parameter[1]

Programming

None needed[1]

611websites

use it — 24% of the 2,549 websites we scanned in the last 12 months

#1of 11

tools in its category seen in our scans (we recognize 20)

130public pages

on UptimeCard — open any of them to see how that site is doing

In short: a quick way to use hosted fonts without writing code. Request only the families, weights and characters you use to keep font loading light.[1]

14% of all websites we track run Google Font API

What is Google Font API used for?

In short, from the websites we scan

Using custom fonts on a page
Link the stylesheet, then name the font in a CSS rule.[1]
Controlling how fonts load
The font-display parameter sets loading behavior while the font downloads.[1]
Loading fewer characters
The text= parameter limits a request to the characters you need.[1]
What it does
Google Font API is one of the font scripts tools websites use. In our scans it is #1 of the 11 we see.
On real websites
Among 60 public websites we scan that use it: loading web fonts (59 sites), delivering fonts via CDN (8 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate.
Who uses it
Compared with all public websites we scan, it is more common in Software as a Service (SaaS) (10% of its sites, 6% overall).
Used together with
It is often installed next to Google Analytics, Google Tag Manager, PHP.

Should you use Google Font API?

The 10-second version, from the vendor’s own pages and what we see in our scans

Google Font API fits if…

  • You want a hosted font on your site without self-hosting font files[1]
Every extra family, style or weight in the URL adds font data a visitor must download[1]

Support and help for Google Font API

How the vendor says you can reach it, and the public help community

Stack Overflow

540 questions[4][5]

70% have an upvoted answer. [google-font-api] questions

How Google Font API sites protect themselves

Share of the 611 sites we scanned that run each protection

HSTS52% · 315 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

reCAPTCHA23% · 141 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Cloudflare Bot Management11% · 68 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

Protections add up, they do not replace each other: a site can run all of them.

What sites use Google Font API for

An estimate from UptimeCard's technology map of 117 public sites

Runs the whole site112 sites

abeta.co.uk · accredible.com · accurx.com

Runs the marketing site5 sites

acumatica.com · aplos.com · greenhouse.io

Rough guide, not a measurement: each description is written automatically from the site’s technology stack and the site has not confirmed it. A site is counted once, in the first group its description fits (shop, help and docs, blog, marketing site; otherwise the whole site). Descriptions that only guess (“likely”, “may”) are left out.

At a glance

UptimeCard's own scans and tests of 2,549 websites · refreshed weekly

How Google Font API sites scoreout of 100 · hover or tap a score for details

51PerformanceLowaverage site: 5190AccessibilityGoodaverage site: 9192Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about 18% slower than the average site

Google Font API sites
4.1 s
All sites
3.5 s

Most Google Font API sites load in 3.0–6.5 s. Home page weight: 3.7 MB vs 3.4 MB for all sites. 128 public sites measured.

Where are they hosted?

Mostly Cloudflare and Amazon Web Services

  • Cloudflare38%
  • Amazon Web Services27%
  • Fastly4%
  • Framer B.V3%
  • Other28%
United States 59%Canada 18%Netherlands 4%

Who uses it?

Software as a Service (SaaS) sites use Google Font API 1.7× more than average

Technology and Software57%
Business Services12%
Software as a Service (SaaS)1.7× avg10%
E-commerce5%

Share of 130 classified public sites. “× average” compares with all 961 public sites.

Browser-security check

29% of graded sites pass

12of 41 score B or better

Rates each site’s own security settings, not Google Font API. 41 public sites graded so far.

How Google Font API sites are built

Stacks we see most. Tools that tend to run together with Google Font API on the same websites. The percentage is the share of all 611 Google Font API sites that run the whole stack.

18 stacks · swipe, drag or use the arrows
#1

Google Font API + jsDelivr + Google Hosted Libraries + Webflow

4.9%30 of 611 sites
#2

Google Font API + Funding Choices + Google Sign-in

5.1%31 of 611 sites
#3

Google Font API + Yoast SEO + Contact Form 7

4.1%25 of 611 sites
#4

Google Font API + Yoast SEO + Elementor

3.8%23 of 611 sites
#5

Google Font API + Yoast SEO + Site Kit

3.6%22 of 611 sites
#6

Google Font API + Elementor + Site Kit

3.4%21 of 611 sites
#7

Google Font API + jsDelivr + jQuery CDN

3.1%19 of 611 sites
#8

Google Font API + jsDelivr + Unpkg

3.1%19 of 611 sites
#9

Google Font API + cdnjs + Yoast SEO

2.9%18 of 611 sites
#10

Google Font API + Elementor + Contact Form 7

2.9%18 of 611 sites
#11

Google Font API + Contact Form 7 + Site Kit

2.9%18 of 611 sites
#12

Google Font API + cdnjs + jQuery CDN

2.9%18 of 611 sites
#13

Google Font API + Google Hosted Libraries + Unpkg

2.9%18 of 611 sites
#14

Google Font API + cdnjs + GSAP

2.5%15 of 611 sites
#15

Google Font API + Elementor + RankMath SEO

2.5%15 of 611 sites
#16

Google Font API + jsDelivr + Funding Choices

2.3%14 of 611 sites
#17

Google Font API + Funding Choices + cdnjs

2.1%13 of 611 sites
#18

Google Font API + Funding Choices + Facebook Login

2.1%13 of 611 sites

Usually installed alongside

The bigger the bubble, the more of the 611 Google Font API sites also run the tool. Colour shows what the tool does. Hover or tap a bubble for details.

Google Analytics77%Facebook Pixel27%Linkedin Insight Tag19%Google Tag Manager73%Funding Choices20%OneTrust12%Yoast SEO15%HubSpot14%Microsoft Advertising13%Cart Functionality11%
AnalyticsTag managerCookie consentSearch visibilityMarketingAdvertisingOnline store

Similar tools in its category

Font scripts: 20 tools known, 11 seen in our scans

How websites combine Google Font API with other tools

Relationships found on the websites that use it, from the same map status pages show.

Complements another tool 38Integrates with another 15Overlaps with another 4Needs another tool 2Built on a platform 1

Websites using Google Font API

611 websites use Google Font API: 24% of the 2,549 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Questions about Google Font API

What is Google Font API?
The Google Font API is a service that delivers web fonts to a page through a stylesheet link in its HTML. You add the link, then refer to the font in your CSS.
What is Google Font API used for?
Link the stylesheet, then name the font in a CSS rule. The font-display parameter sets loading behavior while the font downloads. The text= parameter limits a request to the characters you need. Google Font API is one of the font scripts tools websites use. In our scans it is #1 of the 11 we see. Among 60 public websites we scan that use it: loading web fonts (59 sites), delivering fonts via CDN (8 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate. Compared with all public websites we scan, it is more common in Software as a Service (SaaS) (10% of its sites, 6% overall). It is often installed next to Google Analytics, Google Tag Manager, PHP.
Do I need to write code to use it?
No. Add a stylesheet link to your HTML, then refer to the font in a CSS style.[1]
How do I add a font to a page?
Add a stylesheet link to request the font, then refer to it in a CSS style.[2]
Where are the font files kept?
The google/fonts repository holds the font files available from Google Fonts and doubles as a public issue tracker.[3]
Do I need to host the font files?
No. You add a stylesheet link and reference the font in your CSS, and the files are served for you.[2]
How many websites use Google Font API?
We found Google Font API on 611 of the 2,549 websites we scanned in the last 12 months (24%). 130 of them have a public status page.
What are the alternatives to Google Font API?
Other font scripts tools we recognize include Font Awesome, Twitter Emoji (Twemoji), Typekit (Adobe Fonts), Adobe Fonts.

Is your website built with Google Font API?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card