Edion Larosa
Edion Larosa

Reputation: 114

How to fetch user and page/company posts from linkedin

I have been checking the available linkedin API methods but cant see on how to fetch post by user and by page/company. What I need to do is that, user can enter username or a page/company name then, fetch news posts by it. Maybe you know some workarounds. Thanks

References: https://developer.linkedin.com/docs/rest-api https://apigee.com/console/linkedin?authTypeVal=oauth2&afterSuccessfulAuth=true

Upvotes: 7

Views: 20141

Answers (2)

Gustavo Preciado
Gustavo Preciado

Reputation: 124

Since October 2016 Linkedin updated the API an restricted actions to sign in, share content and manage companies, so you only can fetch the company's posts.

If you already have the user(company's admin) token access use this endpoint for get the posts of the page:

GET "https://api.linkedin.com/v1/companies/{id}/updates?format=json"

Upvotes: 4

Jagdish Chaudhary
Jagdish Chaudhary

Reputation: 287

Detail Infomation For search user

https://api.linkedin.com/v1/people/~

Method : GET

  1. Add a format=json URL argument to the end of your API call.
  2. Add this HTTP header to your API call: x-li-format: json

Upvotes: 0

Related Questions