How to get media url with Linkedin Posts API?

Viewed 24

I am trying to fetch the posts of an organization by using the https://api.linkedin.com/rest/posts endpoint which works fine. In the response I get media urn fields which i need to resolve via the https://api.linkedin.com/rest/images endpoint to get the URL of the images of the posts. Is there any way to get the image URL on the https://api.linkedin.com/rest/posts endpoint?

I assume this is possible via projection because of the following statement in the API documentation:

You can include the following types of content in a Post:

  • Images
  • Videos
  • Article
  • Carousels
  • MultiImage
  • Poll

Source: https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api

0 Answers
Related