YouTube Channel Scraper API

Fetch per-video metadata from a channel's tabs using a handle or full URL. Supported links include /videos, /shorts, and /streams.

Introduction

This service scrapes a YouTube channel's videos page and returns the list of video IDs present in the initial HTML payload.

Base URL

All API requests should be made to:

http://localhost:7857

Endpoints

Get Channel Videos

GET
/channel_videos?channel={handle_or_url}

Description

Scrapes the specified channel's /videos page and returns per-video metadata.

Query Parameters

Response

Returns a JSON object containing channel info and an array of videos with id, title, length, thumbnail, views, and published date.

Example Request:
GET /channel_videos?channel=@FotbalKunovice
Example Response:
{
  "channel": "@FotbalKunovice",
  "channel_url": "https://www.youtube.com/@FotbalKunovice/videos",
  "subscribers_text": "131 odběratelů",
  "subscribers": 131,
  "videos": [
    {
      "video_id": "Eze9AtRrvN4",
      "title": "Jiří Chramcov po Frýdku",
      "length": "4:21",
      "thumbnail_url": "https://i.ytimg.com/vi/Eze9AtRrvN4/hqdefault.jpg",
      "views_text": "34 views",
      "views": 34,
      "published_text": "1 day ago",
      "published_date": "2025-09-08"
    }
  ]
}

Features