Pull API \ Retrieve the playlists of a YouTube user

Resource/URI HTTP GET
Facebook · Retrieve a user's likes /pull/identities/<identity_token>/facebook/likes.json Retrieve
Likes
Facebook · Retrieve a user's posts /pull/identities/<identity_token>/facebook/posts.json Retrieve
Posts
Facebook · Retrieve a user's pages /pull/identities/<identity_token>/facebook/pages.json Retrieve
Pages
Facebook · Retrieve a user's page posts /pull/identities/<identity_token>/facebook/page/<pageid>/posts.json Retrieve
Page Posts
LinkedIn · Retrieve a user's companies /pull/identities/<identity_token>/linkedin/companies.json Retrieve
Companies
LinkedIn · Retrieve a user's company posts /pull/identities/<identity_token>/linkedin/company/<companyid>/posts.json Retrieve
Company Posts
Pinterest · Retrieve a user's boards /pull/identities/<identity_token>/pinterest/boards.json Retrieve
Boards
Steam · Retrieve a user's games /pull/identities/<identity_token>/steam/games.json Retrieve
Games
Twitter · Retrieve a user's tweets /pull/identities/<identity_token>/twitter/tweets.json Retrieve
Tweets
YouTube · Retrieve a user's channels /pull/identities/<identity_token>/youtube/channels.json Retrieve
Channels
YouTube · Retrieve a user's playlists /pull/identities/<identity_token>/youtube/playlists.json Retrieve
Playlists
YouTube · Retrieve a user's playlist videos /pull/identities/<identity_token>/youtube/playlist/<playlist_id>/videos.json Retrieve
Playlist Videos

Workflow

Request: the code to send to the API

Send a GET request to the endpoint /pull/identities/<identity_token>/youtube/playlists.json to retrieve the playlists of a YouTube user. The <identity_token> is obtained whenever one of your users connects using a social network account.

To order to use this endpoint one of the permissions Manage Account or View Account must be enabled in the YouTube settings in your OneAll account and the user must have granted that permission when he logged in with YouTube. You can upload new videos on behalf of a user with our Push API.

The following URL parameters can optionally be used with this endpoint.

URL Parameter Description
channel_id
string
If specified, only the specified channel's playlists are returned.
The list of channels can be retrieved using our Pull API.
Default: empty

Result: the code returned by the API

Response Example

{
  "response": {
    "request": {
      "date": "Fri, 26 Apr 2019 16:40:36 +0200",
      "resource": "/pull/identities/9b49bebd-6daf-4ab9-ac89-bf350120e914/youtube/playlists.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "count": 2,
        "entries": [
          {
            "id": "GGGGGbwtEAAAAnyt9DXhcT0mrk67QgJec1",
            "location": "https://www.youtube.com/playlist?list=GGGGGbwtEAAAAnyt9DXhcT0mrk67QgJec1",
            "name": "PlayList One",
            "image": "http://s.ytimg.com/yts/img/no_thumbnail-vfl4t3-4R.jpg",
            "thumbnail": "http://s.ytimg.com/yts/img/no_thumbnail-vfl4t3-4R.jpg",
            "channel": {
              "id": "UC0b0B1J4555555P6UG5xVjg",
              "location": "https://www.youtube.com/channel/UC0b0B1J4555555P6UG5xVjg",
              "name": "My Channel"
            }
          },
          {
            "id": "AAAAAAAtEWTLccZoR8bfFVIkVC54ZtlaJ2",
            "location": "https://www.youtube.com/playlist?list=AAAAAAAtEWTLccZoR8bfFVIkVC54ZtlaJ2",
            "name": "PlayList Two",
            "image": "http://s.ytimg.com/yts/img/no_thumbnail-vfl4t3-4R.jpg",
            "thumbnail": "http://s.ytimg.com/yts/img/no_thumbnail-vfl4t3-4R.jpg",
            "channel": {
              "id": "UC0b0B1J4555555P6UG5xVjg",
              "location": "https://www.youtube.com/channel/UC0b0B1J4555555P6UG5xVjg",
              "name": "My Channel"
            }
          }
        ]
      }
    }
  }
}

User Contributed Notes