{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Search Volume for Google - CPC, Difficulty & Bulk API",
    "description": "Bulk Google keyword search volume, CPC, difficulty, intent and category, with up to 8 years of history, trends and AI Overview checks, in any country, state or city. Get ideas from a seed or see what any site ranks for. Keywords with no figures are free. Independent tool, not affiliated with Google.",
    "version": "0.1",
    "x-build-id": "cddW2yTfUECxoxq7t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~keyword-search-volume/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-keyword-search-volume",
        "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/scrapesage~keyword-search-volume/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-keyword-search-volume",
        "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/scrapesage~keyword-search-volume/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-keyword-search-volume",
        "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": "What do you want to do?",
            "enum": [
              "metrics",
              "ideas",
              "competitor"
            ],
            "type": "string",
            "description": "Check my keywords: one row per keyword you list. Find ideas: your keywords are seeds and you get related keywords with the same figures. Website rankings: the keywords a website ranks for on Google, with its position.",
            "default": "metrics"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One keyword per line. Check my keywords: any number of them, each up to 80 characters and 10 words. Find ideas: these are your seeds. Capital letters, extra spaces and repeats are tidied for you, and symbols Google does not accept are removed.",
            "items": {
              "type": "string"
            }
          },
          "keywordsFile": {
            "title": "Keyword list or file",
            "type": "string",
            "description": "A long list instead of typing: paste it here, or paste one link to a .txt or .csv file or a Google Sheet shared as \"Anyone with the link\". In a table with a column named Keyword (an export from an SEO tool), only that column is read. These add to Keywords above."
          },
          "domains": {
            "title": "Websites (website rankings only)",
            "type": "array",
            "description": "The sites to read, like example.com, one per line. A full page address reads that page only.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where the searches happen. A country name or code (Germany, DE, UK), a state or city (Texas, \"Austin, Texas, United States\"), or Worldwide. Each location gets its own rows, so 5 keywords in 3 locations give 15 rows. Empty means the United States. States, cities and Worldwide come from Google Ads live and carry no difficulty, intent or category.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional: a language name or code, such as Spanish or es, for countries that have several. Empty uses each location's main language. Google Ads live ignores it, because its figures do not depend on language."
          },
          "dataSource": {
            "title": "Where the figures come from",
            "enum": [
              "auto",
              "keyword_database",
              "google_ads_live"
            ],
            "type": "string",
            "description": "Automatic is best for almost everyone. It uses the keyword database wherever it can, and Google Ads live for states, cities, Worldwide and countries the database does not hold. Keyword database: refreshed monthly from Google Ads data, with difficulty, intent, category, what shows on the results page and up to 8 years of history, by country only. Google Ads live: asked fresh from Google Ads on every run, for any location, with no difficulty or intent, and each request of up to 1,000 keywords pays one Google Ads live lookup fee even when Google has no figures.",
            "default": "auto"
          },
          "askGoogleForMissing": {
            "title": "Ask Google Ads about keywords the database does not hold",
            "type": "boolean",
            "description": "Very rare phrases can be missing from the keyword database and still have figures at Google Ads. Turn this on to ask Google Ads live about them. Each request of up to 1,000 keywords pays one Google Ads live lookup fee, even when Google has no figures. Off by default.",
            "default": false
          },
          "useCache": {
            "title": "Reuse my results from the last 24 hours",
            "type": "boolean",
            "description": "A keyword you already got in the same location with the same settings comes back free for 24 hours, marked servedFromCache, on lists of up to 5,000 rows a run. Saved in a store in your own Apify account named keyword-search-volume-cache. While this is on, the example keywords this form opens with also come free from a stored check. Turn off to always read fresh figures.",
            "default": true
          },
          "historyMonths": {
            "title": "Months of history per keyword",
            "minimum": 1,
            "maximum": 96,
            "type": "integer",
            "description": "Check my keywords: how many months go in monthlySearches, newest first, at no extra cost. Up to 96 from the keyword database and up to 48 from Google Ads live. Ideas and website rankings carry the last 12 months. Rising or falling and the month, quarter and year changes do not depend on this setting.",
            "default": 12
          },
          "includeAiVolume": {
            "title": "Add AI search volume",
            "type": "boolean",
            "description": "How often each keyword is used in AI assistants, with its monthly history. Billed per keyword that gets a number, plus one lookup per request. Keywords without one are not billed for it.",
            "default": false
          },
          "includeBing": {
            "title": "Add Bing volume and CPC",
            "type": "boolean",
            "description": "Microsoft Advertising figures on the same row, for the United States, United Kingdom, Canada, Australia, Germany and France in English, French or German. Each request of up to 1,000 keywords pays one Bing lookup fee. Other locations get a bingStatus saying why and are not billed for it.",
            "default": false
          },
          "maxResults": {
            "title": "Max rows per location",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Find ideas: rows per location, shared across your seeds. Website rankings: rows per website and location. Your filters are applied first, so this counts rows that pass. Check my keywords ignores this: you get one row per keyword.",
            "default": 100
          },
          "ideasMethod": {
            "title": "How ideas are found",
            "enum": [
              "auto",
              "suggestions",
              "related",
              "categories",
              "google_ads"
            ],
            "type": "string",
            "description": "Automatic: phrases that contain your seed, then related searches until Max rows is met. Contains my seed: long-tail phrases with your words in them. Related searches: what people also search for. Same category: broader ideas in the seed's product or service category. Google Keyword Planner: Google's own ideas, up to 20 seeds per request, each paying one Google Ads live lookup fee, with no difficulty or intent.",
            "default": "auto"
          },
          "includeCloseVariants": {
            "title": "Keep close variants in ideas",
            "type": "boolean",
            "description": "Google gives close spellings one shared figure, so \"shoes running\" and \"running with shoes\" read the same as \"running shoes\". Off keeps one row per group, so Max rows goes further. Turn on to get every spelling.",
            "default": false
          },
          "sortBy": {
            "title": "Sort rows by",
            "enum": [
              "auto",
              "search_volume",
              "cpc",
              "keyword_difficulty",
              "competition",
              "opportunity",
              "ad_value",
              "traffic",
              "rank",
              "relevance"
            ],
            "type": "string",
            "description": "Check my keywords: Automatic keeps your own order, so you can join the rows back to your list. Any other choice sorts the list inside each location, for lists of up to 5,000 keywords, with keywords that have no figure last. Find ideas and website rankings: this also decides which rows survive Max rows. Automatic means most searches first for ideas and most estimated traffic first for rankings. Best opportunity score and Highest ad value keep the keywords with the most searches and put them in that order, page by page.",
            "default": "auto"
          },
          "minSearchVolume": {
            "title": "Min search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at least this many searches a month."
          },
          "maxSearchVolume": {
            "title": "Max search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at most this many searches a month."
          },
          "minCpc": {
            "title": "Min CPC (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep keywords whose cost per click is at least this much, for example 1.50."
          },
          "maxCpc": {
            "title": "Max CPC (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep keywords whose cost per click is at most this much, for example 5."
          },
          "maxKeywordDifficulty": {
            "title": "Max keyword difficulty (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep keywords at or below this difficulty. Difficulty comes from the keyword database, so a row from Google Ads live never passes this filter."
          },
          "searchIntents": {
            "title": "Search intent",
            "type": "array",
            "description": "Keep keywords with one of these main intents. Intent comes from the keyword database, so a row from Google Ads live never passes this filter. Empty keeps all.",
            "items": {
              "type": "string",
              "enum": [
                "informational",
                "navigational",
                "commercial",
                "transactional"
              ],
              "enumTitles": [
                "Informational",
                "Navigational",
                "Commercial",
                "Transactional"
              ]
            }
          },
          "searchPartners": {
            "title": "Include Google search partners",
            "type": "boolean",
            "description": "Count searches on Google's partner sites too. This run then uses Google Ads live, with no difficulty or intent, and pays its lookup fee.",
            "default": false
          },
          "includeAdultKeywords": {
            "title": "Include adult keywords",
            "type": "boolean",
            "description": "Allow adult keywords in the answer. Google may still return no figures for them. This run then uses Google Ads live and pays its lookup fee.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}