agentseo-dev Opportunities API

The Opportunities API from agentseo-dev — 2 operation(s) for opportunities.

Operations 2

POST /opportunities/find Find SEO opportunities #
POST /opportunities/brief Opportunity implementation brief #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/agentseo-dev:agentseo-dev-opportunities-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

agentseo-dev-opportunities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AgentSEO Opportunities API
  version: 0.1.0
  description: API for agent-ready SEO data extraction, analysis, and async job processing.
servers:
- url: https://www.agentseo.dev/api/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Local
security:
- ApiKeyAuth: []
tags:
- name: Opportunities
paths:
  /opportunities/find:
    post:
      summary: Find SEO opportunities
      description: Find prioritized keyword and page opportunities for a domain or URL. Costs 3 credits base, plus 2 credits for SERP competitor enrichment and 2 credits for domain competitor discovery.
      parameters:
      - $ref: '#/components/parameters/SyncParam'
      - $ref: '#/components/parameters/ProjectIdHeader'
      - $ref: '#/components/parameters/WorkflowIdHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpportunitiesFindParams'
      responses:
        '200':
          description: Completed opportunity finder workflow with priorities and agent_workflow
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpportunitiesFindResponse'
        '202':
          description: Job queued or still processing
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/QueuedJobResponse'
                - $ref: '#/components/schemas/SyncPendingResponse'
                - $ref: '#/components/schemas/JobStatusEnvelope'
      tags:
      - Opportunities
      operationId: postOpportunitiesFind
      x-operation-id-source: derived
  /opportunities/brief:
    post:
      summary: Opportunity implementation brief
      description: Turn one selected keyword or page opportunity into an implementation-ready brief. Costs 10 credits base, or 12 credits with competitor outlines.
      parameters:
      - $ref: '#/components/parameters/SyncParam'
      - $ref: '#/components/parameters/ProjectIdHeader'
      - $ref: '#/components/parameters/WorkflowIdHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpportunityBriefParams'
      responses:
        '200':
          description: Completed opportunity brief with implementation guidance and agent_workflow
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpportunityBriefResponse'
        '202':
          description: Job queued or still processing
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/QueuedJobResponse'
                - $ref: '#/components/schemas/SyncPendingResponse'
                - $ref: '#/components/schemas/JobStatusEnvelope'
      tags:
      - Opportunities
      operationId: postOpportunitiesBrief
      x-operation-id-source: derived
