API Code Examples

Ready-to-paste code for every key SEODiff endpoint. Pick your language, copy the snippet, and start testing in seconds.

cURL

POST Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

POST Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

POST Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

POST Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

POST Validate llms.txt File

Test your llms.txt file against the specification and get actionable fixes.

POST Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

Python

POST Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

POST Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

POST Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

POST Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

POST Validate llms.txt File

Test your llms.txt file against the specification and get actionable fixes.

POST Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

Node.js

POST Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

POST Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

POST Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

POST Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

POST Validate llms.txt File

Test your llms.txt file against the specification and get actionable fixes.

POST Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

Go

POST Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

POST Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

POST Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

POST Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

POST Validate llms.txt File

Test your llms.txt file against the specification and get actionable fixes.

POST Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

PHP

POST Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

POST Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

POST Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

POST Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

POST Validate llms.txt File

Test your llms.txt file against the specification and get actionable fixes.

POST Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

Start testing in 30 seconds

Get an API key and run your first evaluation with a single cURL command.

Get API Key or Read full API docs