Trigger Deep Audit in PHP
Deep audits crawl up to hundreds of pages, building a complete site graph with PageRank scores, internal link heat maps, orphan page detection, and pSEO template analysis. Results include downloadable reports in JSON, Markdown, and HTML.
Endpoint
POST /api/v1/deep-audit
PHP Code
$ch = curl_init("https://seodiff.io/api/v1/deep-audit");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SEODIFF_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => '{"url":"https://example.com","max_pages":200,"depth":3}',
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo "Status: " . ($response["status"] ?? "unknown") . "\n";Example Response
{"id":"da_abc123","status":"crawling","status_url":"/api/v1/deep-audit/da_abc123","pages_crawled":0,"max_pages":200}All requests require an API key in the Authorization: Bearer header. Get your API key →
Same Endpoint, Other Languages
More PHP Examples
Evaluate pSEO Pages
Test programmatic pages against assertion rules. The core agentic evaluation endpoint.
Scan a Website
Enqueue a surface scan for diff detection and SEO regression identification.
Validate in CI/CD Pipeline
CI-friendly endpoint that blocks deployments when SEO regressions are detected.
Validate llms.txt File
Test your llms.txt file against the specification and get actionable fixes.
Google Search Console Data Sync
Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.