{
  "openapi": "3.0.1",
  "info": {
    "title": "Ranked Keywords Checker - Domain Keywords & Keyword Gap",
    "description": "Get the Google keywords any domain or page ranks for, with position, ranking URL, search volume, CPC, difficulty, intent and estimated traffic, plus a free domain overview. Or the keyword gap: the competitor keywords your site does not rank for. Invalid or non-existent domains are never charged.",
    "version": "0.0",
    "x-build-id": "yh1G5lasYxZUDsQtL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smart-digital~ranked-keywords-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smart-digital-ranked-keywords-checker",
        "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/smart-digital~ranked-keywords-checker/runs": {
      "post": {
        "operationId": "runs-sync-smart-digital-ranked-keywords-checker",
        "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/smart-digital~ranked-keywords-checker/run-sync": {
      "post": {
        "operationId": "run-sync-smart-digital-ranked-keywords-checker",
        "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": {
          "domains": {
            "title": "Domains or pages",
            "minItems": 1,
            "type": "array",
            "description": "One per line, up to 100 per run. A domain (example.com, also covers its subdomains), www.example.com or its home page all mean the whole site; a subdomain (blog.example.com) means that subdomain; a full address with a path (https://example.com/blog/post) means that page only. A domain repeated in the list is looked up and charged once, and a domain that does not exist in DNS is not looked up nor charged.",
            "items": {
              "type": "string"
            },
            "default": [
              "apify.com"
            ]
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "ranked",
              "gap"
            ],
            "type": "string",
            "description": "Ranked keywords: every keyword each domain ranks for in Google, with its position and ranking page, plus a free overview of the domain. Keyword gap: the keywords each domain ranks for and your domain (below) does not, the content and keyword ideas you are missing against a competitor.",
            "default": "ranked"
          },
          "yourDomain": {
            "title": "Your domain (keyword gap only)",
            "type": "string",
            "description": "Keyword gap mode: your own domain (example.com). Each domain of the list is compared with it, and only the keywords it ranks for and yours does not are returned. Ignored in Ranked keywords mode."
          },
          "maxKeywordsPerDomain": {
            "title": "Max keywords per domain",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most keywords returned for each domain, in the order chosen below. Each keyword is charged, so this caps the cost of a run.",
            "default": 100
          },
          "location": {
            "title": "Country",
            "enum": [
              "Albania",
              "Algeria",
              "Angola",
              "Argentina",
              "Armenia",
              "Australia",
              "Austria",
              "Azerbaijan",
              "Bahrain",
              "Bangladesh",
              "Belgium",
              "Bolivia",
              "Bosnia and Herzegovina",
              "Brazil",
              "Bulgaria",
              "Burkina Faso",
              "Cambodia",
              "Cameroon",
              "Canada",
              "Chile",
              "Colombia",
              "Costa Rica",
              "Cote d'Ivoire",
              "Croatia",
              "Cyprus",
              "Czechia",
              "Denmark",
              "Ecuador",
              "Egypt",
              "El Salvador",
              "Estonia",
              "Finland",
              "France",
              "Germany",
              "Ghana",
              "Greece",
              "Guatemala",
              "Hong Kong",
              "Hungary",
              "India",
              "Indonesia",
              "Ireland",
              "Israel",
              "Italy",
              "Japan",
              "Jordan",
              "Kazakhstan",
              "Kenya",
              "Latvia",
              "Lithuania",
              "Malaysia",
              "Malta",
              "Mexico",
              "Moldova",
              "Monaco",
              "Morocco",
              "Myanmar (Burma)",
              "Netherlands",
              "New Zealand",
              "Nicaragua",
              "Nigeria",
              "North Macedonia",
              "Norway",
              "Pakistan",
              "Panama",
              "Paraguay",
              "Peru",
              "Philippines",
              "Poland",
              "Portugal",
              "Romania",
              "Saudi Arabia",
              "Senegal",
              "Serbia",
              "Singapore",
              "Slovakia",
              "Slovenia",
              "South Africa",
              "South Korea",
              "Spain",
              "Sri Lanka",
              "Sweden",
              "Switzerland",
              "Taiwan",
              "Thailand",
              "Tunisia",
              "Turkiye",
              "Ukraine",
              "United Arab Emirates",
              "United Kingdom",
              "United States",
              "Uruguay",
              "Venezuela",
              "Vietnam"
            ],
            "type": "string",
            "description": "The country of the Google results: positions, search volume, cost per click and traffic are measured there.",
            "default": "United States"
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "Albanian",
              "Arabic",
              "Armenian",
              "Azeri",
              "Bengali",
              "Bosnian",
              "Bulgarian",
              "Chinese (Simplified)",
              "Chinese (Traditional)",
              "Croatian",
              "Czech",
              "Danish",
              "Dutch",
              "English",
              "Estonian",
              "Finnish",
              "French",
              "German",
              "Greek",
              "Hebrew",
              "Hindi",
              "Hungarian",
              "Indonesian",
              "Italian",
              "Japanese",
              "Korean",
              "Latvian",
              "Lithuanian",
              "Macedonian",
              "Malay",
              "Norwegian (Bokmål)",
              "Polish",
              "Portuguese",
              "Romanian",
              "Russian",
              "Serbian",
              "Slovak",
              "Slovenian",
              "Spanish",
              "Swedish",
              "Tagalog",
              "Thai",
              "Turkish",
              "Ukrainian",
              "Urdu",
              "Vietnamese"
            ],
            "type": "string",
            "description": "The language of the searches. Leave on automatic to use the country's main language (English for the United States, French for France). Countries with several languages, such as Canada, Belgium or Switzerland, accept each of them; any other combination stops the run before any keyword is looked up or charged.",
            "default": "auto"
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "traffic",
              "volume",
              "position"
            ],
            "type": "string",
            "description": "Which keywords come first, and so which ones you get when there are more than the maximum.",
            "default": "traffic"
          },
          "minSearchVolume": {
            "title": "Minimum search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only keywords searched at least this many times a month. 0 keeps everything. Applied before anything is charged.",
            "default": 0
          },
          "maxPosition": {
            "title": "Worst position",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only keywords where the domain ranks at this position or better (10 = the first page of results). 100 keeps everything.",
            "default": 100
          },
          "maxKeywordDifficulty": {
            "title": "Maximum keyword difficulty",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only keywords with a difficulty up to this score (0 to 100, how hard it is to reach the top 10). 100 keeps everything; below 100, keywords without a difficulty score are left out.",
            "default": 100
          },
          "searchIntents": {
            "title": "Search intents",
            "type": "array",
            "description": "Keep only keywords whose main intent is one of these. Leave empty to keep every intent.",
            "items": {
              "type": "string",
              "enum": [
                "informational",
                "navigational",
                "commercial",
                "transactional"
              ],
              "enumTitles": [
                "Informational (to learn)",
                "Navigational (to find a site)",
                "Commercial (to compare before buying)",
                "Transactional (to buy or act)"
              ]
            },
            "default": []
          },
          "excludeBrandKeywords": {
            "title": "Leave out brand keywords",
            "type": "boolean",
            "description": "Leave out the keywords that contain the name of the domain as a whole word (zyte for zyte.com: \"zyte api\", \"what is zyte\"), and the extra brand words below. Names shorter than 3 letters are only used when added below.",
            "default": false
          },
          "extraBrandTerms": {
            "title": "Extra brand words",
            "type": "array",
            "description": "With the option above: more words to treat as brand for every domain of the run, such as a product or a former name (crawlera, scrapinghub). Matched as whole words; letters, digits, spaces, - ' & and . only, 20 words at most.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}