{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Competitor Keywords - Domain Ranked Keywords & Keyword Gap",
    "description": "Find the Google keywords any domain or competitor ranks for: position, ranking URL, search volume, CPC, keyword difficulty, intent and traffic, plus organic competitors and the keyword gap between 2-5 domains. No Semrush or Ahrefs needed. $3 per 1,000 keywords + $0.02 per domain; errors free.",
    "version": "1.0",
    "x-build-id": "ghso3ssZNH5dVPGOA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenfoldfleet~seo-competitor-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenfoldfleet-seo-competitor-keywords",
        "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/tenfoldfleet~seo-competitor-keywords/runs": {
      "post": {
        "operationId": "runs-sync-tenfoldfleet-seo-competitor-keywords",
        "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/tenfoldfleet~seo-competitor-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-tenfoldfleet-seo-competitor-keywords",
        "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",
        "required": [
          "domains"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "rankedKeywords",
              "competitors",
              "keywordGap"
            ],
            "type": "string",
            "description": "rankedKeywords: every Google keyword each domain ranks for (position, ranking URL, volume, CPC, difficulty, intent, traffic). competitors: the domains that compete with each domain in organic search. keywordGap: keywords your competitors rank for and you do not (or keywords you share), for 2-5 domains with yours first.",
            "default": "rankedKeywords"
          },
          "domains": {
            "title": "Domains (free Apify plan: 1 per run)",
            "type": "array",
            "description": "Domains or URLs, one per line (example.com, https://www.example.com/blog). rankedKeywords and competitors: 1-50 domains, each analyzed separately. keywordGap: 2-5 domains, YOUR domain first, then up to 4 competitors. www. and paths are removed; subdomains such as blog.example.com are kept.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Country",
            "type": "string",
            "description": "Country whose Google results you want. A country name or 2-letter code works (\"United States\", \"US\", \"GB\", \"Germany\"); 94 countries.",
            "default": "United States"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Search language, as a name or code (\"English\", \"en\", \"de\"). If the language has no data for the chosen country, the country's main language is used instead (for example Germany + English uses German). 21 countries support more than one language, for example United States English/Spanish, Canada English/French, Switzerland German/French/Italian, Belgium French/Dutch/German and India English/Hindi. English is also available in Cyprus, Egypt, Greece, Saudi Arabia and the UAE.",
            "default": "English"
          },
          "maxRowsPerDomain": {
            "title": "Max rows per domain",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most keywords (or competitors) returned per domain, highest traffic first. In keywordGap mode this is the most gap keywords fetched per competitor before merging. Up to 10,000.",
            "default": 500
          },
          "maxPosition": {
            "title": "Max Google position",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only keywords where the domain (in keywordGap: the competitor, and for shared also you) ranks at this position or better. 10 = first page only. In competitors mode, only these positions count toward common keywords.",
            "default": 100
          },
          "minSearchVolume": {
            "title": "Min monthly search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Only keywords with at least this many Google searches a month. 0 = all keywords. Not used in competitors mode.",
            "default": 0
          },
          "gapType": {
            "title": "Keyword gap type",
            "enum": [
              "missing",
              "shared"
            ],
            "type": "string",
            "description": "keywordGap mode only. missing: keywords at least one competitor ranks for and your domain (the first one) does not rank for at all. shared: keywords both you and a competitor rank for, with both positions.",
            "default": "missing"
          },
          "excludeTopDomains": {
            "title": "Exclude giant sites from competitors",
            "type": "boolean",
            "description": "competitors mode only. Leave out sites that rank for almost everything (wikipedia.org, youtube.com, amazon.com, reddit.com and similar), so the list shows real business competitors.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}