← BACK TO HELP

How to register and set Up a google fonts API access key?

Google Fonts is an extensive library of free and open-source web fonts, offering a simple and effective way to enhance the visual appeal of your website or application. To access this library programmatically, you need a Google Fonts API access key. This blog post will guide you through the steps to register for and set up a Google Fonts API access key.

Step 1: Create a Google Cloud Account

To begin, you need a Google Cloud account. If you already have a Google account (for Gmail, Google Drive, etc.), you can use the same credentials to sign in. If not, create a new account at Google Cloud.

Step 2: Access Google Cloud Console

Once logged in, navigate to the Google Cloud Console. This is your dashboard for all Google Cloud services, including API management.

Step 3: Create a New Project

In the Google Cloud Console:

  1. Click on “Select a project” at the top of the page.
  2. In the popup, click on “NEW PROJECT”.
  3. Enter a project name and select a billing account if required.
  4. Click “Create”.

Step 4: Enable the Google Fonts API

After creating your project:

  1. Go to the “APIs & Services” dashboard.
  2. Click “+ ENABLE APIS AND SERVICES”.
  3. Search for “Google Fonts API”.
  4. Click on it and then click “ENABLE”.

Step 5: Create an API Key

Now, you need to create an API key for your project:

  1. In the “APIs & Services” dashboard, click on “Credentials”.
  2. Click on “+ CREATE CREDENTIALS” at the top of the page.
  3. Select “API key”. The API key will be created and displayed to you.
  4. (Optional) Click on the API key to set API restrictions for added security.