HomeAPI Documentation
REST API v1

API Reference

Build integrations with OutrankYou. Analyze competitors, generate content, and manage your account programmatically.

http://localhost:4173/api/v1API key required (Pro & Agency)
Quick start

Create an API key in Settings > API, then make your first request:

bash
curl -H "Authorization: Bearer sk_live_your_key" \
  http://localhost:4173/api/v1/analyses

Authentication

Authenticate requests with an API key. Create keys in your Settings > API tab. API access requires a Pro or Agency plan.

Three ways to send your key:

bash
# Authorization header (recommended)
curl -H "Authorization: Bearer sk_live_..." http://localhost:4173/api/v1/analyses
bash
# X-API-Key header
curl -H "X-API-Key: sk_live_..." http://localhost:4173/api/v1/analyses
bash
# Query parameter (SSE endpoints only)
curl "http://localhost:4173/api/v1/analyses/:id/stream?api_key=sk_live_..."
API keys start with sk_live_ followed by 32 hex characters. The full key is only shown once at creation — store it securely.

Rate Limiting

All responses include standard rate limit headers:

ParameterType
RateLimit-Limitinteger
RateLimit-Remaininginteger
RateLimit-Resetinteger
PlanRate LimitPrice
StarterNo API access$49/mo
Pro60 req/min$99/mo
Agency120 req/min$199/mo

Errors

Errors return JSON with an error field:

Response
{ "error": "Authentication required" }
CodeMeaning
400Invalid request body or parameters
401Missing or invalid authentication
402Plan limit exceeded or insufficient credits
403Feature not available on your plan
404Resource not found
429Rate limit exceeded
500Internal server error
503Maintenance mode

Analyses

Analyze competitor websites. The API scrapes the site, runs AI content analysis, identifies gaps, and generates an action plan.

Content Generation

Generate AI-written articles from gap analysis findings. Uses a 5-pass pipeline: research, outline, draft, humanize, and fact-check.

Articles

Projects

Competitors

Voice Profiles

API Keys

Billing

User

Ready to build with OutrankYou?

Get your API key and start analyzing competitors programmatically in under a minute.

No credit card required