How to Get a Google PageSpeed Insights API Key?

🛠️ Step-by-Step Setup

  1. Go to Google Cloud Console and ensure you are signed in.
  2. Create a Project: Click Select a project at the top left, choose New Project, name it, and hit Create.
  3. Enable the PageSpeed API:
    • Open the left menu sidebar and go to APIs & Services > Library.
    • Search for “PageSpeed Insights API”.
    • Click on it and press Enable.
  4. Copy the generated text string (it usually starts with AIzaSy)

You can paste the API in the JuiceBox Settings – Google PageSpeed Insights API Key

🔒 Recommended Security Best Practice

To prevent others from stealing your quota, restrict your key right after creating it:

  • Click Edit API Key (or the pencil icon next to your key).
  • Scroll down to API restrictions and check Restrict key.
  • Select PageSpeed Insights API from the dropdown menu and click Save.