Developer API

One API call to SEO-optimize
your AI-built site

Register your domain, get actionable optimizations in minutes, apply them programmatically. Built for Claude Code, Manus, Lovable, Bolt, and any AI agent that writes code.

1. Get API Key

Create an API key from your workspace. One key per project.

2. Register Site

POST your domain. Pipeline runs automatically — crawl, analyze, strategize.

3. Apply Fixes

Fetch optimizations, apply them in code, mark as done. Repeat weekly.

Integration Examples

For AI Coding Agents
Add this to your project instructions or system prompt. The AI agent handles the rest.
# For AI coding agents (Claude Code, Manus, Bolt, Lovable):
# Just add this to your project instructions or system prompt:

"""
This project uses Semantic.io for SEO optimization.
API Key: sk_live_YOUR_API_KEY
Base URL: https://semantic.io/api/v1

After deploying, register the site:
POST /sites { "domain": "yourdomain.com" }

Then periodically fetch and apply optimizations:
GET /sites/yourdomain.com/optimizations?status=pending

Each optimization has:
- type: title_tag | meta_description | schema_markup | internal_link | heading_structure
- targetUrl: the page to modify
- suggestedValue: the exact change to make
- reasoning: why this change improves SEO

After applying, confirm:
POST /optimizations/:id/apply
"""
JavaScript/TypeScript SDK
Install the SDK and integrate in 5 lines of code.
import { SemanticIO } from '@semantic-io/sdk';

const semantic = new SemanticIO({
  apiKey: 'sk_live_YOUR_API_KEY'
});

// Register your site (auto-triggers growth pipeline)
const site = await semantic.sites.register({
  domain: 'mysite.com'
});

// Poll for optimizations (ready in ~2 minutes)
const optimizations = await semantic.optimizations.list({
  domain: 'mysite.com',
  status: 'pending'
});

// Apply an optimization
for (const opt of optimizations) {
  // Your code applies the change...
  await semantic.optimizations.markApplied(opt.id);
}
Webhooks (Real-time Events)
Get notified when optimizations are ready or when ranking drops are detected.
// Register a webhook to get notified when optimizations are ready
const webhook = await semantic.webhooks.create({
  url: 'https://mysite.com/api/semantic-webhook',
  events: ['optimization.ready', 'alert.decline_detected']
});

// Verify webhook signatures in your handler:
import { verifyWebhookSignature } from '@semantic-io/sdk';

app.post('/api/semantic-webhook', (req, res) => {
  const isValid = verifyWebhookSignature(
    req.body,
    req.headers['x-semantic-signature'],
    webhook.secret
  );
  if (!isValid) return res.status(401).send('Invalid signature');
  
  const { event, payload } = req.body;
  // Handle: optimization.ready, pipeline.complete, alert.decline_detected
});
REST API (cURL)
Works with any language or HTTP client. No SDK required.
# Register a site
curl -X POST https://semantic.io/api/v1/sites \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "mysite.com"}'

# Get optimizations
curl https://semantic.io/api/v1/sites/mysite.com/optimizations \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"

# Mark optimization as applied
curl -X POST https://semantic.io/api/v1/optimizations/123/apply \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"

API Reference

POST
/api/v1/sites

Register a site and trigger growth pipeline

GET
/api/v1/sites/:domain/status

Get site pipeline status and optimization counts

GET
/api/v1/sites/:domain/optimizations

List pending optimizations for a site

POST
/api/v1/optimizations/:id/apply

Mark an optimization as applied

POST
/api/v1/optimizations/:id/dismiss

Dismiss an optimization

POST
/api/v1/webhooks

Register a webhook endpoint

GET
/api/v1/webhooks

List registered webhooks

DELETE
/api/v1/webhooks/:id

Remove a webhook

Optimization Types

title_tag

Title Tags

Optimized page titles for better CTR

meta_description

Meta Descriptions

Compelling descriptions for SERPs

schema_markup

Schema Markup

JSON-LD structured data for rich snippets

internal_link

Internal Links

Strategic cross-linking for authority flow

heading_structure

Heading Structure

H1-H6 hierarchy optimization

image_alt

Image Alt Text

Descriptive alt text for accessibility & SEO

content_brief

Content Briefs

New content opportunities with outlines

content_update

Content Updates

Refresh stale content for ranking recovery

Ready to integrate?

Create a free account to get your API key and start optimizing.

Get Started Free