Google Cloud

Google Cloud

Connect Search Console, Analytics, and Ads APIs

Medium15 min0% complete

What you need

  • A Google account
  • Websites you want to track (verified in Search Console)
  1. 1.Go to console.cloud.google.com
  2. 2.Click "Select a project" at the top
  3. 3.Click "New Project"
  4. 4.Name it "Bord" or anything you like
  5. 5.Click "Create"
Open Google Cloud Console
  1. 1.In the search bar, type "Search Console API"
  2. 2.Click on "Google Search Console API"
  3. 3.Click the blue "Enable" button
  4. 4.Wait for it to activate
Search Console API Page
  1. 1.Go to IAM & Admin → Service Accounts
  2. 2.Click "Create Service Account"
  3. 3.Name it "bord-service-account"
  4. 4.Click "Create and Continue"
  5. 5.Skip the optional steps, click "Done"
Service Accounts Page
  1. 1.Click on your new service account
  2. 2.Go to the "Keys" tab
  3. 3.Click "Add Key" → "Create new key"
  4. 4.Select "JSON" and click "Create"
  5. 5.A file will download - keep it safe!
⚠️Never share this file. It gives full access to your Google data.
  1. 1.Go to Google Search Console
  2. 2.Select a property (website)
  3. 3.Go to Settings → Users and permissions
  4. 4.Click "Add user"
  5. 5.Paste the service account email (ends in @...iam.gserviceaccount.com)
  6. 6.Set permission to "Full" and click "Add"
  7. 7.Repeat for each website you want to track
Open Search Console
💡The service account email is shown on the service account details page.
  1. 1.Rename the file to "gsc-service-account.json"
  2. 2.Move it to your bord/.secrets/ folder
  3. 3.If the .secrets folder doesn't exist, create it
mkdir -p ~/bord/.secrets
mv ~/Downloads/*.json ~/bord/.secrets/gsc-service-account.json
# Add to your .env.local file:
GSC_CREDENTIALS_PATH=./.secrets/gsc-service-account.json

Environment Variables

VariableDescriptionExample
GSC_CREDENTIALS_PATHPath to your service account JSON file./.secrets/gsc-service-account.json
GOOGLE_CLIENT_IDOAuth Client ID (optional, for user auth)123456789.apps.googleusercontent.com
GOOGLE_CLIENT_SECRETOAuth Client Secret (optional)GOCSPX-...

Test Your Integration

After completing setup, try this prompt in Claude Code:

"Show me my Search Console data for all my websites"