linkedin-api icon indicating copy to clipboard operation
linkedin-api copied to clipboard

get_profile_connections

Open zkeshtkar opened this issue 4 years ago • 3 comments

get_profile_connections return empty list but the profile has connections. Can I have an example of something that work ? Thank you

zkeshtkar avatar Dec 20 '20 13:12 zkeshtkar

get_profile_connections only returns 1st connections, i.e. those people who directly connects with you. e.g. if person A has a number of connections but there is no shared connections between you and A, you will get an empty list.

wei-zhang-thz avatar Dec 30 '20 10:12 wei-zhang-thz

Is there any way or workaround that allows to get all the connections of a profile? I am thinking of 2 scenarios here:

  • You must be a connection of the profile you are requesting the connections from
  • You can get all the connections of a profile even if no relationship exists between the logged in profile and the target profile Is any of the above mentioned scenarios possible? If not, do you have any hints about how it could be implemented?

alvaroserrrano avatar Sep 14 '21 18:09 alvaroserrrano

get_profile_connection calls search_people with network_depth set to 'F' denoting first degree connections. Try having a look at the search_people method. Setting network_depth to the other possible values like 'S' or 'O' denoting second and third+ degree connections might work.

abinpaul1 avatar Sep 14 '21 19:09 abinpaul1