{
  "openapi": "3.0.1",
  "info": {
    "title": "🔥YouTube Video & Comment Scraper (SEO, Titles) - ALMOST FREE",
    "description": "Scrape YouTube videos, titles, descriptions, views, likes, comments, and channel data. Ideal for YouTube SEO research, competitor analysis, trend discovery, and automation workflows. Free plan available – no credit card required.",
    "version": "1.2",
    "x-build-id": "jvc80fIcD8QnK1Z19"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nourishing_courier~youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nourishing_courier-youtube-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/nourishing_courier~youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nourishing_courier-youtube-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/nourishing_courier~youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nourishing_courier-youtube-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Enter YouTube search queries to find videos. Works like YouTube's search bar. Add multiple terms to scrape different topics.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSearch": {
            "title": "Maximum videos per search term",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many regular videos to extract per search term. Set higher for comprehensive data collection.",
            "default": 2
          },
          "maxShortsPerSearch": {
            "title": "Maximum Shorts per search term",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many YouTube Shorts to extract. Shorts are vertical videos under 60 seconds.",
            "default": 0
          },
          "maxStreamsPerSearch": {
            "title": "Maximum streams per search term",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many live streams or past streams to extract per search.",
            "default": 0
          },
          "directUrls": {
            "title": "Direct YouTube URLs",
            "type": "array",
            "description": "Paste direct YouTube links: video URLs, channel URLs (@username or /channel/), playlist URLs, or search result pages. Mix different URL types.",
            "items": {
              "type": "string"
            }
          },
          "downloadSubtitles": {
            "title": "Download subtitles",
            "type": "boolean",
            "description": "Extract video transcripts and subtitles. Perfect for content repurposing, SEO research, and accessibility.",
            "default": false
          },
          "saveSubtitlesToKeyValueStore": {
            "title": "Save subtitles to key-value store",
            "type": "boolean",
            "description": "Store subtitles in Apify storage for later access via API. Useful for integrations and automation workflows.",
            "default": false
          },
          "subtitleLanguage": {
            "title": "Subtitle language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ru",
              "ja",
              "ko",
              "zh",
              "ar",
              "hi"
            ],
            "type": "string",
            "description": "Preferred language for transcripts. Falls back to available languages if preferred not found.",
            "default": "en"
          },
          "preferAutoGeneratedSubtitles": {
            "title": "Prefer auto-generated subtitles",
            "type": "boolean",
            "description": "Use YouTube's auto-generated captions instead of manual subtitles. Auto-generated available for most videos.",
            "default": false
          },
          "subtitleFormat": {
            "title": "Subtitle format",
            "enum": [
              "srt",
              "vtt",
              "xml",
              "text"
            ],
            "type": "string",
            "description": "Output format for transcripts. SRT for video editing, WebVTT for web, Plain Text for analysis.",
            "default": "srt"
          },
          "sortingOrder": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "date",
              "viewCount",
              "rating"
            ],
            "type": "string",
            "description": "How to sort search results. 'Upload date' for latest videos, 'View count' for most popular."
          },
          "dateFilter": {
            "title": "Upload date filter",
            "enum": [
              "",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only get videos uploaded within this time period. Great for finding fresh content."
          },
          "videoTypeFilter": {
            "title": "Content type filter",
            "enum": [
              "",
              "video",
              "movie"
            ],
            "type": "string",
            "description": "Filter by content type. WARNING: 'Video only' excludes Shorts and Streams from results - leave as 'Any type' if you want to collect those."
          },
          "lengthFilter": {
            "title": "Video duration filter",
            "enum": [
              "",
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Filter by video length. 'Long' is great for tutorials and courses."
          },
          "filterHD": {
            "title": "HD quality only",
            "type": "boolean",
            "description": "Only include HD (720p+) videos in results.",
            "default": false
          },
          "filterSubtitles": {
            "title": "Has subtitles/CC",
            "type": "boolean",
            "description": "Only include videos with subtitles or closed captions.",
            "default": false
          },
          "filterCreativeCommons": {
            "title": "Creative Commons license",
            "type": "boolean",
            "description": "Only include Creative Commons licensed videos (free to reuse).",
            "default": false
          },
          "filter3D": {
            "title": "3D videos",
            "type": "boolean",
            "description": "Only include 3D videos.",
            "default": false
          },
          "filterLive": {
            "title": "Live streams",
            "type": "boolean",
            "description": "Only include live streams (current or past).",
            "default": false
          },
          "filter4K": {
            "title": "4K Ultra HD",
            "type": "boolean",
            "description": "Only include 4K (2160p) videos.",
            "default": false
          },
          "filter360": {
            "title": "360° videos",
            "type": "boolean",
            "description": "Only include 360-degree immersive videos.",
            "default": false
          },
          "filterHDR": {
            "title": "HDR videos",
            "type": "boolean",
            "description": "Only include HDR (High Dynamic Range) videos.",
            "default": false
          },
          "filterVR180": {
            "title": "VR180 videos",
            "type": "boolean",
            "description": "Only include VR180 virtual reality videos.",
            "default": false
          },
          "publishedAfter": {
            "title": "Videos published after",
            "type": "string",
            "description": "Only scrape videos uploaded after this date. Format: YYYY-MM-DD. Works with channel URLs only."
          },
          "publishedBefore": {
            "title": "Videos published before",
            "type": "string",
            "description": "Only scrape videos uploaded before this date. Format: YYYY-MM-DD. Works with channel URLs only."
          },
          "channelSortBy": {
            "title": "Channel videos sort order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "How to sort videos when scraping a channel page."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify's residential proxies work best for YouTube. Uses automatic proxy rotation.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}