Skip to documentation
AgentSEO / Docs
Browse documentation
View Markdown ↗

API reference / REST v1

Opportunities & signals

Find opportunities, prepare briefs, and inspect social demand signals.

All paths below are relative to https://www.agentseo.dev/api/v1. Send your key in x-api-key. Set AGENTSEO_API_KEY in your environment before running the examples. IDs and results are illustrative.

Async result handling · Errors and limits · OpenAPI contract

POST/opportunities/find

Find ranked-keyword opportunities for a domain or URL and return agent-ready priorities, evidence, recommended actions, next API calls, and a markdown summary. Base requests cost 3 credits; SERP competitor enrichment adds 2 credits; domain competitor discovery adds 2 credits.

Request fields · required fields are labeled
NameTypeDescription
targetRequiredstringDomain, subdomain, or URL to analyze (e.g. example.com or https://example.com/blog)
locationstringTarget location (default: United States)
location_codeintegerOptional search location code for deterministic geo-targeting
languagestringISO code (default: en)
keyword_limitintegerHow many ranked keywords to inspect (10-250, default: 100)
limitintegerHow many opportunities to return (1-25, default: 10)
seed_keywordsarrayOptional keywords for SERP competitor enrichment; if omitted, AgentSEO can auto-select ranked keywords
include_serp_competitorsbooleanAdd SERP competitor domains for the selected keyword set (+2 credits)
include_competitor_discoverybooleanAdd domain-level competitor gaps and overlap metrics (+2 credits)
POST /opportunities/find example
curl -X POST https://www.agentseo.dev/api/v1/opportunities/find?sync=true \
  -H "x-api-key: $AGENTSEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target":"example.com", "location":"United States", "keyword_limit":10, "limit":3, "include_serp_competitors":true, "include_competitor_discovery":true}'

POST/opportunities/brief

Turn one selected keyword/page opportunity into an implementation-ready brief with SERP intent, sections to add, questions to answer, schema recommendations, validation checklist, agent_workflow, and markdown_summary. Base requests cost 10 credits; competitor outline scraping adds 2 credits.

Request fields · required fields are labeled
NameTypeDescription
keywordRequiredstringKeyword to analyze and brief
targetstringTarget domain, brand, or site being optimized
page_urlstringExisting page URL to inspect for current headings
locationstringTarget location (default: United States)
location_codeintegerOptional search location code for deterministic geo-targeting
languagestringISO code (default: en)
opportunity_typestringOptional hint such as quick_win, content_refresh, ai_overview_opportunity, featured_snippet_opportunity, commercial_intent_opportunity, lost_keyword_recovery, or competitor_gap
current_rankintegerKnown current rank for priority shaping
include_competitor_outlinesbooleanScrape headings from top SERP competitors for outline context (+2 credits, default: true)
POST /opportunities/brief example
curl -X POST https://www.agentseo.dev/api/v1/opportunities/brief?sync=true \
  -H "x-api-key: $AGENTSEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"seo api", "target":"example.com", "page_url":"https://example.com/seo-api", "location":"United States", "opportunity_type":"commercial_intent_opportunity", "current_rank":8, "include_competitor_outlines":false}'

POST/social/listen

Find web discussion evidence for a topic and return insights plus agent_workflow. This is web-wide discovery for pain points and buying signals, not native platform monitoring.

Request fields · required fields are labeled
NameTypeDescription
queryRequiredstringTopic or keyword
platformenumreddit, twitter, all (default: all)
limitintegerMax results (1-50, default: 10)
POST /social/listen example
curl -X POST https://www.agentseo.dev/api/v1/social/listen?sync=true \
  -H "x-api-key: $AGENTSEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"agentic seo", "platform":"reddit"}'

← All endpoints