API Documentation
Comprehensive API documentation for integrating LayerSEO's powerful SEO analysis capabilities into your applications.
Get Started in Minutes
Our RESTful API is simple, powerful, and well-documented. Start building integrations today.
https://api.layerseo.com/v1Authentication
Secure API access using API keys. Generate keys from your dashboard.
Authorization: Bearer YOUR_API_KEYRate Limits
Generous rate limits: 1000 requests per hour for Pro plans, unlimited for Enterprise.
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999Endpoints
RESTful API with JSON responses. All endpoints use HTTPS.
GET /api/v1/analyze
POST /api/v1/reportsAPI Endpoints
Complete reference for all available API endpoints and methods.
/api/v1/analyzeAnalyze a website URL and return comprehensive SEO insights.
{
"url": "https://example.com",
"options": {
"includeCompetitors": true,
"deepAnalysis": true
}
}{
"status": "success",
"data": {
"reportId": "abc123",
"url": "https://example.com",
"scores": { ... },
"recommendations": [ ... ]
}
}/api/v1/reports/{id}Retrieve a previously generated SEO analysis report.
{
"status": "success",
"data": {
"id": "abc123",
"url": "https://example.com",
"createdAt": "2024-01-01T00:00:00Z",
"scores": { ... },
"recommendations": [ ... ]
}
}/api/v1/reportsList all reports for the authenticated user.
{
"status": "success",
"data": {
"reports": [ ... ],
"pagination": {
"page": 1,
"limit": 20,
"total": 100
}
}
}Official SDKs
Use our official SDKs to integrate LayerSEO into your favorite programming language.
Node.js
npm install @layerseo/sdkPython
pip install layerseoPHP
composer require layerseo/sdkRuby
gem install layerseoReady to Start Building?
Get your API key from the dashboard and start integrating LayerSEO today.