Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linkedin get user feed

I try to get my linkedin feed using this API :

https://linkedin.api-docs.io/v1.0/feed/42Hm9SaY2p2CGwPzp

I try to use this request : "GET /voyager/api/feed/updates" with this shell code :

curl --request GET \ --url https://www.linkedin.com/voyager/api/feed/updates \ --data '{}'

But I get this response : "CSRF check failed". I understand why linledin respond this but how to avoid it ?

like image 557
Franck Besson Avatar asked Apr 18 '26 07:04

Franck Besson


1 Answers

You missing headers, see API docs here: https://linkedin.api-docs.io/v1.0/feed and explanation how get headers here: https://towardsdatascience.com/using-browser-cookies-and-voyager-api-to-scrape-linkedin-via-python-25e4ae98d2a8

API docs a bit outdated, data output format might be different, this at least true for messaging/conversations, not sure about feed

In regards of headers I suggest to try apify.com and extract them in real time from browser instance (run puppeteer, login to LiN, get headers, save them) Phantombuster will not allow you to use your own code so not very useful

like image 192
Alexey Udovydchenko Avatar answered Apr 19 '26 21:04

Alexey Udovydchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!