htmllinkedin-api

Grab profile picture from LinkedIn to my web site


I want to create a website for my company. I want to use my team mates profile pictures in About us page on my website, what will be the best way to get their profile pictures? Any suggestions?

Thank you


Solution

  • take look at this. Linked-In Api

    http://api.linkedin.com/v1/people/{user-id}/picture-url
    

    Update (2024/06/19)

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

    sample output

    {
       "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"
    }