YOUTUBE API

Channel Lives

Retrieve channel lives from YouTube with a single API request.

GET/api/data/v1/youtube/channel/lives
1credit base cost

Request parameters

Up to 1 credit

YouTube channel ID

YouTube channel handle

Continuation token to get more lives. Get 'continuationToken' from previous response.

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/youtube/channel/lives?handle=IShowSpeed' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "lives": [
    {
      "type": "live",
      "id": "JpVtso3S9rM",
      "url": "https://www.youtube.com/watch?v=JpVtso3S9rM",
      "title": "IShowSpeed Live Stream",
      "thumbnail": "https://i.ytimg.com/vi/JpVtso3S9rM/hqdefault.jpg",
      "channel": {
        "id": null,
        "title": null,
        "handle": null,
        "thumbnail": null
      },
      "viewCountText": "1.2M views",
      "viewCountInt": 1200000,
      "publishedTimeText": "Streamed 2 days ago",
      "lengthText": "2:14:52",
      "lengthSeconds": 8092,
      "badges": []
    }
  ],
  "continuationToken": "4qmFsgLlFhIYV....",
  "credits_charged": 1,
  "credits_remaining": 1000,
  "request_id": "00000000-0000-4000-8000-000000000000"
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "lives": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "channel": {
            "type": "object",
            "properties": {
              "id": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "handle": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              },
              "thumbnail": {
                "type": [
                  "string",
                  "object",
                  "array",
                  "number",
                  "boolean",
                  "null"
                ]
              }
            }
          },
          "viewCountText": {
            "type": "string"
          },
          "viewCountInt": {
            "type": "integer"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "lengthText": {
            "type": "string"
          },
          "lengthSeconds": {
            "type": "integer"
          },
          "badges": {
            "type": "array"
          }
        }
      }
    },
    "continuationToken": {
      "type": "string"
    },
    "credits_charged": {
      "type": "integer",
      "minimum": 0,
      "description": "FetchGoblin credits charged for this request."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "Your FetchGoblin credit balance after this request."
    },
    "request_id": {
      "type": "string",
      "format": "uuid",
      "description": "FetchGoblin request identifier."
    }
  }
}