st.openPost
This action allows you to open a post to retrieve its data and perform additional post-related actions if needed.
Constraints
⏺️
Root Start: allowed, when
postUrl parameter is provided.⬆️
Parent Actions: st.doForPosts.
⬇️
Parameters
{
"actionType": "st.openPost",
"label": "post1",
"postUrl": "https://www.linkedin.com/posts/post1",
"basicInfo": true,
"then": { ... }
}
label(optional) – custom label for tracking this action in workflow completion.postUrl(required for root start, forbidden for parent start) – LinkedIn URL of the post.basicInfo(optional, default:false) – when set totrue, the action includes basic post information in the results.then(optional) – object or array of child actions to be executed within this action.
Result options
- Successful post opening with
basicInfoset totrue:
{
"actionType": "st.openPost",
"label": "post1",
"success": true,
"data": {
"time": "2023-01-02T12:30:00Z",
"type": "original",
"repostText": null,
"text": "Check out our latest product launch!",
"images": [
"https://static.linkedin.com/image1.jpg",
"https://static.linkedin.com/image2.jpg"
],
"hasVideo": false,
"hasPoll": false,
"reactionsCount": 27,
"commentsCount": 8,
"repostsCount": 12,
"then": { ... }
}
}
label– included only if specified in the action parameters.data– basic information about the post and results of child actions execution.time– timestamp when the post was published.type– type of the post. Enum with possible values:original– for original posts.repost– for reposts.
repostText– additional text added during repost, if applicable.text– text content of the post, if available.images– array of top 3 preview image URLs, if available.hasVideo– boolean indicating if the post contains a video.hasPoll– boolean indicating if the post contains a poll.reactionsCount– number of reactions on the post.commentsCount– number of comments on the post.repostsCount– number of reposts on the post.then– results of child actions execution.
- Successful post opening with
basicInfoset tofalse:
{
"actionType": "st.openPost",
"label": "post1",
"success": true,
"data": {
"then": { ... }
}
}
label– included only if specified in the action parameters.data.then– results of child actions execution.
- Failed post opening:
{
"actionType": "st.openPost",
"label": "post1",
"success": false,
"error": {
"type": "postNotFound",
"message": "The provided URL is not an existing LinkedIn post."
}
}
label– included only if specified in the action parameters.error.type– enum with the following possible values:postNotFound– provided URL is not an existing LinkedIn post.