List channel videos
curl --request POST \
--url https://app.dumplingai.com/api/v1/youtube/channel-videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channelId": "UCxcTeAKWJca6XyJ37_ZoKIQ"
}
'import requests
url = "https://app.dumplingai.com/api/v1/youtube/channel-videos"
payload = { "channelId": "UCxcTeAKWJca6XyJ37_ZoKIQ" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelId: 'UCxcTeAKWJca6XyJ37_ZoKIQ'})
};
fetch('https://app.dumplingai.com/api/v1/youtube/channel-videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.dumplingai.com/api/v1/youtube/channel-videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => 'UCxcTeAKWJca6XyJ37_ZoKIQ'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.dumplingai.com/api/v1/youtube/channel-videos"
payload := strings.NewReader("{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.dumplingai.com/api/v1/youtube/channel-videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dumplingai.com/api/v1/youtube/channel-videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"videos": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"type": "<string>",
"publishDateText": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"viewCountText": "<string>",
"viewCountInt": 123,
"lengthText": "<string>",
"channel": {}
}
],
"shorts": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"type": "<string>",
"publishDateText": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"viewCountText": "<string>",
"viewCountInt": 123,
"lengthText": "<string>",
"channel": {}
}
],
"continuationToken": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Data APIs
Get YouTube Channel Videos
Return uploaded long-form videos for a channel with pagination support.
POST
/
api
/
v1
/
youtube
/
channel-videos
List channel videos
curl --request POST \
--url https://app.dumplingai.com/api/v1/youtube/channel-videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channelId": "UCxcTeAKWJca6XyJ37_ZoKIQ"
}
'import requests
url = "https://app.dumplingai.com/api/v1/youtube/channel-videos"
payload = { "channelId": "UCxcTeAKWJca6XyJ37_ZoKIQ" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelId: 'UCxcTeAKWJca6XyJ37_ZoKIQ'})
};
fetch('https://app.dumplingai.com/api/v1/youtube/channel-videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.dumplingai.com/api/v1/youtube/channel-videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => 'UCxcTeAKWJca6XyJ37_ZoKIQ'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.dumplingai.com/api/v1/youtube/channel-videos"
payload := strings.NewReader("{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.dumplingai.com/api/v1/youtube/channel-videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dumplingai.com/api/v1/youtube/channel-videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"UCxcTeAKWJca6XyJ37_ZoKIQ\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"videos": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"type": "<string>",
"publishDateText": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"viewCountText": "<string>",
"viewCountInt": 123,
"lengthText": "<string>",
"channel": {}
}
],
"shorts": [
{
"id": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"type": "<string>",
"publishDateText": "<string>",
"publishDate": "2023-11-07T05:31:56Z",
"viewCountText": "<string>",
"viewCountInt": 123,
"lengthText": "<string>",
"channel": {}
}
],
"continuationToken": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Description
This endpoint retrieves all videos from a YouTube channel with detailed information including views, publish dates, and metadata. Supports pagination for channels with many videos.Endpoint
POST https://app.dumplingai.com/api/v1/youtube/channel-videos
Headers
- Content-Type:
application/json - Authorization: Bearer
<API_KEY>(required)
Request Body
{
"channelId": "string", // Optional. YouTube channel ID (e.g., "UCxcTeAKWJca6XyJ37_ZoKIQ")
"handle": "string", // Optional. YouTube channel handle (e.g., "@channelname")
"sort": "string", // Optional. Sort order: "latest" or "popular". Default: "latest"
"continuationToken": "string", // Optional. Token for pagination from previous response
"includeExtras": "string" // Optional. Include like/comment counts and descriptions (slower response)
}
channelId or handle is required.
Accepted Values for sort
| Value | Description |
|---|---|
| latest | Sort by most recently published |
| popular | Sort by most popular (views/engagement) |
Responses
Success (200)
Returns an array of videos from the specified channel with pagination support.{
"videos": [
{
"type": "video",
"id": "5EWaxmWgQMI",
"url": "https://www.youtube.com/watch?v=5EWaxmWgQMI",
"title": "Russell Wilson Hopes To Finish Career As A Steeler",
"description": "Welcome to The Pat McAfee Show LIVE...", // Only if includeExtras is enabled
"thumbnail": "https://i.ytimg.com/vi/5EWaxmWgQMI/hqdefault.jpg",
"channel": {
"title": "The Pat McAfee Show",
"thumbnail": "https://yt3.googleusercontent.com/..."
},
"viewCountText": "110,447 views",
"viewCountInt": 110447,
"publishedTimeText": "9 days ago",
"publishedTime": "2025-01-23T22:48:53.914Z",
"lengthText": "37:25",
"lengthSeconds": 2245,
"badges": ["4K", "CC"]
}
],
"continuationToken": "4qmFsgLlFhIYV..." // Present if more videos are available
}
- Content-Type: application/json
- X-RateLimit-Limit: The rate limit for the user
- X-RateLimit-Remaining: The remaining number of requests for the user
Bad Request (400)
Returned if the request is invalid or missing required parameters.{
"error": "At least one parameter is required: 'channelId' or 'handle'"
}
Bad Gateway (502)
Returned if the external service is unavailable or returns invalid data.{
"error": "Failed to retrieve YouTube channel videos"
}
Internal Server Error (500)
Returned if there’s an unexpected server error.{
"error": "An unexpected server error occurred while fetching YouTube channel videos"
}
Example Request
curl -X POST https://app.dumplingai.com/api/v1/youtube/channel-videos \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"handle": "@ThePatMcAfeeShow",
"sort": "latest",
"includeExtras": "true"
}'
Example Response
{
"videos": [
{
"type": "video",
"id": "5EWaxmWgQMI",
"url": "https://www.youtube.com/watch?v=5EWaxmWgQMI",
"title": "Russell Wilson Hopes To Finish Career As A Steeler, Reflects On NFL Career With Pat McAfee",
"description": "Welcome to The Pat McAfee Show LIVE from Noon-3PM EST Mon-Fri...",
"thumbnail": "https://i.ytimg.com/vi/5EWaxmWgQMI/hqdefault.jpg",
"channel": {
"title": "",
"thumbnail": null
},
"viewCountText": "110,447 views",
"viewCountInt": 110447,
"publishedTimeText": "9 days ago",
"publishedTime": "2025-01-23T22:48:53.914Z",
"lengthText": "37:25",
"lengthSeconds": 2245,
"badges": []
}
],
"continuationToken": "4qmFsgLlFhIYV..."
}
Notes
- Either
channelIdorhandlemust be provided - Channel handles should include the @ symbol (e.g., “@channelname”)
- The
continuationTokenfrom the response can be used to fetch additional videos - Setting
includeExtrasto “true” will include video descriptions and engagement metrics but may slow down the response - This endpoint uses 10 credits per request
- Results are paginated - use the
continuationTokento retrieve additional pages
Rate Limiting
Rate limit headers (X-RateLimit-Limit and X-RateLimit-Remaining) are included in the response to indicate the user’s current rate limit status.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Fetch videos from a channel with optional pagination. Supply either channelId or handle.
Token from a previous response for pagination.
Sort order for the result set.
Available options:
latest, popular, newest Optional upstream flag forwarded to the provider to request additional metadata.
Optional identifier describing where the API request originated.
Available options:
API, WEB, MAKE_DOT_COM, ZAPIER, N8N, PLAYGROUND, DEFAULT_AUTOMATION, AGENT_PREVIEW, AGENT_LIVE, AUTOPILOT, STUDIO