---
title: "Competitor content gap matrix"
method: POST
path: "/content/competitor-gap-matrix"
---

# Competitor content gap matrix

`POST /content/competitor-gap-matrix`

## Request

- Base URL: `https://www.agentseo.dev/api/v1`
- URL: `https://www.agentseo.dev/api/v1/content/competitor-gap-matrix`
- Auth: API key in header `x-api-key`

Compare supplied own and competitor pages to find missing topics, weak coverage, format gaps, and buyer-stage gaps. Costs 3 credits and does not call a paid SERP provider.

## Query parameters

- `sync` boolean

## Headers

- `x-project-id` string
- `x-workflow-id` string

## Request body

- ContentCompetitorGapMatrixParams
  - `target` string: Optional target brand, domain, or product.
  - `focus_topics` string[]
  - `own_pages` CompetitorGapPage[]
    - `url` string, uri, required
    - `title` string, required
    - `description` string
    - `keywords` string[]
    - `ranking_queries` string[]
    - `page_type` 'unknown' | 'homepage' | 'blog_post' | 'landing_page' | 'product' | 'software' | 'local_business' | 'comparison_page' | 'guide' | 'docs' | 'template' | 'tool' | 'case_study'
    - `buyer_stage` 'awareness' | 'consideration' | 'decision' | 'implementation' | 'retention'
    - `estimated_traffic` number
    - `search_volume` number
    - `avg_position` number
    - `backlinks` number
  - `competitors` object[], required
    - `domain` string, required
    - `pages` CompetitorGapPage[], required
      - `url` string, uri, required
      - `title` string, required
      - `description` string
      - `keywords` string[]
      - `ranking_queries` string[]
      - `page_type` 'unknown' | 'homepage' | 'blog_post' | 'landing_page' | 'product' | 'software' | 'local_business' | 'comparison_page' | 'guide' | 'docs' | 'template' | 'tool' | 'case_study'
      - `buyer_stage` 'awareness' | 'consideration' | 'decision' | 'implementation' | 'retention'
      - `estimated_traffic` number
      - `search_volume` number
      - `avg_position` number
      - `backlinks` number
  - `max_opportunities` integer

## Response `200`

Completed competitor content gap matrix workflow with agent_workflow

- ContentCompetitorGapMatrixResponse
  - `target` string, nullable
  - `competitor_content_gap_matrix` object
  - `agent_workflow` AgentWorkflow
    - `summary` string
    - `decision` 'ready' | 'act_now' | 'monitor' | 'blocker'
    - `confidence` number
    - `recommended_actions` AgentWorkflowAction[]
      - `priority` 'critical' | 'high' | 'medium' | 'low'
      - `action` string
      - `why` string
    - `evidence` AgentWorkflowEvidence[]
      - `finding` string
      - `detail` string
      - `severity` 'critical' | 'high' | 'medium' | 'low'
    - `limitations` string[]
    - `next_calls` AgentWorkflowNextCall[]
      - `endpoint` string
      - `reason` string
  - `markdown_summary` string

## Other responses

- `202`: Job queued or still processing

---

[API](https://skmtc.dev/agentseo/apis/agentseo-api.md) · [All operations](https://skmtc.dev/agentseo/apis/agentseo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentseo/apis/agentseo-api/revisions/53a62da6f92c?raw)
