SERPHub REST API
35+ endpoints. JSON responses. Sanctum token auth. Pull your SEO data into any tool, dashboard, or workflow.
Quick Start
Generate a Sanctum API token from your account settings, then include it as a Bearer token on every request.
- 1 Log in → Account Settings → Security → API Tokens → Generate token
-
2
Include the token as
Authorization: Bearer YOUR_TOKENon each request -
3
Base URL:
https://serphub.io/api/v1
curl https://serphub.io/api/v1/sites \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json"
{
"data": [
{
"id": 42,
"domain": "example.com",
"health_score": 91,
"last_audit_at": "2026-05-20T08:15:00Z"
}
]
}
API Reference
All endpoints return JSON. All write operations require a POST body as JSON with Content-Type: application/json.
Sites
/sites
/sites/{id}
/sites
/sites/{id}
Audits
/sites/{id}/audits
/sites/{id}/audits/latest
/sites/{id}/audits
/sites/{id}/issues
Keywords
/sites/{id}/keywords
/sites/{id}/keywords/top
/sites/{id}/cannibalization
/sites/{id}/search-intent
Backlinks
/sites/{id}/backlinks
/sites/{id}/backlinks/verify
/sites/{id}/backlinks/stats
AI Mentions
/sites/{id}/ai-mentions
/sites/{id}/ai-mentions/sov
/sites/{id}/ai-mentions/run
Competitors
/sites/{id}/competitors
/sites/{id}/competitors
/sites/{id}/competitors/{competitorId}
Authentication & Rate Limits
Bearer Token (Sanctum)
All API requests must include a valid Sanctum personal access token. Generate tokens in Account → Security → API Tokens. Tokens do not expire but can be revoked at any time.
Rate Limits
API access is available on the Agency and Enterprise plans.
| Plan | Requests/min | Requests/day |
|---|---|---|
| Agency | 120 | 50,000 |
| Enterprise | Custom | Custom |
Error Responses
The API uses standard HTTP status codes. Error responses include a JSON body with a message field. 401 = invalid token, 403 = forbidden, 422 = validation error, 429 = rate limit exceeded.
Error Example
HTTP/1.1 422
{
"message": "Validation error",
"errors": {
"domain": [
"The domain field is required."
]
}
}
Ready to integrate?
API access is available on the Agency and Enterprise plans. Sign up to get started.