YouTube

This extractor uses the YouTube Data API to extract data about your YouTube channels or your YouTube activity.

For analytics and reporting, use the Google Analytics extractor or the YouTube Reporting extractor.

Create New Configuration

Find YouTube in the list of extractors, and create a new configuration. Name it.

Screenshot - Create configuration

Authorize Account to be redirected to Google, and authorize the extractor to access your YouTube data.

Configuration

Either choose one of the predefined templates, or define your own configuration directly using the JSON editor. The extractor runs on Generic Extractor.

A simple example is getting info about your own channel. The configuration looks like this:

{
  "jobs": [
    {
      "endpoint": "channels?mine=true&part=snippet,contentDetails,statistics",
      "dataType": "channels",
      "dataField": "items"
    }
  ]
}

If you don’t know how to find out the correct endpoint, look to YouTube’s API documentation and browse for, e.g., Channels: list. Choose one of the predefined use cases, for instance, list (my channel), and switch the example to CURL. The endpoint is under # HTTP URL: where you omit the base url https://www.googleapis.com/youtube/v3/.

Screenshot - Create configuration

You can use other Generic Extractor’s functionality too, including nesting. This example downloads your channel, iterates through its playlists and gets all their videos:

{
  "jobs": [
    {
      "endpoint": "channels?mine=true&part=id,snippet",
      "dataType": "channels",
      "dataField": "items",
      "children": [
        {
          "endpoint": "playlists?channelId={channelId}&part=id,snippet",
          "dataType": "playlists",
          "dataField": "items",
          "placeholders": {
            "channelId": "id"
          },
          "children": [
            {
              "endpoint": "playlistItems?playlistId={playlistId}&part=id,snippet",
              "dataType": "videos",
              "dataField": "items",
              "placeholders": {
                "playlistId": "id"
              }
            }
          ]
        }
      ]
    }
  ]
}