Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

YouTube Channel Videos

API दस्तावेज़
https://api.sandbase.ai/v1/api/youtube/channel-videos

Get public videos from a YouTube channel, with optional cursor-based pagination. Use it to browse a channel's uploads and continue through additional result pages.

मूल्य
$0.014286USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
The unique identifier for a YouTube channel.
The cursor for pagination.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

YouTube Channel Videos API

Returns a list of public videos from a YouTube channel, plus basic channel details. It needs a channelId and accepts an optional cursor to fetch the next page.

Use cases

  • Build a list of a channel's recent uploads with titles, durations and links.
  • Track view counts on a creator's latest videos.
  • Collect video_id values to look up details, comments or transcripts for each video.
  • Download thumbnails to show a channel's videos in a dashboard.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/channel-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
channelIdstringYesThe unique identifier for a YouTube channel.
cursorstringNoThe cursor for pagination.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel": {
    "avatar": "https://yt3.googleusercontent.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm…",
    "description": "Rick Astley’s Swinging Christmas 2026 🎄 Dec 9th, Royal Albert Hall. SOLD OUT ❤️\n",
    "handle_url": "http://www.youtube.com/@RickAstleyYT",
    "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
    "is_family_safe": true,
    "is_verified": false,
    "keywords": "Official Rick Astley \"rick astley\" \"never gonna give you up\" \"the best of me\" \"b…",
    "name": "Rick Astley",
    "rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCuAXFkgsw1L7xaCfnd5JJOw",
    "url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw"
  },
  "continuation_token": "4qmFsgLZ…",
  "videos": [
    {
      "description": "",
      "duration": "3:51",
      "duration_accessibility": "3分钟51秒钟",
      "is_live": false,
      "is_verified": false,
      "moving_thumbnail": "",
      "playback_url": "https://rr6---sn-bvvbaxivnuxq5uu-q4fz.googlevideo.com/initplayback?source=youtub…",
      "published_time": "4个月前",
      "short_view_count": "11万次观看",
      "thumbnail": "https://i.ytimg.com/vi/PXC_PYeB6F8/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARU…",
      "thumbnails": [
        {
          "height": 202,
          "url": "https://i.ytimg.com/vi/PXC_PYeB6F8/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARU…",
          "width": 360
        }
      ],
      "title": "Rick Astley - Angels On My Side (Live at The O2, London, April 2026)"
    }
  ]
}

Response fields

FieldMeaning
channel.id / channel.nameThe channel ID and display name.
channel.url / channel.handle_url / channel.rss_urlLinks to the channel page, its @handle page and its RSS feed of uploads.
channel.description / channel.keywordsThe channel's description text and keyword string.
videos[].video_id / videos[].urlThe video ID and the full watch link.
videos[].titleThe video title.
videos[].durationVideo length as text, for example 3:51.
videos[].view_count / videos[].short_view_countView count as display text, not a number. The text follows the language of the response, so parse it with care.
videos[].published_timeRelative publish time as text, for example "4个月前" (4 months ago). It is not an exact date.
videos[].thumbnail / videos[].thumbnails[]The main thumbnail URL and a list of thumbnail URLs with width and height.
continuation_tokenToken for the next page of videos. Pass it as cursor in the next request.

Notes

  • Pass continuation_token from the response as cursor to get the next page.
  • The channelId starts with UC, as in UCuAXFkgsw1L7xaCfnd5JJOw. The channel url in the response shows where it appears.
  • Use a video_id from this response with YouTube Video Details to get more about one video.
  • For short-form uploads, call YouTube Channel Shorts. For live streams, call YouTube Channel Live Streams.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
YouTube$0.014286 प्रति कॉलJSON
YouTube$0.00045 प्रति कॉल सेJSON
YouTube$0.0012 प्रति कॉल सेJSON
YouTube$0.0012 प्रति कॉल सेJSON
YouTube$0.0012 प्रति कॉल सेJSON
YouTube$0.014286 प्रति कॉलJSON

गाइड्स:Best YouTube API in 2026: Pricing Compared

प्रश्न

FAQ

YouTube Channel Videos API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/youtube/channel-videos पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

YouTube Channel Videos API की लागत कितनी है?

$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

YouTube Channel Videos API कौन-से parameters स्वीकार करती है?

आवश्यक: channelId (string)। वैकल्पिक: cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

YouTube Channel Videos API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक YouTube developer account या API key चाहिए?

नहीं। YouTube Channel Videos SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से YouTube API access के लिए आवेदन करने की आवश्यकता नहीं है।