Google Fonts Integration

Obtaining an API Key for Google Fonts Developer API:

  1. Google Cloud Console:

  2. Go to the Google Cloud Console.

  3. If you haven’t already, sign in with your Google account.
  4. Create a new project or select an existing one.
  5. Enable the API:

  6. In the navigation menu, select "APIs & Services" > "Library".

  7. In the search bar, type "Google Fonts Developer API".
  8. Click on the Google Fonts Developer API from the search results.
  9. Click on the "Enable" button.
  10. Create Credentials:

  11. After enabling the API, you’ll be directed to the API page. If not, go back to the dashboard of your project.

  12. Click on "APIs & Services" > "Credentials".
  13. Click the "Create Credentials" dropdown button and select "API key".
  14. Your new API key will be displayed. Copy this key for your use.
  15. (Optional) Restrict the API Key:

  16. For added security, you might want to restrict the API key so that it can only be used by certain IPs, apps, or other specific conditions.

  17. On the "Credentials" page, click on the API key you've just created.
  18. Under "Key restriction", choose the option that suits your needs, and follow the on-screen instructions to set the restrictions.
  19. Usage:

  20. With the API key in hand, you can use it to make calls to the Google Fonts Developer API following the official documentation.

Visit the Environments page to learn how to save the key in your .env file so that Linkscraper starts using your key.