Partager via


Profile Picture Fields

Field Name Description
created An epoch timestamp corresponding to the creation of the picture. Represented in milliseconds. This field requires special permissions available only to select partners.
deleted An epoch timestamp corresponding to the deletion of the picture. Represented in milliseconds. Optional. This field requires special permissions available only to select partners.
displayImage The digitalmediaAsset URN of the display image.
lastModified An epoch timestamp corresponding to the last modification of the picture. Represented in milliseconds. This field requires special permissions available only to select partners.
originalImage The digitalmediaAsset URN of the original image. Will only appear in self-view. This field requires special permissions available only to select partners.
photoFilterEditInfo Optional information object on the photo filter operations applied to the profile picture. This field requires special permissions available only to select partners.

To decorate the digitalMediaAsset URN from displayImage or originalImage , you will use parameter projection that will include ~digitalmediaAsset:playableStreams . For more information, see here about digital media asset URNs . See below for an example of Profile API:

GET https://api.linkedin.com/v2/me?projection=(id,profilePicture(displayImage~digitalmediaAsset:playableStreams))

profile api sample response

{
   "profilePicture":{
      "displayImage":"urn:li:digitalmediaAsset:C4D03AQGsitRwG8U8ZQ",
      "displayImage~":{
         "elements":[
            {
               "artifact":"urn:li:digitalmediaMediaArtifact:(urn:li:digitalmediaAsset:C4D03AQGsitRwG8U8ZQ,urn:li:digitalmediaMediaArtifactClass:profile-displayphoto-shrink_100_100)",
               "authorizationMethod":"PUBLIC",
               "data":{
                  "com.linkedin.digitalmedia.mediaartifact.StillImage":{
                     "storageSize":{
                        "width":100,
                        "height":100
                     },
                     "storageAspectRatio":{
                        "widthAspect":1,
                        "heightAspect":1,
                        "formatted":"1.00:1.00"
                     },
                     "mediaType":"image/jpeg",
                     "rawCodecSpec":{
                        "name":"jpeg",
                        "type":"image"
                     },
                     "displaySize":{
                        "uom":"PX",
                        "width":100,
                        "height":100
                     },
                     "displayAspectRatio":{
                        "widthAspect":1,
                        "heightAspect":1,
                        "formatted":"1.00:1.00"
                     }
                  }
               },
               "identifiers":[
                  {
                     "identifier":"https://media.licdn.com/dms/image/C4D03AQGsitRwG8U8ZQ/profile-displayphoto-shrink_100_100/0?e=1526940000&v=alpha&t=12345",
                     "file":"urn:li:digitalmediaFile:(urn:li:digitalmediaAsset:C4D03AQGsitRwG8U8ZQ,urn:li:digitalmediaMediaArtifactClass:profile-displayphoto-shrink_100_100,0)",
                     "index":0,
                     "mediaType":"image/jpeg",
                     "identifierExpiresInSeconds":1526940000
                  }
               ]
            }
         ],
         "paging":{
            "count":10,
            "start":0,
            "links":[

            ]
         }
      }
   },
   "id":"yrZCpj2ZYQ"
}