API for Developers & Agents

SEO API: Content Strategy & Audit Intelligence

An SEO API that doesn't just return data — it returns a strategy. One endpoint gives you a prioritized content map with keyword intelligence, competitor gaps, and AI visibility scores.

Why an SEO API?

Most SEO tools are built for humans clicking through dashboards. But the future of content is agentic — AI agents and automated workflows need programmatic access to SEO intelligence. They need an API that tells them what to do, not just raw keyword volumes.

AgenticPencil is the SEO API built for this future. Pass a domain, get back a full content strategy. No dashboard required.

What the API returns

A single call to POST /api/content-map returns:

  • Prioritized content opportunities — ranked by impact, with titles, target keywords, and recommended actions
  • AI citation gaps — where ChatGPT, Perplexity, and Gemini cite competitors but not you (see answer engine optimization)
  • Sitemap cannibalization report — pages competing against each other for the same queries
  • Competitor cross-analysis — content gaps across up to 10 competitors
  • AI visibility score — your domain's overall presence across major AI models

SEO data API endpoints

Content Map API

The core endpoint. Returns a prioritized list of content opportunities for any domain, combining keyword data, AI visibility intelligence, and competitor analysis into a single actionable plan.

SEO Audit API

Crawls your sitemap and detects cannibalization, thin content, keyword overlap, and internal competition. Returns specific recommendations: consolidate, redirect, or create new. See our content gap analysis page for more on the methodology.

AI Visibility API

Track how AI models surface your content across ChatGPT, Perplexity, Gemini, Google AI Mode, AI Overview, and Copilot. Real browser-based monitoring across 50+ geographies.

Built for agents and automation

AgenticPencil's API is designed for programmatic consumption. AI agents using Claude Code, MCP servers, or custom LLM workflows can call the API to get a content strategy before generating any content. The response is structured JSON — no parsing HTML or scraping dashboards.

The typical workflow: agent calls the content map API → gets back 50-100 prioritized articles → generates content for the highest-priority items → publishes via CMS integration → checks AI visibility scores over time.

Compare: SEO APIs

APIWhat it gives youWhat's missing
Ahrefs APIBacklink & keyword dataNo content strategy. No AI visibility.
Semrush APIKeyword & competitor dataNo prioritized content plan. No AI citations.
DataForSEORaw SERP & keyword dataData only — no intelligence layer.
AgenticPencilFull content map + AI visibility + auditStrategy, not just data.

Get started

150 free credits. No credit card required. Pass your domain and get your first content map in seconds.

Frequently asked questions

What is an SEO API?+

An SEO API is a programmatic interface that gives developers and AI agents access to SEO data and intelligence — keyword research, site audits, competitor analysis, ranking data, and content recommendations. Instead of using a dashboard, you integrate SEO data directly into your code, workflows, or AI agents.

How is AgenticPencil's SEO API different from Ahrefs or Semrush APIs?+

Ahrefs and Semrush APIs give you raw keyword and backlink data — you still have to figure out what to do with it. AgenticPencil's API returns a prioritized content map: what to write, why, and in what order. It combines keyword data with AI visibility intelligence and competitor analysis into actionable strategy, not just data.

Can AI agents use the SEO API directly?+

Yes — that's exactly what it's built for. AI agents like Claude Code, custom LLM workflows, or MCP-enabled tools can call the AgenticPencil API to get a content strategy before generating content. The response is structured JSON designed for machine consumption.

What data does the SEO API return?+

The API returns a full content map including: prioritized content opportunities ranked by impact, AI citation gaps across ChatGPT/Perplexity/Gemini, keyword data, competitor coverage analysis, sitemap cannibalization issues, and recommended actions (create new, consolidate, redirect).

What does the SEO audit API check?+

The audit API crawls your sitemap and analyzes your existing content for cannibalization (pages competing against each other), thin content, keyword overlap, internal competition, and AI visibility gaps. It returns specific recommendations: which URLs to consolidate, which to redirect, and which topics need new content.