Skip to main content

Authorization

Follow this guide to create a new Google Fonts API credential that will allow Nexla to authenticate to and retrieve font catalog data from the Google Fonts Developer API.
google_webfonts_api_auth.png

Google Fonts API

Prerequisites

The Google Fonts Developer API uses API key authentication. You will need a Google Cloud project with the Google Fonts Developer API enabled and an API key generated for that project.

Create a Google Cloud Project and Enable the API

  1. Sign in to the Google Cloud Console using your Google account.

  2. Click Select a project in the top navigation bar, then click New Project.

  3. Enter a descriptive name for your project (for example, "Nexla Fonts Integration") and click Create.

  4. Once your project is created, navigate to APIs & Services > Library in the left sidebar.

  5. Search for Google Fonts Developer API in the API Library search box.

  6. Select Google Fonts Developer API from the search results and click Enable to activate the API for your project.

Generate an API Key

  1. After enabling the API, navigate to APIs & Services > Credentials in the left sidebar.

  2. Click Create Credentials and select API Key from the dropdown. Google Cloud generates a new API key immediately and displays it in a popup dialog.

  3. Copy the API key and store it securely — you will need it when configuring the credential in Nexla.

  4. Optionally, click Edit API key to apply restrictions to the key:

    • Under API restrictions, select Restrict key and choose Google Fonts Developer API from the list. This limits the key to only the Fonts API, reducing risk if the key is ever exposed.

    • Under Application restrictions, you may optionally restrict usage to specific IP addresses or HTTP referrers for additional security.

  5. Click Save to apply any restrictions.

Important

Store your API key securely and never share it publicly. If you believe your key has been compromised, regenerate it immediately from the Google Cloud Console under APIs & Services > Credentials.

The Google Fonts Developer API allows up to 10,000 requests per day per API key. For most font catalog and metadata use cases this limit is more than sufficient. Additional details are available in the Google Fonts Developer API documentation.

Create a Google Fonts API Credential

  • To create a new Google Fonts API credential, after selecting the data source type, click the Add Credential tile to open the Add New Credential overlay.

Credential Name & Description

  1. Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.

    Resource descriptions are recommended but are not required. They should be used to provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

API Key

  1. Enter the Google Fonts API key you generated in the Google Cloud Console in the API Key field. This key authenticates all requests Nexla makes to the Google Fonts Developer API and must correspond to a project that has the Google Fonts Developer API enabled.

    The API key is associated with your Google Cloud project. Ensure the key belongs to a project where the Google Fonts Developer API is enabled. For steps on generating or locating your key, see the Google Fonts Developer API documentation.

Save the Credential

  1. Once all of the relevant steps in the above sections have been completed, click the Save button at the bottom of the overlay to save the configured credential.

  2. The newly added credential will now appear in a tile on the Authenticate screen during data source creation and can be selected for use with a new data source.