{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Search Volume API — Bulk Google Volume + CPC",
    "description": "Get Google keyword search volume, CPC, competition and bid estimates in bulk for a keyword list you already have. Sample mode covers 25 keywords and bulk mode up to 1,000, with one row per keyword.",
    "version": "0.1",
    "x-build-id": "f6tFZB9p54ui7Q8Ad"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~keyword-search-volume-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-keyword-search-volume-api",
        "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/khadinakbar~keyword-search-volume-api/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-keyword-search-volume-api",
        "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/khadinakbar~keyword-search-volume-api/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-keyword-search-volume-api",
        "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",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "List of keywords to look up. Each keyword gets one row per country with searchVolume, CPC, competition and bid estimates. Duplicates are removed. Sample mode caps at 25, bulk mode at 1,000, free accounts at 10.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "sample",
              "bulk",
              "free_tier",
              "bulk_paid"
            ],
            "type": "string",
            "description": "Sample processes up to 25 keywords so you can check the output shape. Bulk processes up to 1,000 keywords per run. Both are billed the same way: see the Pricing tab. Older values free_tier and bulk_paid still work.",
            "default": "sample"
          },
          "countryName": {
            "title": "Country",
            "type": "string",
            "description": "Country for the search volume. Defaults to United States. Use the country name, such as United Kingdom, Germany or India. Ignored when Countries is filled.",
            "default": "United States"
          },
          "countries": {
            "title": "Countries (compare up to 5)",
            "maxItems": 5,
            "type": "array",
            "description": "Optional. Compare several countries in one run, up to 5, such as United States, United Kingdom, Canada. Each country adds one request fee and one row per keyword with data. Leave empty to use Country.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 80
            }
          },
          "languageName": {
            "title": "Language",
            "type": "string",
            "description": "Language name matching the country, such as English, German or Spanish. Leave empty to use the main language of each country (English for United States, German for Germany, French for France)."
          },
          "includeCompetition": {
            "title": "Include competition score",
            "type": "boolean",
            "description": "Return competition (0-1 score) and competitionLevel (LOW/MEDIUM/HIGH). Included by default.",
            "default": true
          },
          "includeLowTopOfPageBid": {
            "title": "Include low top-of-page bid",
            "type": "boolean",
            "description": "Return lowTopOfPageBidUsd, the low estimate of what advertisers bid to appear at the top of the page. Included by default.",
            "default": true
          },
          "includeHighTopOfPageBid": {
            "title": "Include high top-of-page bid",
            "type": "boolean",
            "description": "Return highTopOfPageBidUsd, the high estimate of what advertisers bid to appear at the top of the page. Included by default.",
            "default": true
          },
          "maxKeywordsPerBatch": {
            "title": "Keywords per batch",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Keywords sent in each request for lists above 500. Default and maximum 1,000. Lists up to 500 are always one request per country.",
            "default": 1000
          },
          "onPartialFailure": {
            "title": "On batch failure",
            "enum": [
              "return_partial",
              "fail_if_any_batch_fails"
            ],
            "type": "string",
            "description": "return_partial saves all successful batches and marks the run PARTIAL. fail_if_any_batch_fails stops immediately on the first batch error.",
            "default": "return_partial"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}