{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Search Volume — Bulk Google Metrics (CPC & Trend)",
    "description": "Get Google search volume, CPC, ad competition and a 12-month trend for thousands of keywords in one run. Expand seed keywords into related ideas, target any country, and get intent, opportunity score and click estimates. No Google Ads account or API key needed.",
    "version": "1.0",
    "x-build-id": "NAKkqo8zQnTjDvals"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~keyword-search-volume/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-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/insights_data~keyword-search-volume/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-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/insights_data~keyword-search-volume/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Keywords to measure (metrics mode) or seed keywords to expand (ideas mode). One per line; paste thousands at once. Duplicates and unusable terms are skipped and listed in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "🧭 Mode",
            "enum": [
              "metrics",
              "ideas"
            ],
            "type": "string",
            "description": "Metrics: one row per keyword you enter. Ideas: also discover related keywords from autocomplete and measure them, keeping the highest-volume ones.",
            "default": "metrics"
          },
          "maxIdeas": {
            "title": "🔢 Max ideas per location",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Ideas mode only: the most rows to return per location, seeds included (1-1000). Metrics mode returns every keyword you enter.",
            "default": 20
          },
          "locations": {
            "title": "📍 Locations",
            "type": "array",
            "description": "Markets to measure. One row per keyword and location. Worldwide returns global volume.",
            "items": {
              "type": "string",
              "enum": [
                "global",
                "us",
                "gb",
                "ca",
                "au",
                "in",
                "nz",
                "za"
              ],
              "enumTitles": [
                "Worldwide",
                "United States",
                "United Kingdom",
                "Canada",
                "Australia",
                "India",
                "New Zealand",
                "South Africa"
              ]
            },
            "default": [
              "us"
            ]
          },
          "language": {
            "title": "🗣️ Language",
            "enum": [
              "auto",
              "en",
              "de",
              "fr",
              "es",
              "it",
              "ja",
              "da",
              "nl",
              "fi",
              "ko",
              "no",
              "pt",
              "sv",
              "zh_CN",
              "zh_TW",
              "ar",
              "bg",
              "cs",
              "el",
              "hi",
              "hu",
              "id",
              "is",
              "iw",
              "lv",
              "lt",
              "pl",
              "ru",
              "ro",
              "sk",
              "sl",
              "sr",
              "uk",
              "tr",
              "ca",
              "hr",
              "vi",
              "ur",
              "tl",
              "et",
              "th",
              "bn",
              "fa",
              "ms"
            ],
            "type": "string",
            "description": "Language for idea discovery, spelling and Google Trends. Automatic follows each location.",
            "default": "auto"
          },
          "currency": {
            "title": "💱 CPC currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "INR",
              "NZD",
              "ZAR",
              "JPY",
              "CNY",
              "BRL",
              "MXN",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "TRY",
              "AED",
              "SGD"
            ],
            "type": "string",
            "description": "CPC is converted into this currency.",
            "default": "USD"
          },
          "ideaSources": {
            "title": "🌱 Idea sources",
            "type": "array",
            "description": "Where related keywords are discovered in ideas mode.",
            "items": {
              "type": "string",
              "enum": [
                "google_autocomplete",
                "youtube_autocomplete",
                "shopping_autocomplete",
                "amazon_autocomplete",
                "google_trends_related"
              ],
              "enumTitles": [
                "Google suggestions",
                "YouTube suggestions",
                "Google Shopping suggestions",
                "Amazon suggestions",
                "Google Trends related queries"
              ]
            },
            "default": [
              "google_autocomplete"
            ]
          },
          "autocompleteDepth": {
            "title": "🔬 Discovery depth",
            "enum": [
              "basic",
              "questions",
              "full"
            ],
            "type": "string",
            "description": "Basic: the seed only. Questions: adds question words. Full: adds modifiers and a-z letters (most ideas, slower). Discovery goes deeper automatically when too few ideas have volume.",
            "default": "questions"
          },
          "maxIdeaCandidates": {
            "title": "🧪 Ideas to measure",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Ideas measured per location before the best ones are kept. Higher finds more high-volume ideas but takes longer.",
            "default": 60
          },
          "includeGoogleTrends": {
            "title": "📈 Google Trends",
            "type": "boolean",
            "description": "Add 5-year interest, 12-month change, peak date and a breakout flag to every row (slower).",
            "default": false
          },
          "includeTrendsSeries": {
            "title": "🌊 Trends series",
            "type": "boolean",
            "description": "With Google Trends: also return the weekly interest series for each keyword.",
            "default": false
          },
          "includeMonthlySearches": {
            "title": "🗓️ Monthly searches",
            "type": "boolean",
            "description": "Return the 12-month search history of each keyword.",
            "default": true
          },
          "includeTrendAnalytics": {
            "title": "📊 Trend analytics",
            "type": "boolean",
            "description": "Add trend direction, month and quarter change, seasonality and spike months.",
            "default": true
          },
          "includeKeywordProfile": {
            "title": "🏷️ Keyword profile",
            "type": "boolean",
            "description": "Add word count, length class, question flag, intent, opportunity score and traffic estimates.",
            "default": true
          },
          "includeSpellCheck": {
            "title": "🔤 Spelling check",
            "type": "boolean",
            "description": "Add Google's spelling of each keyword and whether it was corrected.",
            "default": true
          },
          "clusterKeywords": {
            "title": "🧩 Group into clusters",
            "type": "boolean",
            "description": "Group similar keywords into clusters led by the highest-volume keyword.",
            "default": true
          },
          "dataSource": {
            "title": "🧮 Volume source",
            "enum": [
              "standard",
              "extended"
            ],
            "type": "string",
            "description": "Standard Google search volumes, or extended volumes that add more data where available.",
            "default": "standard"
          },
          "minVolume": {
            "title": "📉 Min monthly searches",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at least this many monthly searches. 0 = no minimum.",
            "default": 0
          },
          "maxVolume": {
            "title": "📈 Max monthly searches",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at most this many monthly searches. 0 = no maximum.",
            "default": 0
          },
          "minCpc": {
            "title": "💵 Min CPC",
            "minimum": 0,
            "type": "number",
            "description": "Keep keywords with a CPC at or above this value (in the chosen currency). 0 = no minimum.",
            "default": 0
          },
          "maxCpc": {
            "title": "💰 Max CPC",
            "minimum": 0,
            "type": "number",
            "description": "Keep keywords with a CPC at or below this value. 0 = no maximum.",
            "default": 0
          },
          "competitionLevels": {
            "title": "⚔️ Competition levels",
            "type": "array",
            "description": "Keep only keywords with these Google Ads competition levels. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "LOW",
                "MEDIUM",
                "HIGH"
              ],
              "enumTitles": [
                "Low",
                "Medium",
                "High"
              ]
            }
          },
          "intents": {
            "title": "🎯 Search intent",
            "type": "array",
            "description": "Keep only keywords with these intents. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "informational",
                "commercial",
                "transactional",
                "navigational"
              ],
              "enumTitles": [
                "Informational",
                "Commercial",
                "Transactional",
                "Navigational"
              ]
            }
          },
          "trends": {
            "title": "🚀 Trend direction",
            "type": "array",
            "description": "Keep only keywords that are rising, stable or declining. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "rising",
                "stable",
                "declining"
              ],
              "enumTitles": [
                "Rising",
                "Stable",
                "Declining"
              ]
            }
          },
          "includeTerms": {
            "title": "✅ Must contain",
            "type": "array",
            "description": "Keep only keywords that contain at least one of these terms.",
            "items": {
              "type": "string"
            }
          },
          "excludeTerms": {
            "title": "🚫 Must not contain",
            "type": "array",
            "description": "Drop keywords that contain any of these terms.",
            "items": {
              "type": "string"
            }
          },
          "minWords": {
            "title": "🔡 Min words",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at least this many words. 0 = no minimum.",
            "default": 0
          },
          "maxWords": {
            "title": "🔠 Max words",
            "minimum": 0,
            "type": "integer",
            "description": "Keep keywords with at most this many words. 0 = no maximum.",
            "default": 0
          },
          "onlyQuestions": {
            "title": "❓ Only questions",
            "type": "boolean",
            "description": "Keep only keywords phrased as a question.",
            "default": false
          },
          "sortBy": {
            "title": "↕️ Sort rows by",
            "enum": [
              "",
              "search_volume",
              "cpc",
              "competition_index",
              "opportunity",
              "trend",
              "yoy_change",
              "keyword"
            ],
            "type": "string",
            "description": "Order of the rows within each location, highest first (keyword A-Z). Default keeps your input order; sorting waits until every row of a location is ready.",
            "default": ""
          },
          "maxResults": {
            "title": "🔢 Max rows per location",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows per location. 0 = no limit.",
            "default": 0
          },
          "keepAllInputRows": {
            "title": "📌 Keep every keyword you entered",
            "type": "boolean",
            "description": "Metrics mode: filters never remove your own keywords; they get a row even with no data.",
            "default": true
          },
          "cacheTtlHours": {
            "title": "♻️ Reuse results for (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Search volumes change monthly, so measured keywords are reused for this long on later runs (free and fast). 0 = always measure again.",
            "default": 168
          },
          "knownDataset": {
            "title": "🗂️ Skip keywords from an earlier dataset",
            "type": "string",
            "description": "Pick the dataset of an earlier run: keywords already measured there are not measured or charged again."
          },
          "monitorChanges": {
            "title": "🔔 Track changes",
            "type": "boolean",
            "description": "Remember each keyword between runs and add previous volume, change and a new-keyword flag.",
            "default": false
          },
          "outputFormat": {
            "title": "🗃️ Row format",
            "enum": [
              "full",
              "flat"
            ],
            "type": "string",
            "description": "Full keeps the monthly history and trends as lists. Flat gives one level (month columns), ready for sheets and CSV.",
            "default": "full"
          },
          "writeCsv": {
            "title": "💾 Also save a CSV file",
            "type": "boolean",
            "description": "Save the rows as keywords.csv in the run storage.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Runs without a proxy and automatically switches to a stronger connection when requests are blocked.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}