components:
  schemas:
    JobStatusEnvelope:
      type: object
      properties:
        jobId:
          type: string
        status:
          type: string
          enum:
          - queued
          - processing
          - retrying
          - completed
          - failed
        phase:
          type: string
          enum:
          - queued
          - submitting_analysis
          - waiting_analysis
          - transforming
          - finalizing
        progress:
          type: object
          properties:
            percent:
              type: number
            indeterminate:
              type: boolean
            eta_seconds:
              type: integer
              nullable: true
        attempt:
          type: integer
        max_attempts:
          type: integer
        message:
          type: string
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
        result:
          nullable: true
        error:
          type: object
          nullable: true
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
        context:
          allOf:
          - $ref: '#/components/schemas/JobContext'
          nullable: true
        poll_url:
          type: string
        events_url:
          type: string
        retry_after_seconds:
          type: integer
    AgentWorkflowAction:
      type: object
      properties:
        priority:
          type: string
          enum:
          - critical
          - high
          - medium
          - low
        action:
          type: string
        why:
          type: string
    QueuedJobResponse:
      type: object
      properties:
        jobId:
          type: string
        status:
          type: string
          enum:
          - queued
          - processing
          - retrying
          - completed
          - failed
        message:
          type: string
        poll_url:
          type: string
        events_url:
          type: string
        retry_after_seconds:
          type: integer
    SeoOpportunity:
      type: object
      properties:
        keyword:
          type: string
        type:
          type: string
          enum:
          - quick_win
          - content_refresh
          - ai_overview_opportunity
          - featured_snippet_opportunity
          - commercial_intent_opportunity
          - lost_keyword_recovery
          - competitor_gap
        priority:
          type: string
          enum:
          - high
          - medium
          - low
        score:
          type: integer
        current_rank:
          type: integer
          nullable: true
        target_url:
          type: string
          nullable: true
        reason:
          type: string
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowEvidence'
        recommended_actions:
          type: array
          items:
            type: string
        next_calls:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowNextCall'
    OpportunityBriefParams:
      type: object
      required:
      - keyword
      - target
      properties:
        keyword:
          type: string
        target:
          type: string
          description: Target domain or URL.
        page_url:
          type: string
          format: uri
        location:
          type: string
          default: United States
        location_code:
          type: integer
          minimum: 1
          description: Optional search location code for deterministic geo-targeting.
        language:
          type: string
          default: en
        opportunity_type:
          type: string
          enum:
          - quick_win
          - content_refresh
          - ai_overview_opportunity
          - featured_snippet_opportunity
          - commercial_intent_opportunity
          - lost_keyword_recovery
          - competitor_gap
        current_rank:
          type: integer
          minimum: 1
          maximum: 100
        include_competitor_outlines:
          type: boolean
          default: true
          description: Scrapes top competitor outlines and increases request cost by 2 credits.
    SyncPendingResponse:
      type: object
      properties:
        jobId:
          type: string
        status:
          type: string
          enum:
          - pending
          - processing
        poll_url:
          type: string
        events_url:
          type: string
        retry_after_seconds:
          type: integer
    JobContext:
      type: object
      properties:
        project_id:
          type: string
          nullable: true
        workflow_id:
          type: string
          nullable: true
    OpportunitiesFindResponse:
      type: object
      properties:
        target:
          type: string
        opportunities:
          type: array
          items:
            $ref: '#/components/schemas/SeoOpportunity'
        competitors:
          type: array
          items:
            type: object
            additionalProperties: true
        agent_workflow:
          $ref: '#/components/schemas/AgentWorkflow'
        markdown_summary:
          type: string
    SerpOpportunity:
      type: object
      properties:
        summary:
          type: string
        likely_intent:
          type: string
          enum:
          - informational
          - commercial_investigation
          - transactional
          - local
        competition_level:
          type: string
          enum:
          - high
          - medium
          - low
        dominant_features:
          type: array
          items:
            type: string
        recommended_content_format:
          type: string
          enum:
          - answer_page
          - comparison_page
          - guide
          - local_landing_page
          - service_page
        top_domains:
          type: array
          items:
            type: string
        recommended_next_calls:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowNextCall'
        confidence:
          type: number
          minimum: 0
          maximum: 1
    AgentWorkflowNextCall:
      type: object
      properties:
        endpoint:
          type: string
        reason:
          type: string
    AgentWorkflow:
      type: object
      properties:
        summary:
          type: string
        decision:
          type: string
          enum:
          - ready
          - act_now
          - monitor
          - blocker
        confidence:
          type: number
          minimum: 0
          maximum: 1
        recommended_actions:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowAction'
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowEvidence'
        limitations:
          type: array
          items:
            type: string
        next_calls:
          type: array
          items:
            $ref: '#/components/schemas/AgentWorkflowNextCall'
    OpportunitiesFindParams:
      type: object
      required:
      - target
      properties:
        target:
          type: string
          description: Domain or URL to analyze.
        location:
          type: string
          default: United States
        location_code:
          type: integer
          minimum: 1
          description: Optional search location code for deterministic geo-targeting.
        language:
          type: string
          default: en
        keyword_limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
        opportunity_limit:
          type: integer
          minimum: 1
          maximum: 25
          default: 10
        include_serp_competitors:
          type: boolean
          default: false
          description: Adds SERP competitor enrichment and increases request cost by 2 credits.
        include_competitor_discovery:
          type: boolean
          default: false
          description: Adds domain competitor discovery and increases request cost by 2 credits.
    OpportunityBriefResponse:
      type: object
      properties:
        keyword:
          type: string
        target:
          type: string
        page_url:
          type: string
          nullable: true
        priority:
          type: string
          enum:
          - high
          - medium
          - low
        implementation_brief:
          type: object
          additionalProperties: true
        competitor_outlines:
          type: array
          items:
            type: object
            additionalProperties: true
        serp_opportunity:
          $ref: '#/components/schemas/SerpOpportunity'
        agent_workflow:
          $ref: '#/components/schemas/AgentWorkflow'
        markdown_summary:
          type: string
    AgentWorkflowEvidence:
      type: object
      properties:
        finding:
          type: string
        detail:
          type: string
        severity:
          type: string
          enum:
          - critical
          - high
          - medium
          - low
  parameters:
    SyncParam:
      name: sync
      in: query
      required: false
      schema:
        type: boolean
        default: false
      description: Open a short inline processing window when supported by the endpoint. If the result is not ready yet, the endpoint may still return 202 with a queued payload that includes poll_url, events_url, and retry_after_seconds.
    WorkflowIdHeader:
      name: x-workflow-id
      in: header
      required: false
      schema:
        type: string
        maxLength: 120
      description: Optional attribution label for grouping usage and jobs by workflow or agent run.
    ProjectIdHeader:
      name: x-project-id
      in: header
      required: false
      schema:
        type: string
        maxLength: 120
      description: Optional attribution label for grouping usage and jobs by project.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key