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

YouTube Channel Live Streams

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

List a YouTube channel's live and past-live streams by handle or channel ID with cursor pagination (title, views, length, publish time).

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

प्लेग्राउंड

इनपुट
Continuation token from a previous response for pagination.
YouTube channel handle.
YouTube channel ID.
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `lengthText`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a live stream that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
आउटपुटतैयार

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

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

API README

YouTube Channel Live Streams API

Returns a list of a YouTube channel's live and past-live streams, with title, view count, length, and a relative publish time. Pass a channel handle such as @IShowSpeed or a channelId.

Use cases

  • Track how often a creator streams and how long each stream runs.
  • Rank a channel's past live streams by view count to find its biggest broadcasts.
  • Collect stream titles and thumbnails for a channel archive or dashboard.
  • Feed stream video IDs into a video details or transcript lookup.

Request

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

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

Parameters

NameTypeRequiredDescription
channelIdstringNoYouTube channel ID.
cursorstringNoContinuation token from a previous response for pagination.
handlestringNoYouTube channel handle.
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example lengthText, and it is served only by a source that returns every one

Example response

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

{
  "data": {
    "lives": [
      {
        "id": "IkhjzYsvCmw",
        "image": "https://i.ytimg.com/vi/IkhjzYsvCmw/hq720.jpg",
        "lengthText": "2:00:20",
        "publishedTime": "Streamed 2d ago",
        "title": "HALLOWEEN SPIDER-MAN SPEED-VERSE IRL STREAM 🎃🕷",
        "url": "https://www.youtube.com/watch?v=IkhjzYsvCmw",
        "views": 3700000
      }
    ],
    "nextCursor": "cur_iqioDVdrk2HZB14YevFECQ"
  },
  "found": true
}

Response fields

FieldMeaning
data.lives[].idYouTube video ID of the live stream.
data.lives[].titleTitle of the stream.
data.lives[].urlFull watch URL for the stream.
data.lives[].imageThumbnail image URL.
data.lives[].viewsView count as a number.
data.lives[].lengthTextStream length as text, for example 2:00:20.
data.lives[].publishedTimeRelative publish label such as Streamed 2d ago. It is not an exact timestamp.
data.nextCursorToken for the next page of streams. Send it as cursor in the next request.
foundtrue when the channel lookup returned a result.

Notes

  • Send either handle (with the leading @) or channelId.
  • For the next page, pass data.nextCursor as cursor in the same request.
  • Set requireFields to ["lengthText"] only if you need lengthText on every stream. This can change which source serves the call and its price.
  • To get more detail on a stream, pass its id to YouTube Video Details or YouTube Video Transcript.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

और जानें

संबंधित APIs

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

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

प्रश्न

FAQ

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

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

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

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

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

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

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

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

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

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