Is there any option in LinkedIn API to get all ugcPosts and its statistics in an organization within single API

Ashida K A 1 Reputation point
2023-01-04T17:44:03.623+00:00

Hi,

Is there any option to get all ugcPosts and its statistics in a organization within single API

for getting organization posts by using

https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List(urn%3Ali%3Aorganization%3A89813123)&sortBy=CREATED

for getting organization statistics by using
https://api.linkedin.com/rest/organizationalEntityShareStatistics?organizationalEntity=urn%3Ali%3Aorganization%3A89813123&timeIntervals=(timeRange:(start:1669869039000,end:1672720239000),timeGranularityType:DAY)&q=organizationalEntity

is there any option to combain these query ?

I want the response like:

"totalShareStatistics": {
"uniqueImpressionsCount": 0,
"shareCount": 0,
"engagement": 0.0,
"clickCount": 0,
"likeCount": 0,
"impressionCount": 0,
"commentCount": 0
},
"organizationalEntity": "urn:li:organization:89813367",
"timeRange": {
"start": 1670716800000,
"end": 1670803200000
}
"id": "urn:li:share:7015970832908775123"
"specificContent": {
"com.linkedin.ugc.ShareContent": {
"shareCommentary": {
"attributes": [],
"text": "hi. 2023"
},
"media": [
{
"description": {
"text": ""
},
"originalUrl": "https://media.licdn.com/dms/image/C5622AQGj2C9vmOxd9A/feedshare-shrink_800/0/1672737796923?e=1675900800&v=beta&t=ds925jZxaD3txe3tPwSh2DRhr-H9FRZxfkHrhH69JMg",
"media": "urn:li:digitalmediaAsset:C5622AQGj2C9vmOxd9A",
"status": "READY"
}
]
}
}


Please check how to get this type of response.?

Thanks.

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
297 questions
{count} votes