API Dokümantasyonu
SEO API v1

SEO Analiz API

Programatik olarak SEO analizi yapın. Basit REST API ile web sitelerinizi analiz edin.

API Anahtarı Al

Ücretsiz API anahtarınızı oluşturun

Hızlı Analiz

Saniyeler içinde kapsamlı SEO analizi

Güvenli

API Key ve Secret Key ile güvenli erişim

Kolay Entegrasyon

REST API ile her platformda kullanılabilir

API Endpoint

POST/api/v1/analyze

Request Body

apiKeystring (required)API anahtarınız
secretKeystring (required)Gizli anahtarınız
urlstring (required)Analiz edilecek URL

Kod Örnekleri

JavaScript / Node.js
// JavaScript / Node.js Örneği
const response = await fetch('https://www.seotesti.com.tr/api/v1/analyze', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    apiKey: 'YOUR_API_KEY',
    secretKey: 'YOUR_SECRET_KEY',
    url: 'https://example.com'
  })
});

const result = await response.json();
console.log(result);
cURL
# cURL Örneği
curl -X POST https://www.seotesti.com.tr/api/v1/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "YOUR_API_KEY",
    "secretKey": "YOUR_SECRET_KEY",
    "url": "https://example.com"
  }'
Python
# Python Örneği
import requests

response = requests.post(
    'https://www.seotesti.com.tr/api/v1/analyze',
    json={
        'apiKey': 'YOUR_API_KEY',
        'secretKey': 'YOUR_SECRET_KEY',
        'url': 'https://example.com'
    }
)

result = response.json()
print(result)

Örnek Yanıt

Response (200 OK)
{
  "success": true,
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "url": "https://example.com",
    "analyzedAt": "2025-01-01T12:00:00.000Z",
    "score": 85,
    "categories": {
      "meta": { "score": 90, "items": [...] },
      "content": { "score": 85, "items": [...] },
      "technical": { "score": 80, "items": [...] },
      "performance": { "score": 75, "items": [...] },
      "mobile": { "score": 95, "items": [...] },
      "security": { "score": 100, "items": [...] }
    },
    "issues": {
      "critical": [...],
      "warnings": [...],
      "suggestions": [...]
    },
    "summary": {
      "totalIssues": 12,
      "criticalCount": 2,
      "warningsCount": 5,
      "suggestionsCount": 5
    }
  }
}