{
  "openapi": "3.0.1",
  "info": {
    "title": "Google, YouTube & Amazon Keyword Autocomplete Scraper (MCP)",
    "description": "Bulk keyword research, autocomplete & buyer-intent question expander across Google, YouTube, Amazon, Bing & DuckDuckGo. Alphabet a-z & commercial prefix fanout ('best', 'vs', 'pricing'), Google relevance scores & intent classification in <2s ($1.50/1k in Rust 128 MB).",
    "version": "0.1",
    "x-build-id": "UFOh441ZJ9gUKIHIu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cetus~google-youtube-amazon-keyword-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cetus-google-youtube-amazon-keyword-scraper",
        "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/cetus~google-youtube-amazon-keyword-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cetus-google-youtube-amazon-keyword-scraper",
        "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/cetus~google-youtube-amazon-keyword-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cetus-google-youtube-amazon-keyword-scraper",
        "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": {
          "seeds": {
            "title": "Seed Keywords",
            "type": "array",
            "description": "Base keywords, SaaS categories, or product niches to expand (API callers may also pass 'keywords' or 'queries', which are merged automatically).",
            "default": [
              "crm software",
              "matcha tea"
            ],
            "items": {
              "type": "string"
            }
          },
          "engines": {
            "title": "Autocomplete Engines",
            "type": "array",
            "description": "Public autocomplete engines to query concurrently: 'google', 'youtube', 'amazon', 'bing', 'duckduckgo'.",
            "default": [
              "google",
              "youtube",
              "amazon",
              "bing"
            ],
            "items": {
              "type": "string"
            }
          },
          "expansionMode": {
            "title": "Expansion Mode",
            "enum": [
              "standard",
              "buyer_intent",
              "questions",
              "alphabet_az",
              "full"
            ],
            "type": "string",
            "description": "Controls query modifier fanout per seed: 'buyer_intent' queries base seed + 'best {seed}', '{seed} vs', '{seed} alternative', '{seed} pricing', 'how to {seed}'; 'questions' adds how/what/why/which/where; 'alphabet_az' appends a..z; 'full' combines buyer_intent + a..z.",
            "default": "buyer_intent"
          },
          "country": {
            "title": "Country Code (ISO 2-Letter)",
            "type": "string",
            "description": "2-letter country code for geo-localized suggestions & Amazon marketplace routing (US, GB/UK, DE, IT, FR, ES, CA, JP).",
            "default": "US"
          },
          "language": {
            "title": "Language Code (ISO 2-Letter)",
            "type": "string",
            "description": "2-letter language code for localized autocomplete suggestions (e.g. en, de, it, fr, es, ja).",
            "default": "en"
          },
          "deduplicateAcrossEngines": {
            "title": "Deduplicate & Merge Across Engines",
            "type": "boolean",
            "description": "Merges identical normalized keywords discovered across multiple engines into one enriched record with foundInEngines, engineCount, best rank position, and max Google relevance score.",
            "default": true
          },
          "maxKeywords": {
            "title": "Max Keywords",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of ranked keywords to return and bill in this run (1 to 5,000).",
            "default": 150
          },
          "concurrency": {
            "title": "HTTP Concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Maximum concurrent HTTP autocomplete requests (1 to 32).",
            "default": 16
          },
          "maxTotalChargeUsd": {
            "title": "Max Total Charge (USD)",
            "type": "string",
            "description": "Optional hard spending cap in USD for this run (e.g. '0.50'). Billing stops cleanly before exceeding this ceiling."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}