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

Authorizations

access-token
string
header
required

Headers

access-token
string
required

Body

application/json
channel
string
required

YouTube channel URL, alias, or ID

Examples:

"@phenomenal_es"

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

"UCPecmSzXAUQPUwF-NmYyWLQ"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
count
integer
default:30

Max number of videos to fetch

Required range: 1 <= x <= 1000

Response

Successful Response

id
string
required
title
string
required
url
string
required
@type
string
default:YoutubeChannelVideo
author
YoutubeChannelVideoAuthor · object
duration_seconds
integer | null
view_count
integer | null
published_at
integer | null
image
string | null