{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Scraper – All-in-One, No Login",
    "description": "Scrape YouTube channels, videos, shorts, live streams, playlists, comments, replies, hashtags and search results. Paste channel handles, links or keywords, up to 1,000 targets per run. From $0.50 per 1,000 results, no API key or quota, no login. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "ndTeQXZlo3GN35u2a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/socialcrawler~youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-socialcrawler-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/socialcrawler~youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-socialcrawler-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/socialcrawler~youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-socialcrawler-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",
        "required": [
          "endpoint",
          "targets"
        ],
        "properties": {
          "endpoint": {
            "title": "What to scrape",
            "enum": [
              "channel",
              "videos",
              "shorts",
              "live",
              "playlists",
              "channels",
              "playlist",
              "video",
              "comments",
              "replies",
              "hashtag",
              "search",
              "creators",
              "full"
            ],
            "type": "string",
            "description": "Pick the kind of data. \"Full channel pull: channel + videos + comments + replies\" gets a whole profile in one run (see the Deep mode settings). Discovery endpoints (hashtag, search, creators) are billed as Discovery results. Free Apify plan: demo of 5 runs per month, up to 10 results each. Paid plans have no run limit.",
            "default": "channel"
          },
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "One entry per line. What to enter depends on \"What to scrape\": Channel details: @MrBeast; Videos of a channel: @MrBeast; Shorts of a channel: @MrBeast; Live streams of a channel: @NASA; Playlists of a channel: @MrBeast; Related / featured channels: @MrBeast; Videos in a playlist: https://www.youtube.com/playlist?list=PLoSWVnSA9vG8hI-SUpAimvYJrPh-PRRvp; Single video: https://www.youtube.com/watch?v=dQw4w9WgXcQ; Comments on a video: dQw4w9WgXcQ; Replies on a video: dQw4w9WgXcQ; Videos of a hashtag: #shorts; Search videos: how to cook rice; Find creators: cooking tutorials. Links, @handles, #hashtags, IDs and free search text are all accepted where they make sense. Up to 1,000 per run; duplicates and invalid entries are skipped and never charged. Put many targets in one run to keep the start fee tiny.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Max results per target",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows per target for list endpoints (minimum 10; ignored for single-item endpoints, which return one row). You pay per result delivered.",
            "default": 50
          },
          "maxTotalResults": {
            "title": "Max results in total (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results across all targets. Free Apify plan: demo of 5 runs per month, up to 10 results each. Paid plans have no run limit."
          },
          "uploaded": {
            "title": "Uploaded (search filter)",
            "enum": [
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only for \"Search videos\". Keeps videos uploaded within this period. It is a filter, not a sort order."
          },
          "postsPerProfile": {
            "title": "Videos per channel (deep mode)",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Deep mode only: how many latest items to fetch for each profile (minimum 10).",
            "default": 10
          },
          "commentsPerPost": {
            "title": "Comments per post (deep mode)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Deep mode only: comments to fetch under each post (0 = skip comments and replies, otherwise minimum 10). Posts that have no comments are skipped.",
            "default": 20
          },
          "repliesPerComment": {
            "title": "Replies per comment (deep mode)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Deep mode only: replies to fetch under each comment. 0 = skip replies.",
            "default": 0
          },
          "timeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 30,
            "maximum": 3500,
            "type": "integer",
            "description": "Give up on anything not finished after this long. Each target also has its own 10-minute limit. Maximum 3500.",
            "default": 3500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}