{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Planner: Search Volume, CPC & Ideas",
    "description": "Keyword research: Google search volume, competition and top of page bids by country or city, ideas from keywords or a website, autocomplete expansion, Bing figures, monthly trend, intent. Up to 10,000 keywords per run. No login or cookies needed.",
    "version": "1.0",
    "x-build-id": "qPAopehtpYnfjaY1h"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~keyword-search-volume/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-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/pomlabs~keyword-search-volume/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-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/pomlabs~keyword-search-volume/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to look up (up to 10,000 per run). With an empty input the robot reads 3 example keywords.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "metrics",
              "ideas",
              "domain",
              "autocomplete"
            ],
            "type": "string",
            "description": "metrics: figures of exactly your keywords. ideas: new keywords from each keyword. domain: keywords for a website. autocomplete: what people type in search boxes, with figures."
          },
          "domains": {
            "title": "Websites",
            "type": "array",
            "description": "Domains or page addresses for the website mode, like example.com. Giving only websites selects that mode.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A country code or name, a city or region name (for example Austin or Paris, France), a location id, or Worldwide. Default: US."
          },
          "locations": {
            "title": "Several locations",
            "type": "array",
            "description": "Up to 30 countries, cities or regions. Each keyword is read in each of them.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code or name. Used as the location, or to pick the right city when a location is also given."
          },
          "countries": {
            "title": "Several countries",
            "type": "array",
            "description": "Country codes or names.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Autocomplete language",
            "type": "string",
            "description": "Two-letter language for the autocomplete suggestions, like en or pt. Search figures cover all languages of the location."
          },
          "categoryId": {
            "title": "Category id",
            "minimum": 0,
            "type": "integer",
            "description": "Google Ads industry category id that narrows the ideas. Optional."
          },
          "maxIdeasPerSeed": {
            "title": "Ideas per keyword or website",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Default 25, up to 20,000. Above 500 the ideas found are searched too. 0 means the first 500."
          },
          "maxItems": {
            "title": "Maximum charged rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows with figures. 0 = no limit."
          },
          "appendAlphabet": {
            "title": "Expand with the alphabet",
            "type": "boolean",
            "description": "Also ask autocomplete for the keyword followed by each letter a to z."
          },
          "expansionPatterns": {
            "title": "Expansion patterns",
            "type": "array",
            "description": "Extra autocomplete queries, for example 'best {keyword}' or '{keyword} for'.",
            "items": {
              "type": "string"
            }
          },
          "maxSuggestionsPerKeyword": {
            "title": "Suggestions per query",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Default 10 per query. Above 20 it is the total per keyword (up to 500), reached with the alphabet."
          },
          "expandAutocomplete": {
            "title": "Add autocomplete suggestions",
            "type": "boolean",
            "description": "Also read the suggestions of each keyword in the other modes."
          },
          "includeMetrics": {
            "title": "Figures for each suggestion",
            "type": "boolean",
            "description": "In autocomplete mode, read volume, competition and bids of every suggestion (default on). Off returns the suggestions only, at the suggestion price.",
            "default": true
          },
          "includeMonthlySearches": {
            "title": "Monthly history and trend",
            "type": "boolean",
            "description": "Month by month search volume (estimated from search interest) with 3-month and year-over-year change."
          },
          "historyMonths": {
            "title": "Months of history",
            "minimum": 12,
            "maximum": 48,
            "type": "integer",
            "description": "12 to 48."
          },
          "dateFrom": {
            "title": "History from",
            "type": "string",
            "description": "YYYY-MM or YYYY-MM-DD."
          },
          "dateTo": {
            "title": "History to",
            "type": "string",
            "description": "YYYY-MM or YYYY-MM-DD."
          },
          "includeBing": {
            "title": "Bing search figures",
            "type": "boolean",
            "description": "Real Bing search volume, broad volume, weekly series and trend. On by default for keyword figures and autocomplete."
          },
          "includeEstimates": {
            "title": "Second volume estimate",
            "type": "boolean",
            "description": "An estimated volume and cost per click from a second source, to compare. On by default for keyword figures and autocomplete."
          },
          "includeGoogle": {
            "title": "Keyword Planner figures",
            "type": "boolean",
            "description": "Turn off to get only Bing figures and estimates (faster; rows with an estimate are charged at the lower estimate price).",
            "default": true
          },
          "includeRelatedKeywords": {
            "title": "Related keywords",
            "type": "boolean",
            "description": "Up to 10 related keywords with figures inside each row.",
            "default": true
          },
          "includeSearchIntent": {
            "title": "Search intent",
            "type": "boolean",
            "description": "Informational, commercial, transactional or navigational, from the words of the keyword and its competition.",
            "default": true
          },
          "includeSpellCheck": {
            "title": "Spelling check on every keyword",
            "type": "boolean",
            "description": "Adds spellingSuggestion when the keyword looks misspelled. Keywords with no figures are checked even when this is off.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code for bids and cost per click (default USD)."
          },
          "minVolume": {
            "title": "Minimum search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only keywords with at least this volume."
          },
          "maxVolume": {
            "title": "Maximum search volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only keywords up to this volume. 0 = no limit."
          },
          "competition": {
            "title": "Competition levels",
            "type": "array",
            "description": "low, medium, high.",
            "items": {
              "type": "string"
            }
          },
          "includeWords": {
            "title": "Must contain",
            "type": "array",
            "description": "Keep keywords that contain one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeWords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Drop keywords with any of these words.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Order of ideas",
            "enum": [
              "relevance",
              "search_volume",
              "competition_index",
              "cpc",
              "low_top_of_page_bid",
              "high_top_of_page_bid"
            ],
            "type": "string",
            "description": "relevance, search_volume, competition_index, cpc, low_top_of_page_bid or high_top_of_page_bid."
          },
          "includeKeywordsWithoutData": {
            "title": "Rows for keywords without figures",
            "type": "boolean",
            "description": "A free row says a keyword has no figures (default on).",
            "default": true
          },
          "compact": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Leave out the long blocks (related keywords, weekly and monthly series)."
          },
          "excludeEmptyFields": {
            "title": "Drop empty fields",
            "type": "boolean",
            "description": "Remove null and empty values from the rows."
          },
          "bypassCache": {
            "title": "Fresh figures",
            "type": "boolean",
            "description": "Skip answers kept from the last days."
          },
          "keyword": {
            "title": "Keyword (single)",
            "type": "string",
            "description": "One keyword; same as Keywords."
          },
          "keywordsText": {
            "title": "Keywords as text",
            "type": "string",
            "description": "One keyword per line or separated by commas."
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Same as Keywords.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Same as Keywords.",
            "items": {
              "type": "string"
            }
          },
          "seeds": {
            "title": "Seeds",
            "type": "array",
            "description": "Same as Keywords.",
            "items": {
              "type": "string"
            }
          },
          "seedKeywords": {
            "title": "Seed keywords",
            "type": "array",
            "description": "Same as Keywords.",
            "items": {
              "type": "string"
            }
          },
          "domain": {
            "title": "Website (single)",
            "type": "string",
            "description": "Same as Websites."
          },
          "websiteUrl": {
            "title": "Website address",
            "type": "string",
            "description": "Same as Websites."
          },
          "urls": {
            "title": "Website addresses",
            "type": "array",
            "description": "Same as Websites.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Same as Websites.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Same as Country."
          },
          "geo": {
            "title": "Geo",
            "type": "string",
            "description": "Same as Country."
          },
          "maxIdeas": {
            "title": "Maximum ideas",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Same as Ideas per keyword or website."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Same as Maximum charged rows."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}