🔍 Business Card System - API Diagnostic Tool

Test your Google Sheets API configuration and diagnose 403 errors

⚠️ Before running tests: Make sure you've followed the setup guide and configured your Google Cloud project with Google Sheets API enabled.

Step 1: Enter Your Configuration

From your sheet URL: docs.google.com/spreadsheets/d/[THIS_PART]/edit

From Google Cloud Console → APIs & Services → Credentials

The name of the tab in your spreadsheet (usually "Sheet1")

Pre-Flight Checklist

Quick Fixes for Common Issues

403 Forbidden Error:

  1. Check API key restrictions in Google Cloud Console
  2. Set "Application restrictions" to "None" (for testing)
  3. Make sure only "Google Sheets API" is checked under API restrictions
  4. Verify Google Sheet is public ("Anyone with link can view")
  5. Make sure sheet is published to web

404 Not Found Error:

  1. Double-check Sheet ID is correct
  2. Verify sheet name matches exactly (case-sensitive)

CORS Error:

  1. Use a local web server instead of opening file directly
  2. Deploy to actual hosting (GitHub Pages, Netlify, etc.)