{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Competitor Analyzer — Semrush Alternative",
    "description": "Analyze SEO competitors from domains or seed keywords. Export organic keywords, competing domains, volume, CPC, difficulty, ranking URLs, and backlink context for repeatable competitive-research reports.",
    "version": "0.5",
    "x-build-id": "iV3gLmy2e37wpBJnw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~semrush-alternative/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-semrush-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~semrush-alternative/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-semrush-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~semrush-alternative/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-semrush-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Report type",
            "enum": [
              "domain_overview",
              "organic_keywords",
              "competitors",
              "keyword_gap",
              "top_pages",
              "subdomains",
              "bulk_traffic",
              "backlinks",
              "referring_domains",
              "anchors",
              "keyword_overview",
              "keyword_ideas"
            ],
            "type": "string",
            "description": "Which report to run. domain_overview gives one summary row plus the domain's top 10 keywords. organic_keywords lists ranked keywords with filters. keyword_gap shows keywords rivals rank for and you do not. Default domain_overview.",
            "default": "domain_overview"
          },
          "target": {
            "title": "Domain or URL",
            "type": "string",
            "description": "Main website to analyze, for example ahrefs.com or https://ahrefs.com. Protocol and www are removed. Backlink modes also accept a page URL. Use 'Several domains' to analyze more than one."
          },
          "targets": {
            "title": "Several domains (optional)",
            "type": "array",
            "description": "Extra domains to analyze in the same run, one report each (bulk_traffic accepts up to 1,000 here). Duplicates are removed. Free plan: 2 domains.",
            "items": {
              "type": "string"
            }
          },
          "competitorDomains": {
            "title": "Rival domains (keyword gap)",
            "type": "array",
            "description": "Rival websites for keyword_gap, for example semrush.com. Up to 5 on paid plans, 1 on the free plan. Each rival is one data request.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Seed phrases for keyword_overview or keyword_ideas, for example [\"seo tools\"]. Ignored in domain modes.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "locationName": {
            "title": "Country",
            "type": "string",
            "description": "Country whose Google results are used. Default United States. Use the full country name such as United Kingdom or Germany. Ignored for backlink modes.",
            "default": "United States"
          },
          "languageCode": {
            "title": "Language code",
            "type": "string",
            "description": "Short language code matching the country: en, de, es, fr. Default en.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max rows per domain",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows saved per domain or per rival (1-1,000). Default 25. Free plan is limited to 25. Runs over 300 rows are given more memory automatically.",
            "default": 25
          },
          "sortBy": {
            "title": "Sort keywords by",
            "enum": [
              "searchVolume",
              "estimatedTraffic",
              "position",
              "cpc",
              "keywordDifficulty"
            ],
            "type": "string",
            "description": "How organic_keywords is ordered before the row limit is applied.",
            "default": "searchVolume"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending shows biggest first (position sorts best first by default)."
          },
          "rankingStatus": {
            "title": "Ranking status",
            "enum": [
              "live",
              "lost",
              "all"
            ],
            "type": "string",
            "description": "organic_keywords only: live keywords, lost keywords (the domain used to rank), or both.",
            "default": "live"
          },
          "gapMode": {
            "title": "Gap type",
            "enum": [
              "missing",
              "unique",
              "shared"
            ],
            "type": "string",
            "description": "keyword_gap only. missing = rival ranks and you do not. unique = you rank and the rival does not. shared = both rank.",
            "default": "missing"
          },
          "minSearchVolume": {
            "title": "Minimum monthly searches",
            "minimum": 0,
            "type": "integer",
            "description": "Only keywords with at least this many monthly searches."
          },
          "maxSearchVolume": {
            "title": "Maximum monthly searches",
            "minimum": 0,
            "type": "integer",
            "description": "Only keywords with at most this many monthly searches."
          },
          "maxPosition": {
            "title": "Best position cut-off",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "organic_keywords only: only keywords where the domain ranks at this position or better, for example 10 for page one."
          },
          "maxKeywordDifficulty": {
            "title": "Maximum keyword difficulty",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only keywords at or below this difficulty (0-100). Lower is easier to rank for."
          },
          "minCpcUsd": {
            "title": "Minimum CPC (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only keywords whose average ad cost per click is at least this much."
          },
          "searchIntents": {
            "title": "Search intent",
            "type": "array",
            "description": "Keep only these intents. Choose from informational, navigational, commercial, transactional. Anything else is ignored.",
            "items": {
              "type": "string"
            }
          },
          "includeWords": {
            "title": "Must contain any of",
            "type": "array",
            "description": "Keep keywords that contain at least one of these words (max 5).",
            "items": {
              "type": "string"
            }
          },
          "excludeWords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Drop keywords containing these words (max 3).",
            "items": {
              "type": "string"
            }
          },
          "excludeBrandKeywords": {
            "title": "Exclude brand keywords",
            "type": "boolean",
            "description": "Drop keywords containing the domain's brand name, for example 'ahrefs' for ahrefs.com.",
            "default": false
          },
          "includePaid": {
            "title": "Include paid keywords",
            "type": "boolean",
            "description": "organic_keywords only: also return keywords the domain advertises on.",
            "default": false
          },
          "includeBacklinkSummary": {
            "title": "Add backlink summary (domain report)",
            "type": "boolean",
            "description": "domain_overview only: adds backlinks, referring domains and strength score. Counts as two data requests.",
            "default": false
          },
          "dofollowOnly": {
            "title": "Dofollow links only",
            "type": "boolean",
            "description": "backlinks only: skip nofollow links.",
            "default": false
          },
          "minDomainRank": {
            "title": "Minimum linking-domain strength",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "backlinks only: only links from domains at or above this strength score (0-1000)."
          },
          "maxSpamScore": {
            "title": "Maximum spam score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "backlinks only: skip links above this spam score (0-100)."
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "Include subdomain data in keyword and backlink reports. Default on.",
            "default": true
          },
          "excludeTopDomains": {
            "title": "Exclude giant sites (competitors)",
            "type": "boolean",
            "description": "competitors only: hide huge generic sites. Default on.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}