🔐 Authentication API
API Keys
All API requests require authentication using an API access token. Include your token in every request header:
Authorization: Bearer YOUR_ACCESS_TOKEN
Generates a short-lived API access token for secure authentication.
{
"access_token": "sm_live_xxxxxxxxx",
"expires_in": 3600
}
🔍 Audit API
Run and manage comprehensive AI website audits.
Returns a paginated list of all previous audits performed on your account.
Triggers a new, comprehensive AI website audit.
{
"url": "https://example.com"
}
{
"audit_id": "AUD12345",
"status": "queued"
}
Returns the complete results of a specific audit, including:
- Health Score
- Audit Summary
- AI Recommendations
- Scan Timestamp
📈 SEO API
Extract SEO insights, scores, and metadata analysis.
Returns detailed SEO data including SEO Score, Meta Tags, Title Analysis, Description Analysis, Heading Structure, Canonical Status, Indexability, and Structured Data Validation.
{
"seo_score": 91,
"missing_alt_tags": 2,
"canonical_valid": true,
"title_length": "optimal"
}
⚡ Performance API
Retrieve load times, Web Vitals, and speed scores.
Returns complete performance metrics including:
- Performance Score
- Largest Contentful Paint (LCP)
- First Contentful Paint (FCP)
- Cumulative Layout Shift (CLS)
- Time To Interactive (TTI)
- Core Web Vitals
🛡️ Security API
Check SSL, headers, and vulnerability issues.
Returns security evaluations including SSL Status, HTTPS Validation, Security Headers, Mixed Content Issues, and Vulnerability Findings.
{
"ssl_valid": true,
"security_score": 89
}
📡 Monitoring API
Manage continuous monitoring and uptime checks.
Retrieves a list of all active websites currently being monitored by SiteMonitor.
Configures a new website URL to be continuously checked for uptime and availability.
Returns a historical record of all downtime events and incidents detected across monitored sites.
📊 Reports API
Generate and download audit reports programmatically.
Returns a list of all historically generated PDF audit reports available for download.
Initiates a file download for a specific generated PDF report
Triggers the compilation and generation of a new PDF report based on the latest audit data.
📈 Analytics API
Retrieve aggregate platform statistics and trends.
Returns high-level statistics including:
- Total Audits
- Average Health Score
- SEO Trends
- Performance Trends
- Monitoring Statistics
⚠️ Error Codes
🔒 API Security Best Practices
All API requests must be made over HTTPS. Plain HTTP requests will be rejected.
Ensure that all requests include a valid API access token in the Authorization header.
Periodically rotate your API keys to minimize risk if a token is accidentally exposed.
Implement exponential backoff in your code to elegantly handle 429 Rate Limited responses.
Store API keys in environment variables or a secrets manager. Never expose credentials in client-side code or public repositories.
Need Help with the API?
Our developer support team is ready to help you integrate, debug, and get the most out of SiteMonitor's API.