Get Industries from LinkedIn API for a Given Company - linkedin

I'm trying to tag list of companies to their industry type.
I have LinkedIn client id and secret key. I was able to generate the access_token. i'm using V2 LinkedIn API and was wondering if there is a sample code to pass company name and return their industry name.
I have constructed the URI as below based on the API docs and it doesn't seem right. Appreciate your help
GET https://api.linkedin.com/v2/search?q=companiesV2&baseSearchParams.keywords=LinkedIn%20Corporation&companySearchParams.facetIndustry%5B0%5D&facetCompanyCountryRegion%5B0%5D=us:84&oauth2_access_token=Access_token
I get the following error.. Can you please help troubleshoot
{"serviceErrorCode":100,"message":"Not enough permissions to access: GET-companiesV2 /search","status":403}

Related

How to pull company insights using LinkedIn API

Is there a way to pull company insights info using one of the LinkedIn API's? I have a premium account and have created an app on the LinkedIn developers platform. I can’t seem to find a way to fetch company data such as number of employees (by category and total), headcount growth (3m, 6m, 1yr, 2yr), job openings by category, etc.
Any idea on how to resolve this issue?
you can do this easily using organizationPageStatistics and brandPageStatistics APIs
just request the following link
GET https://api.linkedin.com/v2/organizationPageStatistics?q=organization&organization={organization URN}
if you need to read more you can read the documentation
Documentation

How can I retrieve a list of all employees within a company through the LinkedIn API?

Years ago, someone asked on Stack Overflow if it were possible to retrieve a list of all employees who work at a company. I can do this through the LinkedIn UI, but I cannot seem to find any mechanism for this using the v2 API. The SO response mentions this used to be possible on the v1 API, but you had to request access through LinkedIn's "Vetted API Access Program." Unfortunately, the link on this response is now obsolete and does not send users to any such program.
How could I apply for this program nowadays? This is a specific situation to me and my company, so I would very much like to discuss this with someone at LinkedIn if some form of this Vetted API Access Program still exists. I do not wish to disclose the details of this request to the open internet.
I have confirmed through contacts inside LinkedIn that this API functionality has been removed. No further information has been provided, and LinkedIn tech support refuses to comment any more on this issue. Furthermore, no LinkedIn engineers will comment on this thread here.
This is bizarre since any regular user can do this functionality through the web front-end, but for some reason LinkedIn believes this would be a violation of privacy/security if we could do this programmatically.
Therefore, the only way to obtain this data would be through screen scraping. I wish I had better news, and I wish that LinkedIn would provide some reasoning for their changes, but alas this is where we are.
I just posted a very similar question because I ran into the same problem as you.
The application forms for Linkedin's current partner programs seem to be located here, however I can't tell you which one of those programs comes with the necessary API access rights and I am in general not sure if this API request is still allowed.
Edit: The Linkedin Help page states that applications for partner programs are currently unavailable?
In general, you can get a list of employees of a company if you scrape Linkedin profiles exhaustively, or if you have an exhaustive dataset of Linkedin profiles.
Each Linkedin profile contains a list of experiences that links to the company profile URL.
Thereafter, you will filter the dataset into profiles currently working at X company to get a list of employees currently working in a company. The same technique can also be used to retrieve a list of past employees.
And that is what we did. We scraped all public Linkedin profiles based in the US and made an alternative API known as Proxycurl Employee Listing API to Linkedin API to provide employee listing functionality.
Proxycurl's Employee Listing API will never be as exhaustive as Linkedin's dataset because not all profiles are made public, but most are. But will suffice to meet your needs.

Finding LinkedIn Username from LinkedIn ID

I have a database of LinkedIn IDs, however I need to find their LinkedIn Usernames. I would welcome if you can advise how can I do that.
That information is not available via any LinkedIn API calls. The member ID that you retrieve should be sufficient for all your needs.

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.

Get linkedin public status updates

I am trying to get latest 3 public activities of our company from linkedin (ex: http://www.linkedin.com/company/4043/activity) and present it on our website but unfortunately I dont see a clear explanation to do so in the API documentations. I registered an API Key but I am confused if I need to do OAuth if so against what and then what API to call to get publicly available info?
Is OAuth really needed for something that is available?
Can I store an OAuth token for an internal user and keep fetching data on that? I would really do not want to authenticated the site visitors with oauth to get free linkedin content.
This question is on the lines of this one, but I still wanted to ask and see if I could get a better response/answer.
To get the company updates from the LinkedIn API, you will need to reference the following document:
https://developer.linkedin.com/reading-company-updates
The API is currently in preview mode, but the above document addresses your question re: OAuth as well as shows the specific calls as well as sample output. If you have any questions after reviewing the docs, please feel free to visit our developer forums at:
https://developer.linkedin.com/forums/rest
And one of someone from our team would be more than happy to help you further.
Enjoy!
-Jeremy

Resources