Integrations
Google Sheets Integration
Use Google Apps Script to run AEO scores directly from a spreadsheet. Ideal for content teams who manage page audits in Sheets and want AEO scores added automatically alongside their existing data.
API access required
The Google Sheets integration uses the AEO Tool REST API. API access is available on Enterprise plans. You'll need an API key from Settings → API Keys.
Spreadsheet setup
Set up your spreadsheet with the following columns:
| Column | Content | Notes |
|---|---|---|
| A | URL | Full page URL or leave blank for keyword-only analysis |
| B | Keyword | Target query. Recommended for best recommendations |
| C | Overall Score | Written by script |
| D–J | 7 dimension scores | Written by script (AEO Readiness through CRO) |
| K | Status | Running... / Done / Error — written by script |
Row 1 is used for headers — the script writes the header labels in columns C–K automatically. Your data starts from row 2.
Installing the Apps Script
- Open your Google Sheet.
- Click Extensions → Apps Script.
- Delete any existing code in the editor.
- Paste the script below into the editor.
- Replace YOUR_API_BASE with your AEO Tool API base URL (see API Reference for your endpoint).
- Click Save (Ctrl+S / Cmd+S).
- Reload your spreadsheet. You'll see an 'AEO Tool' menu appear in the toolbar.
- Click AEO Tool → Configure API Key and enter your API key.
- Click AEO Tool → Run AEO Scores to start the analysis.
Rate limits
The script includes a 2-second sleep between requests (Utilities.sleep(2000)) to respect the API rate limit. Do not reduce this value. Enterprise plans support up to 30 requests per minute. For very large sheets (500+ rows), consider running the script in batches.
Troubleshooting
Status shows 'Error: 401'
Your API key is incorrect or expired. Generate a new key at Settings → API Keys.
Status shows 'Error: 429'
You've hit the rate limit. The 2-second sleep should prevent this, but if you have a very fast network the requests may cluster. Increase Utilities.sleep to 3000.
'AEO Tool' menu doesn't appear
Reload the spreadsheet. If the menu still doesn't appear, check the Apps Script editor for syntax errors.
Score columns are empty but status shows 'Done'
The API returned a response but scores are missing. Check the raw response by logging: Logger.log(response.getContentText()) in the catch block.