Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

YouTube Channel Live Streams

Documentazione 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).

Prezzo
Da $0.0012USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 4 opzionali

Playground

Input
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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
YouTubeDa $0.0012 per chiamataJSON
YouTubeDa $0.00045 per chiamataJSON
YouTubeDa $0.0012 per chiamataJSON
YouTubeDa $0.0012 per chiamataJSON
YouTube$0.014286 per chiamataJSON
YouTube$0.014286 per chiamataJSON

Guide:Best YouTube API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API YouTube Channel Live Streams?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/channel-lives con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API YouTube Channel Live Streams?

A partire da $0.0012 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API YouTube Channel Live Streams?

Nessun parametro richiesto. Facoltativi: cursor (string), handle (string), channelId (string) e requireFields (array). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API YouTube Channel Live Streams?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API YouTube?

No. YouTube Channel Live Streams funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API YouTube.