Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Retrieve all possible information about a LinkedIn Account ? (API using C#)

Tags:

api

linkedin

I am writting an C# app to make use of Linkedin's API.

I want to be able to query "Person" (First Name + Last Name) and retrieve all the possible information about this group of people with the same name

I am currently using my own implementation of the REST API alongside People-Search API calls.

Here's an example of a request that I know works:

https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url),num-results)? 

I'm running it with: first-name=parameter&last-name=parameter after the ? mark

The problem is, I want to retrieve more information such as Title, Industry, Current-company, current-school etc. Refer here for the list of possible parameters.

This notation is what they call Field Selectors

How do i structure my API Call so i can get all the possible information about someone ?

like image 894
Marcello Grechi Lins Avatar asked Dec 21 '11 16:12

Marcello Grechi Lins


People also ask

What data can you extract from LinkedIn API?

Using the API for LinkedIn, you can get detailed information about LinkedIn groups based on the ID of the target groups. Below are some of the data you can get: ID, name, date of creation, logo, description, location, industries, etc. Learn more in the LinkedIn API documentation.


1 Answers

Here is the url to get everything for a user Profile:

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,industry,summary,specialties,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),associations,interests,num-recommenders,date-of-birth,publications:(id,title,publisher:(name),authors:(id,name),date,url,summary),patents:(id,title,summary,number,status:(id,name),office:(name),inventors:(id,name),date,url),languages:(id,language:(name),proficiency:(level,name)),skills:(id,skill:(name)),certifications:(id,name,authority:(name),number,start-date,end-date),courses:(id,name,number),recommendations-received:(id,recommendation-type,recommendation-text,recommender),honors-awards,three-current-positions,three-past-positions,volunteer)?oauth2_access_token=PUT_YOUR_TOKEN_HERE

Requires an Oauth2 access token.

Here it is in a nice String list (Java):

apiUrl     + "/v1/people/~:("         + "id,"         + "first-name,"         + "last-name,"         + "headline,"         + "picture-url,"         + "industry,"         + "summary,"         + "specialties,"         + "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),"         + "associations," /* Full Profile */         + "interests,"         + "num-recommenders,"         + "date-of-birth,"         + "publications:("             + "id,"             + "title,"             + "publisher:(name),"             + "authors:(id,name),"             + "date,"             + "url,"             + "summary),"         + "patents:("             + "id,"             + "title,"             + "summary,"             + "number,"             + "status:(id,name),"             + "office:(name),"             + "inventors:(id,name),"             + "date,"             + "url),"         + "languages:("             + "id,"             + "language:(name),"             + "proficiency:(level,name)),"         + "skills:("             + "id,"             + "skill:(name)),"         + "certifications:("             + "id,"             + "name,"             + "authority:(name),"             + "number,"             + "start-date,"             + "end-date),"         + "courses:("             + "id,"             + "name,"             + "number),"         + "recommendations-received:("             + "id,"             + "recommendation-type,"             + "recommendation-text,"             + "recommender),"         + "honors-awards,"         + "three-current-positions,"         + "three-past-positions,"         + "volunteer"     + ")"      + "?oauth2_access_token="+ token; 
like image 150
BDG Avatar answered Oct 16 '22 03:10

BDG