Skip to main content
POST
/
api
/
youtube
/
channel
/
streams
/youtube/channel/streams
curl --request POST \
  --url https://api.anysite.io/api/youtube/channel/streams \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "channel": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "title": "<string>",
    "url": "<string>",
    "@type": "@youtube_channel_stream",
    "author": {
      "id": "<string>",
      "@type": "@youtube_channel_stream_author",
      "name": "<string>",
      "alias": "<string>",
      "url": "<string>"
    },
    "duration_seconds": 123,
    "view_count": 123,
    "concurrent_viewer_count": 123,
    "published_at": 123,
    "is_live": false,
    "image": "<string>"
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.anysite.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
channel
string
required

YouTube channel URL, alias, or ID

Minimum string length: 1
Examples:

"@LofiGirl"

"https://www.youtube.com/@LofiGirl"

"UCSJ4gkVC6NrvII8umztf0Ow"

count
integer
required

Max number of streams to fetch

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
title
string
required
url
string
required
@type
string
default:@youtube_channel_stream
author
YoutubeChannelStreamAuthor · object
duration_seconds
integer | null
view_count
integer | null
concurrent_viewer_count
integer | null
published_at
integer | null
is_live
boolean
default:false
image
string | null