API Docs

v1.0.0Latest
GET

Get Channel Videos

Retrieve channel videos for youtube.

Endpoint
GET /ask/yt/channel/videos?channelId={channelId}&sortBy={sortBy}
Request Query Parameters
Query parameters for fetching channel videos
Field
Type
Required
Description
channelId
string
Yes
Channel ID to fetch videos for
sortBy
string
No
Sort order for the videos (dateAsc | dateDesc | popular)
Example Request
curl -X GET "https://api.gateway.walee.ai/api/ask/yt/channel/videos?channelId={channelId}&sortBy={sortBy}" \
  -H "x-api-key: YOUR_API_KEY"
Success Response
Successful channel videos retrieval
200OK
{
"success": true,
"message": "YouTube channel videos fetched successfully",
"payload": {
"success": true,
"videos_list": {
"videos": [
{
"video_id": "string",
"thumbnail": "string",
"title": "string",
"time": "string",
"published_ago": "string",
"views": 0
}
]
}
}
}
Error Response
Error retrieving channel videos
400Bad Request
{
  "success": false,
  "message": "Failed to fetch channel videos"
  "payload": {}
}
Error Response
Unexpected error occurred
500Internal Server Error
{
  "success": false,
  "message": "Something went wrong. Please try again later."
  "payload": {}
}