How to get three-current-positions & three-past-positions? - linkedin

I want to find out profile's previous employment details. I have tried as per the LinkedIn's API given below.
https://api.linkedin.com/v1/people/id={id}:(id,first-name,last-name,headline,picture-url,public-profile-url,industry,three-current-positions,three-past-positions,positions)?format=json&oauth2_access_token={tokenvalue}"
Here in above request, "id" is 1st degree connection. Then also I am never returns with the desired information after tried many times.
Can any one guide me what should I do?
Regards,
Dharmesh Solanki

LinkedIn says here that it only supports retrieving the r_basicprofile fields from an application.
https://developer.linkedin.com/documents/profile-fields
For members other than the ones using your application, you may only
retrieve the profile fields available with the r_basicprofile member
permission.
Since three-current-positions and three-past-positions is part of the Full Profile (r_fullprofile), I don't think it's currently possible to get those fields for a user using the Profile API.
Unless it's for the current requesting user, ie:
https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,public-profile-url,industry,three-current-positions,three-past-positions,positions

Related

Is there an API that allows a candidate search query?

We're looking into integrating with LinkedIn so that we can feed our users with lists of job candidates, and then send our users back to LinkedIn in order to view relevant profiles. I'm not seeing any relevant API docs regarding this. Is this something that is possible to do via your API today or in the near future?
Right now, LinkedIn gives only the scope of r_liteprofile and r_emailaddress to Retrieve authenticated member's name, headline, photo, and member's primary email address.
To get the relevant candidate for the job, you may need to check skills, projects, etc, for that you need the permission of r_fullprofile,
LinkedIn API has restricted such information as per their documentation:
https://learn.microsoft.com/en-us/linkedin/shared/references/v2/profile/full-profile
As per their documentation, to access the information of skills, address, etc, your app needs to request r_fullprofile. But they have closed it now and no alternate is given. The more detail about the current permissions from LinkedIn can be seen here:
https://learn.microsoft.com/en-us/linkedin/shared/authentication/getting-access
Right now there are currently in development mode. They are working on developing their APIs. What and when they will release such information is not available to document right now.

Is it possible to retrieve posts from LinkedIn's API?

I would like to use LinkedIn's v2 API to monitor as many public-facing profiles as possible, and retrieve content from the posts made by those profiles. Then identify instances where LinkedIn users are linking to particular domains. I can't tell if this is possible through the Partner Program. Signs are pointing to using this https://learn.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api but it isn't super clear to me whether this particular use case is supported.
Yes. As long as they are authenticated member. I think this applied to Partner Program too. You need permission from owners to fetch their contents.
http:
GET https://api.linkedin.com/v2/shares?q=owners&owners={URN}&sharesPerOwner=100
The following authorization rules apply when specifying owners :
For personal shares, you may only retrieve shares for the authorized members.
Source: Find Shares by Owner

How can i get the r_contactinfo from linkedin

Hi i have done the basic app which can get the company page details of the user. Now i have to get the email ids of the user who..? liked the page and post of the particular company page, is there any API to get this details. Also how to get the r_contactinfo from the linkedin if i use this in my API call its shows error.
In linkedin they have mentioned tat we have to get permission for this, how to do that.
Even i have tried the below url to get user details. It returns error.
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url,industry,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker)),educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)),num-results)?first-name=parameter&last-name=parameter
You can get all the company followers by segment. Refer https://developer.linkedin.com/docs/company-pages#get_followers
For getting user's who liked a specific update from the company, check https://developer.linkedin.com/docs/company-pages#get_update_likes
r_contactinfo is only available through "Apply with LinkedIn" partner programs. You cannot access this otherwise. Check partner programs registration and apply for the relevant one based on your application.
https://developer.linkedin.com/partner-programs

How can I get linkedin contacts through API and send messages to them?

I had created app that used to get authenticated by users for their contacts, sending messages to those contacts etc. When linked in changed their API access system in May, suddenly our application stopped working.
In the doc there is nothing clearly written about these kind of permissions now or with what kind of membership program I can get access to these again. There is one section where contacts info can be fetched when we apply for partnership program with Apply with LinkedIn button. But I am not sure its of my use.
Access to r_contactinfo permission:
As per the Linkedin website,
The r_contactinfo member permission will now be associated exclusively
with Apply with LinkedIn. As a result, you will only be able to
request this member permission if your application has been approved
by LinkedIn for this particular use.
What you need to do:
Apply for partner status with LinkedIn (Apply with Linkedin), explaining what your integration is and how it works. If it meets their criteria, then you will get access to the above endpoint.
Check this link for further details.

Getting complete educations from LinkedIn API (working partially)

I have two LinkedIn profiles, one "real" and another used for testing.
Using the API console (https://apigee.com/console/linkedin) I tested retrieving "educations", but strangely on the real profile I cant't retrieve anything but an id and start/end dates, while on the test profile I can retrieve all details about education.
I have the necessity to use the REST API and not JS or other methods.
Anyway, is there anything I can check to retrieve all education details about my real profile? Am I missing something?
thank you
I'm guessing you authenticated your API account against your "test" profile.
The /v1/people/~:(....) API will return all the complete data for the account the API was used to authenticate. But for "connections", 1st degree and beyond, the API will only retrieve data as if it were a 3rd degree connection.
Using the API as /v1/people/id=... or /v1/people/url=... results in "3rd degree" type access data.
From the profile-api
Requesting by member token only returns a profile from the logged in person's three degree network and doesn't return any out-of-network profiles. You cannot use a member token to get a public profile.

Resources