PageSpeed Insights API Documentation

Service URL: https://pagespeed.330hosting.com

📚 Documentation

For comprehensive documentation with code examples, see the documentation files in the repository:

Note: Documentation files are available in the source repository.

🚀 Quick Start

Basic Usage:
GET /api?url=https://example.com

📖 API Endpoints

Single Page Scan

GET /api?url={URL}&strategy={mobile|desktop}&format={standard|ai}

Scan All Pages

GET /api?url={URL}&scan_all=true

AI Format (Best for Accessibility Fixes)

GET /api?url={URL}&format=ai

💡 Examples

# Basic scan
curl "https://pagespeed.330hosting.com/api?url=https://example.com"

# Desktop scan with AI format
curl "https://pagespeed.330hosting.com/api?url=https://example.com&strategy=desktop&format=ai"

# Scan all pages
curl "https://pagespeed.330hosting.com/api?url=https://example.com&scan_all=true"
  

🐍 Python Demo Script

A working demo script is available: demo_pagespeed_api.py

# Run the demo script
python demo_pagespeed_api.py

# Or scan a specific URL
python demo_pagespeed_api.py https://example.com
  
Note: For detailed documentation with code examples in Python, JavaScript, and PowerShell, see the AI Agent Documentation in the repository.

⚙️ Parameters