question

KristianIvanov-0159 avatar image
0 Votes"
KristianIvanov-0159 asked HungChunYu-3579 edited

Getting the proper shareId to retrieve by the Share API

Hey there,

I'm trying to fetch this post:
https://www.linkedin.com/posts/vivian-arroyo-kou-a8bab670_lessonslearned-failure-growthmindset-activity-6831251562787155968-hodE

By the Share API...

So, what I'm doing is copy & paste the "6831251562787155968" in the above URL and put it here:

https://api.linkedin.com/v2/shares/6831251562787155968

As of right now, it returns a basic 404 error with no other indication where I'm wrong...

The Share API docs basically tell me nothing on HOW to actually find the shareId...
https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?tabs=http#look-up-share-by-id

...in order to retrieve the actual share (post or whatever) by it.

Why is this not working?

EDIT: Forgot to mention, this actually works if I use the ID from the "Embed Post" link.

This post in particular doesn't have an embed feature (god knows why), but it usually works.

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HungChunYu-3579 avatar image
0 Votes"
HungChunYu-3579 answered HungChunYu-3579 edited

Hi @KristianIvanov-0159

Thank you for contact Microsoft Open Specifications Support. It appeared your question is not related to protocols issues outline at https://aka.ms/openspecs.

You might want to post your question to either Stack Overflow, or LinkedIn Developer Solutions
Using StackOverflow for API Support | LinkedIn Help
Stack Overflow | LinkedIn Developer Network
LinkedIn API Concepts - LinkedIn | Microsoft Docs
LinkedIn Developer Solutions


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.