24

Is it possible to derive a linkedin profile url (public OR private) from the user ID?

Yarin
  • 173,523
  • 149
  • 402
  • 512

4 Answers4

18

You can use the ID in this URL and this will give you the link to User Profile http://www.linkedin.com/profile/view?id=YourID

UPDATE: Apparently, this solution no longer works.

Jordan Dimov
  • 1,268
  • 12
  • 26
  • 3
    Jordan- This is the right answer to my question as worded- but I actually have a different problem as the LinkedIn API uses alphanumeric token IDs which don't work in this format...- see new question: http://stackoverflow.com/q/11296484/165673 – Yarin Jul 02 '12 at 15:18
  • As tested right now, this works with the api ids, too. It will map the api-id to another internal id for you when you visit the link. – Martin Müller Apr 03 '14 at 12:27
  • No it doesn't. All my tests have it mapping to your own ID by default, not to the member owning the API id. – isick Jul 11 '14 at 21:27
  • For some reason, this doesn't work for me. I get this error `There was an unexpected problem that prevented us from completing your request.`, any idea why this is so? – Goke Obasa Jun 27 '16 at 22:30
  • 5
    They've removed this, sadly. Lookup by member ID no longer works. –  Aug 01 '16 at 02:16
  • 1
    Seems solution below is not working anymore. Who know another way to get profile link from user id? – eirenikos Sep 09 '16 at 14:55
  • This solution doesn't work for me.. I have added another updated solution that worked for me.. – Vali D Nov 30 '16 at 13:30
7

You need to get r_basicprofile permissions from the user, then grab the public-profile-url field from the response.

read more at https://developer.linkedin.com/docs/fields/basic-profile

0

You can get the linkedin url using the below format if you have the user id.

https://www.linkedin.com/in/userID/

Replace the userID with linkedin user id.

Thank you!

-2

I guess some things have changed in the LinkedIn API over the years.

This is the solution that worked for me:

http://www.linkedin.com/in/USERNAME

Used it as a href in my website to link to user's LinkedIn profile page and it works fine.

Vali D
  • 511
  • 1
  • 6
  • 20