Company Pages API - V1 Deprecation - linkedin

LinkedIn is set to deprecate the v1 APIs on March 1st. I have a solution that uses the v1 company page APIs (https://api.linkedin.com/v1/companies/) to retrieve a list of updates posted to a company page.
I've read through the documentation and the migration information and unfortunately the documentation is unclear in terms of how to get access to the updated company pages APIs.
The documentation seems to imply that in order to get access to the API's you must submit an application for approval, however the form (https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program) seems to indicate that they are accepting applications for a number of their APIs but the Company Pages API is not on the list.
At one point this page noted that access to the company pages API would not require a submission however that appears to have been removed.
I'm hoping someone has encountered this and can provide some guidance on how to proceed with getting access and if the application is required. I've tried reaching out to LinkedIn directly without much luck. All help is greatly appreciated.

you can do it with /ugcPosts query. Ask with q=authors and provide a list list of companies in authors query parameter.
You can test it with curl:
curl -H "Authorization: Bearer __ACCESS_TOKEN__" -H "X-Restli-Protocol-Version: 2.0.0" "https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List(urn%3Ali%3Aorganization%3A__ORGANIZATION_ID__)"
Dont forget to replace __ACCESS_TOKEN__ and __ORGANIZATION_ID__.

Related

is there any linkedIn API which returns current job openings in a certin company?

a couple of months ago I made this https://github.com/Kaustubh-Natuskar/companies-to-apply repository which contains the list of 300 PBC's and startups I got a good response for that. But I have decided to take this further I want to make a website from this idea.
there will be a list of companies if there is an opening a red circle will denote it.
Now the problem is how can I know that there are openings?
API is a great option where I can cache the results and then display them like above.
is there any API on LinkedIn where if I post a request with the company's id or name I'll get current openings?
It doesn't look like it.
There is the Job Posts XML feed, but the documentation implies that it's not free (and difficult to get access to):
The integration of the XML feed is limited to those developers approved by LinkedIn. Reach out to your Business Development contact to meet certain criteria and sign an agreement in order to use this integration.
Compliance with our contract and guidelines is integral. Refer to Job Posting Guidelines for details.
If you are not yet a LinkedIn Talent Solutions Partner, please contact the team at ll-bd#linkedin.com to request for evaluation.
Here is Microsoft's full documentation on the LinkedIn APIs.

LinkedIn API v2 - Possible to get Company job listings?

I've pored over the LinkedIn developer documentation for api v2, and can't find any endpoints or documentation which provides me with a given company's list of jobs. Does anyone know if this is still possible using API v2, and if so, can anyone point me at documentation for this specific use case of their API or give me an example URI for requesting this data?
Thank you!
p.s. This SO post seems to be the most relevant, but it doesn't provide me with a solid answer as it is rather old and refers to api v1 endpoints and functionality: Retrieve job postings for a specific company using LinkedIn's API
Apparently this is not yet possible with v2. But what I could suggest is that you look at how LinkedIn carries out the job search on their own website. They use Voyager service which pretty much having the endpoints you'll ever need to get your work done.
Have a look: https://linkedin.api-docs.io/v1.0/search/yKaMAGcbmsJBswTCb
Press F12 and inspect the XHR requests flowing out to LinkedIn website when you do a job search. It will give you a lot of hints ;)

LinkedIn API feeds

I'm looking into an issue where a clients LinkedIn feeds on their website have stopped showing. Debugging the problem I've found that I get a 403 error shown below:
Member xxxxxx does not have permission to get company xxxxx
As the LinkedIn authentication process can be quite difficult to comprehend, I had a look online to see if others have had the same problem, and managed to find this. It suggests there have been recent changes to the LinkedIn API and users are now required to be the administrator of the company. What exactly does this mean?
From the very beginning we have simply been accessed the feeds by generating a url like this:
https://api.linkedin.com/v1/companies/xxxx/updates?oauth2_access_token=ACCESS_TOKEN
This has worked in the past. Do we need to regenerate the Secret and API keys?
Update
Looking at the announced changes here:
https://developer.linkedin.com/support/developer-program-transition
It suggests that the following endpoint will still work (which is exactly what I have):
/v1/companies/{id}
So I'm not sure what I'm missing.
is the access token generated by a account witch is Admin of that company page?
If not hen you will get 403.
The requester needs to be admin of that comapny page in order to get company updates.

LinkedIn New API - Can't Get r_network Permission

I inherited a program that was written with the old LinkedIn API, and I'm trying to migrate it to the new API. When I try to get the r_basicprofile permission, my oauth token works. However, when I try r_network or rw_nus, I get a response
invalid scope -- your application has not been authorized for
r_network.
Yet, when I go to www.linkedin.com/developer/apps/xxxx/auth, the boxes for r_network and rw_nus are checked.
I.e., A request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_basicprofile&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
works, but a request to
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxx&scope=r_network&state=yyyy&redirect_uri=http%3A%2F%2Fkalatublog.com%2Fwp-content%2Fmu-plugins%2Fimb-en%2Fhelpers%2Fsocial-connect%2Fapi%2Ffinalize.php%3Fapi%3Dlinkedin%26ch%zzzzz
gives that error. What am I doing wrong?
As of May 15,
After the grace period expires, several REST API endpoints will no longer be available for general use. The following endpoints are the only ones that will remain available for use:
Profile API — /v1/people/~ `
Share API — /v1/people/~/shares
Companies API — /v1/companies/{id}
If your application is currently using any other API services (e.g. Connections, Groups, People Search, Invitation, Job Search, etc.) you will have to apply to become a member of a relevant Partner Program that provides the necessary API access to continue to leverage any of the endpoints that are not listed above.
It looks like linkedin no longer wants to share anything with their API. Creating a new app indicates that the only possible options are r_basicprofile, r_emailaddress, rw_company_admin, and w_share:
TLDR: they have locked down the API and restricted the usage to an extremely limited set of access points.
I did some more digging. The linkedin website is misleading. On my app linkedin page, it says that I'm approved for rw_nus and r_network, but on this page
https://developer.linkedin.com/support/developer-program-transition
it says those are no longer approved.
So the app home page in linkedin incorrectly said I had those permissions.
Heres the link if you want to Apply for Linkedin
https://help.linkedin.com/app/ask/path/api-dvr

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