{
  "openapi": "3.0.1",
  "info": {
    "title": "Keyword Research Tool: Autocomplete Keywords, Intent & Clusters",
    "description": "Turn seed keywords into hundreds of long-tail keywords from Google, YouTube, Bing, DuckDuckGo and Amazon autocomplete, deduplicated and labeled with search intent, question patterns and topic clusters. English, Spanish and Portuguese.",
    "version": "0.0",
    "x-build-id": "IeERUztV864KvofCI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thesamirux~seo-keyword-clusters/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thesamirux-seo-keyword-clusters",
        "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/thesamirux~seo-keyword-clusters/runs": {
      "post": {
        "operationId": "runs-sync-thesamirux-seo-keyword-clusters",
        "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/thesamirux~seo-keyword-clusters/run-sync": {
      "post": {
        "operationId": "run-sync-thesamirux-seo-keyword-clusters",
        "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": [
          "seeds"
        ],
        "properties": {
          "seeds": {
            "title": "Seed keywords",
            "type": "array",
            "description": "One topic per line, for example crm software or como aprender python. Each seed is expanded through autocomplete into hundreds of related long-tail keywords.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Autocomplete sources",
            "type": "array",
            "description": "Where to collect suggestions. Google covers most needs; add YouTube for video topics, Amazon for product keywords, Bing and DuckDuckGo for extra coverage. Keywords found in several sources rank higher.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "youtube",
                "bing",
                "duckduckgo",
                "amazon"
              ],
              "enumTitles": [
                "Google",
                "YouTube",
                "Bing",
                "DuckDuckGo",
                "Amazon"
              ]
            },
            "default": [
              "google"
            ]
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code of the suggestions (en, es, pt, de, fr...). Question, preposition and comparison expansions are available for English, Spanish and Portuguese; other languages use alphabet expansion.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code (us, gb, ar, mx, br, es...). Also selects the Amazon marketplace when Amazon is a source (us, ca, mx, br, gb, es, de, fr, it).",
            "default": "us"
          },
          "expandAlphabet": {
            "title": "Alphabet expansion (seed a, seed b ... seed z)",
            "type": "boolean",
            "description": "Query the seed followed by every letter. The main source of long-tail keywords.",
            "default": true
          },
          "expandQuestions": {
            "title": "Question expansion (how, what, why...)",
            "type": "boolean",
            "description": "Query question prefixes in the selected language, e.g. how crm software, cómo crm software. Great for FAQ and blog topics.",
            "default": true
          },
          "expandPrepositions": {
            "title": "Preposition expansion (for, with, without...)",
            "type": "boolean",
            "description": "Query the seed followed by prepositions, e.g. crm software for, crm software without.",
            "default": true
          },
          "expandComparisons": {
            "title": "Comparison expansion (vs, or, alternatives)",
            "type": "boolean",
            "description": "Query comparison modifiers, e.g. crm software vs, crm software alternatives.",
            "default": true
          },
          "expandDigits": {
            "title": "Digit expansion (seed 0 ... seed 9)",
            "type": "boolean",
            "description": "Query the seed followed by digits. Useful for years, versions and model numbers.",
            "default": false
          },
          "deepExpandTop": {
            "title": "Deep expansion: top N keywords",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Expand the N best keywords found for each seed again with a-z to reach deeper long tail. 0 disables it. Each keyword expanded adds 27 queries per source.",
            "default": 0
          },
          "maxKeywords": {
            "title": "Max keywords",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of keywords returned per run, best first. You only pay for keywords returned.",
            "default": 1000
          },
          "mustContainSeed": {
            "title": "Only keywords that contain the seed",
            "type": "boolean",
            "description": "Drop suggestions that do not include every word of their seed (plural forms count as matches).",
            "default": false
          },
          "excludeWords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop keywords containing any of these words or phrases, for example competitor brands or free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minClusterSize": {
            "title": "Minimum cluster size",
            "minimum": 2,
            "maximum": 50,
            "type": "integer",
            "description": "A topic term must be shared by at least this many keywords to become a cluster. Keywords without such a term go to the cluster \"other\".",
            "default": 2
          },
          "maxConcurrencyPerSource": {
            "title": "Max concurrency per source",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests to each source. Lower it if a source starts failing.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Autocomplete endpoints usually work without a proxy. Use one only for very large runs or if the SUMMARY record shows a source being skipped after repeated errors.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}