Skip to main content
GET
/
linkedin
/
post
Get LinkedIn post details
curl --request GET \
  --url https://api.harvest-api.com/linkedin/post \
  --header 'X-API-Key: <api-key>'
{
  "element": {
    "id": "<string>",
    "content": "<string>",
    "linkedinUrl": "<string>",
    "author": {
      "publicIdentifier": "<string>",
      "universalName": "<string>",
      "name": "<string>",
      "linkedinUrl": "<string>",
      "type": true,
      "info": true,
      "website": true,
      "websiteLabel": true,
      "avatar": {
        "url": "<string>",
        "width": 123,
        "height": 123,
        "expiresAt": 123
      }
    },
    "postedAgo": "<string>",
    "postImages": [
      {
        "url": "<string>",
        "width": 123,
        "height": 123,
        "expiresAt": 123
      }
    ],
    "article": {
      "title": "<string>",
      "subtitle": "<string>",
      "link": "<string>",
      "linkLabel": "<string>",
      "description": "<string>",
      "image": {
        "url": "<string>",
        "width": 123,
        "height": 123,
        "expiresAt": 123
      }
    },
    "repostId": "<string>",
    "repost": {},
    "repostedBy": {
      "publicIdentifier": "<string>",
      "name": "<string>",
      "linkedinUrl": "<string>"
    },
    "newsletterUrl": "<string>",
    "newsletterTitle": "<string>",
    "socialContent": {
      "hideCommentsCount": true,
      "hideReactionsCount": true,
      "hideSocialActivityCounts": true,
      "hideShareAction": true,
      "hideSendAction": true,
      "hideRepostsCount": true,
      "hideViewsCount": true,
      "hideReactAction": true,
      "hideCommentAction": true,
      "shareUrl": "<string>",
      "showContributionExperience": true,
      "showSocialDetail": true
    },
    "engagement": {
      "likes": 123,
      "comments": 123,
      "shares": 123,
      "reactions": [
        {
          "type": "<string>",
          "count": 123
        }
      ]
    }
  },
  "status": "<string>",
  "error": "<string>",
  "query": {
    "post": "<string>"
  }
}
const params = new URLSearchParams({
  url: 'https://www.linkedin.com/posts/microsoft-events_microsoft-build-has-arrived-in-seattle-and-ugcPost-7329991434395160578-GnK7',
});
fetch(`https://api.harvest-api.com/linkedin/post?${params.toString()}`, {
  headers: { 'X-API-Key': '<api-key>' },
})
  .then((response) => response.json())
  .then((data) => console.log(data));

Authorizations

X-API-Key
string
header
required

Query Parameters

url
string

URL of the LinkedIn post (required)

Response

Post details response

element
object
status
string
error
string
query
object