---
title: "Content gap"
method: POST
path: "/content/gap"
---

# Content gap

`POST /content/gap`

## Request

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

## Query parameters

- `sync` boolean

## Headers

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

## Request body

- ContentGapParams
  - `url` string, uri, required
  - `keyword` string, required
  - `location` string
  - `location_code` integer: Optional search location code for deterministic geo-targeting.
  - `language` string
  - `scrape_depth` 'h1' | 'h2' | 'h3'

## Response `200`

Completed content gap workflow with agent_workflow

- ContentGapResponse
  - `keyword` string
  - `user_url` string, uri
  - `missing_topics` string[]
  - `missing_questions` string[]
  - `common_themes` string[]
  - `opportunity_score` integer
  - `content_brief` object
    - `primary_intent` 'informational' | 'commercial_investigation' | 'transactional' | 'local'
    - `recommended_page_type` 'guide' | 'comparison_page' | 'service_page' | 'local_landing_page'
    - `suggested_title` string
    - `suggested_h1` string
    - `must_cover` string[]
    - `questions_to_answer` string[]
    - `supporting_evidence` string[]
  - `competitor_outlines` object[]
    - `url` string, uri
    - `headers` string[]
  - `geo_target` GeoTarget
    - `input` string, nullable
    - `location_code` integer
    - `location_name` string, nullable
    - `country_iso_code` string, nullable
    - `source` 'resolved' | 'explicit_code'
  - `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)
