Developer Resources

API Documentation

Comprehensive API documentation for integrating LayerSEO's powerful SEO analysis capabilities into your applications.

Quick Start

Get Started in Minutes

Our RESTful API is simple, powerful, and well-documented. Start building integrations today.

Base URL
https://api.layerseo.com/v1

Authentication

Secure API access using API keys. Generate keys from your dashboard.

Authorization: Bearer YOUR_API_KEY

Rate Limits

Generous rate limits: 1000 requests per hour for Pro plans, unlimited for Enterprise.

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999

Endpoints

RESTful API with JSON responses. All endpoints use HTTPS.

GET /api/v1/analyze
POST /api/v1/reports

API Endpoints

Complete reference for all available API endpoints and methods.

POST/api/v1/analyze

Analyze a website URL and return comprehensive SEO insights.

Request
{
  "url": "https://example.com",
  "options": {
    "includeCompetitors": true,
    "deepAnalysis": true
  }
}
Response
{
  "status": "success",
  "data": {
    "reportId": "abc123",
    "url": "https://example.com",
    "scores": { ... },
    "recommendations": [ ... ]
  }
}
GET/api/v1/reports/{id}

Retrieve a previously generated SEO analysis report.

Response
{
  "status": "success",
  "data": {
    "id": "abc123",
    "url": "https://example.com",
    "createdAt": "2024-01-01T00:00:00Z",
    "scores": { ... },
    "recommendations": [ ... ]
  }
}
GET/api/v1/reports

List all reports for the authenticated user.

Response
{
  "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/sdk

Python

pip install layerseo

PHP

composer require layerseo/sdk

Ruby

gem install layerseo

Ready to Start Building?

Get your API key from the dashboard and start integrating LayerSEO today.