API Documentation
Programmatically run audits, retrieve scores, and integrate ScoreCraft data into your apps. API access is available on the Pro plan.
Authentication
All API requests require a Bearer token. Obtain your token by signing in via the ScoreCraft dashboard — the same Auth0 token used by the web app works for API calls.
Authorization: Bearer YOUR_ACCESS_TOKEN
Tokens expire after 1 hour. Use the Auth0 SDK's silent refresh to obtain new tokens automatically.
Base URL
https://scorecraft.ai/api
Endpoints
/api/start-audit.php
Start a new website audit. Returns the audit ID for polling.
Request Body
{
"primary_url": "https://example.com",
"competitor_url": "https://competitor.com", // optional
"force": false // true to bypass cache
}
Response
{
"audit_id": "a1b2c3d4e5f6...",
"status": "pending",
"cached": false
}
/api/audit-status.php?id={audit_id}
Check the status of a running audit. Poll until status is complete or failed.
Response
{
"status": "complete",
"growth_score": 72,
"sub_scores": {
"technical": 22,
"seo": 24,
"monetization": 18,
"clarity": 8
},
"primary_url": "https://example.com",
"completed_at": "2026-03-22T10:30:00Z"
}
/api/user-audits.php
Retrieve your audit history, profile data, and usage stats.
Response
{
"profile": {
"plan": "pro",
"audits_this_month": 5,
"audit_limit": null
},
"audits": [
{
"id": "a1b2c3...",
"primary_url": "https://example.com",
"growth_score": 72,
"status": "complete",
"created_at": "2026-03-22 10:00:00"
}
]
}
/api/me.php
Get your current profile, plan, and usage information.
/api/share-report.php
Generate or toggle a shareable public link for an audit report.
Request Body
{
"audit_id": "a1b2c3...",
"enabled": true
}
/api/monitors.php
List your active score monitors. Requires Starter or Pro plan.
/api/monitors.php
Create a new score monitor for a URL.
Request Body
{
"url": "https://example.com",
"frequency": "weekly",
"alert_email": "you@example.com",
"alert_threshold": 5
}
Rate Limits
| Plan | Audits/Month | Grid Scans/Month | API Access |
|---|---|---|---|
| Free | 1 | — | — |
| Starter ($19/mo) | 10 | 5 | — |
| Pro ($49/mo) | Unlimited | Unlimited | ✓ |
Status Codes
200 | Success |
400 | Bad request (invalid URL, missing params) |
401 | Authentication required (missing or invalid token) |
429 | Rate limit exceeded (audit limit for your plan) |
500 | Server error |
Need API access? Upgrade to Pro.
View Pricing →