I have asked LinkedIn support about this, and per their answer, projections are no longer supported for new versioned APIs. They're deprecating projections (called response decoration) in favor of “additional info fields”. To quote the November changelog:
Deprecating API decoration: Starting with the 202211 version, we will no longer support API Decoration for the adAccounts, adCampaigns and adCampaignGroups APIs; we will deprecate API Decoration for other APIs in future versions. To replace API Decoration, we are introducing additional fields in the schemas. […]
So unless or until they add these additional info fields to obtain author information with the response, you will have to perform additional requests for profile information yourself.
Each post contains an author
property with an URN (for example: urn:li:organization:2414183
or urn:li:person:123
). As suggested by Kapitein Witbaard in the other answer, you can retrieve details either from the organizations lookup endpoint or the profile API (the latter being still an unversioned endpoint and a subject to more restricted access).
But to make things confusing, response decorations on Organizations Lookup endpoints are still supported. Note also that you will have to parse the numeric organization ID from the URN yourself, as the endpoint doesn't accept URNs.
So given organizations with IDs 79988552
and 2414183
, to retrieve their profile name along with their logo, you can use the following request:
GET https://api.linkedin.com/rest/organizationsLookup?ids=List(2414183,79988552)&projection=(results(*(id,vanityName,localizedName,logoV2(original~:playableStreams,cropped~:playableStreams,cropInfo))))
Videos and images are similar: the post can reference either media
content or multiImage
. You get either urn:li:video:*
or urn:li:image:*
URNs and you can dereference them through Video or Image APIs respectively. For these endpoints, response decoration is no longer needed and you can use batch retrievals as well.