{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Keywords Scraper",
    "description": "YouTube Keywords Scraper SD - YouTube Keywords Scraper is a keyword research tool that extracts YouTube search suggestions (autocomplete keywords) with rank, alphabet and question expansion, hashtags and top videos. No login.",
    "version": "1.0",
    "x-build-id": "OGaJfeJtooyzr7Ggy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~youtube-keywords-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-youtube-keywords-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/neuro-scraper~youtube-keywords-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-youtube-keywords-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/neuro-scraper~youtube-keywords-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-youtube-keywords-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": {
          "keywords": {
            "title": "Seed keywords",
            "type": "array",
            "description": "One seed per line, e.g. \"python tutorial\", \"home workout\". Limits apply per seed.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Seed keyword (single, API compatibility)",
            "type": "string",
            "description": "One seed as plain text - the name other keyword tools use. Added to the seed keywords above."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code (hl), e.g. en, de, es, hi. Suggestions differ per language.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country code (gl), e.g. US, GB, DE, IN.",
            "default": "US"
          },
          "alphabetExpansion": {
            "title": "A-Z expansion",
            "type": "boolean",
            "description": "Also ask for \"seed a\" ... \"seed z\" and \"seed 0\" ... \"seed 9\" (36 more queries per seed).",
            "default": false
          },
          "modifiers": {
            "title": "Question and modifier expansion",
            "type": "boolean",
            "description": "Also ask for \"how seed\", \"best seed\", \"seed for\", \"seed vs\", \"seed tutorial\" and similar (28 more queries per seed).",
            "default": false
          },
          "depth": {
            "title": "Depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = only the queries above. 1-3 = send every new suggestion again as a query, that many rounds.",
            "default": 0
          },
          "maxQueriesPerKeyword": {
            "title": "Max keywords per seed",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each seed after this many suggestion rows.",
            "default": 50
          },
          "searchHashtags": {
            "title": "Hashtag suggestions",
            "type": "boolean",
            "description": "Add the hashtag suggestions for \"#seed\" (e.g. #fitnessmotivation).",
            "default": false
          },
          "includeTopVideos": {
            "title": "Top videos per seed",
            "type": "boolean",
            "description": "Add the top videos of each seed's search: title, channel, views, age, link.",
            "default": false
          },
          "maxVideosPerKeyword": {
            "title": "Max videos per seed",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top videos per seed (the first results page, about 20). Empty = 10."
          },
          "topVideosPerKeyword": {
            "title": "Max videos per seed (alias)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Same as maxVideosPerKeyword (kept as an alias; maxVideosPerKeyword wins when both are set)."
          },
          "removeDuplicates": {
            "title": "Remove duplicate suggestions",
            "type": "boolean",
            "description": "Keep each suggestion once per seed.",
            "default": true
          },
          "seedVideoUrl": {
            "title": "Seed videos (optional)",
            "type": "array",
            "description": "YouTube video links: the creator's own tags (and the title) of each video become extra seed keywords.",
            "items": {
              "type": "string"
            }
          },
          "maxSeedVideoKeywords": {
            "title": "Keywords per seed video",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of each seed video's tags are used as seeds.",
            "default": 10
          },
          "includeEndpoints": {
            "title": "What to collect",
            "type": "array",
            "description": "Choose the row kinds: suggest = search suggestions, hashtag = hashtag suggestions, search = top videos, related = the related searches YouTube shows with the results. Empty = suggestions plus the switches above.",
            "items": {
              "type": "string",
              "enum": [
                "suggest",
                "hashtag",
                "search",
                "related"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Parallel queries",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many suggestion queries run at the same time.",
            "default": 5
          },
          "pacingMs": {
            "title": "Pause between requests (ms, 0 = automatic)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "A fixed pause before each request in milliseconds. 0 = a short automatic pause (0.3-0.9 s).",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many rows.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is recommended and is the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}