Identity API \ YouTube \ Read the videos of an identity PHP SDK

Resource/URI - Common GET POST PUT DELETE
Identities /identities.json List all identities
Identity /identities/<identity_token>.json Read identity details Delete identity
Identity /identities/<identity_token>/link.json ReLink identity
Identity /identities/<identity_token>/synchronize.json Synchronize identity
Identity /identities/<identity_token>/contacts.json Read identity contacts
Resource/URI - Provider Specific Complete Plus Data GET POST PUT DELETE
Steam Games /identities/<identity_token>/steam/games.json List all Steam games
YouTube Videos /identities/<identity_token>/youtube/videos.json List all YouTube videos
Facebook Posts /identities/<identity_token>/facebook/posts.json List all Facebook posts

Workflow

Request: the code to send to the API

Send a GET request to the resource /identities/<identity_token>/youtube/videos.json to retrieve all YouTube videos of an identity. The <identity_token> has to be replaced by the unique token of an existing identity.

This endpoint has been deprecated and might be removed in the future. Please use the Pull API instead.

Result: the code returned by the API

The API returns a list of all YouTube videos of the corresponding identity. The results of this endpoint are cached and updated once per day.

Example Resultset

{
  "response": {
    "request": {
      "date": "Tue, 21 Mar 2017 11:17:24  0100",
      "resource": "/identities/78947e24-db24-452d-b076-27f2a80f299d/youtube/videos.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "cache": {
          "has_been_used": true,
          "date_last_update": "Thu, 01 Jan 1970 01:00:00  0100",
          "date_next_update": "Fri, 02 Jan 1970 01:00:00  0100"
        },
        "youtube_videos": {
          "pagination": {
            "current_page": 1,
            "total_pages": 1,
            "entries_per_page": 250,
            "total_entries": 2,
            "order":{
              "field": "position",
              "direction": "asc"
            }
          },
          "count": 2,
          "entries": [
            {
              "name": "My First Video",
              "provider_videoid": "zzxxaabbccd",
              "date_creation": "Tue, 21 Mar 2017 09:12:38 +0100",
              "description": "Description of my first video",
              "position": "0",
              "video_url": "https://www.youtube.com/watch?v=zzxxaabbccd",
              "thumbnail_url": "https://i9.ytimg.com\/vi/zzxxaabbccd\/default.jpg?sqp=CNi_w8YF&rs=AOn4CLCvp15BrGWg8MpMkmCnrwrlC-pkXQ",
              "picture_url": "https://i9.ytimg.com/vi/zzxxaabbccd\/maxresdefault.jpg?sqp=CNi_w8YF&rs=AOn4CLBNlJEotOzeYVd1axwfZr0ZJUCfZA",
              "youtube_playlist": {
                "name": "uploads",
                "provider_channelid": "UC_12345678912345678912",
                "channel_url": "https://www.youtube.com/channel/UC_12345678912345678912",
                "provider_playlistid": "UU_ABCDEFGHIJKLMNOPQRSTU",
                "playlist_url": "https://www.youtube.com/playlist?list=UU_ABCDEFGHIJKLMNOPQRSTU"
              }
            },
            {
              "name": "My Second Video",
              "provider_videoid": "mmnnooppqqrr",
              "date_creation": "Tue, 21 Mar 2017 09:12:38 +0100",
              "description": "Description of my second video",
              "position": "1",
              "video_url": "https://www.youtube.com/watch?v=mmnnooppqqrr",
              "thumbnail_url": "https://i9.ytimg.com\/vi/mmnnooppqqrr\/default.jpg?sqp=CNi_w8YF&rs=AOn4CLCvp15BrGWg8MpMkmCnrwrlC-pkXQ",
              "picture_url": "https://i9.ytimg.com/vi/mmnnooppqqrr\/maxresdefault.jpg?sqp=CNi_w8YF&rs=AOn4CLBNlJEotOzeYVd1axwfZr0ZJUCfZA",
              "youtube_playlist": {
                "name": "uploads",
                "provider_channelid": "UC_98765432198765432198",
                "channel_url": "https://www.youtube.com/channel/UC_98765432198765432198",
                "provider_playlistid": "UU_ZZZAAABBBCCCDDDEEEFFF",
                "playlist_url": "https://www.youtube.com/playlist?list=UU_ZZZAAABBBCCCDDDEEEFFF"
              }
            }
          ]
        }
      }
    }
  }
}

User Contributed Notes