LinkedIn Scraping

Get LinkedIn Post Data

POST /v1/linkedin/post

#Request

curl -X POST https://scrapingapi.qoest.com/v1/linkedin/post \
  -H "Authorization: Bearer your-token" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.linkedin.com/posts/example_activity-7300000000000000000-abcd"}'

#Parameters

Name Type Required Notes
url string yes A linkedin.com URL starting with http:// or https://. Post URLs (/posts/...-activity-<id>-...) and feed URLs (/feed/update/urn:li:activity:<id>) both work.

#Response

{
  "response": {
    "id": "7300000000000000000",
    "url": "https://www.linkedin.com/posts/example_activity-7300000000000000000-abcd",
    "published_at": "2026-01-01T12:00:00+00:00",
    "author": {
      "id": "urn:li:company:1000000",
      "username": "example-company",
      "name": "Example Co",
      "profile_url": "https://www.linkedin.com/company/example-company",
      "avatar_url": "https://media.licdn.com/...",
      "followers": 1200
    },
    "content": "Post text",
    "stats": { "likes": 10, "comments": 2, "shares": 1 },
    "media": [{ "type": "image", "url": "https://media.licdn.com/..." }],
    "comments": [
      {
        "id": "7300000000000000001",
        "author": { "id": null, "username": "example-user", "name": "Example User", "profile_url": "https://www.linkedin.com/in/example-user" },
        "text": "Great post",
        "published_at": "2026-01-02T09:00:00+00:00",
        "likes": 3
      }
    ],
    "shared_post": { "url": "https://example.com", "text": "Shared headline" }
  }
}

#Fields

  • id: the LinkedIn activity id, as a string.
  • author: always has id, username, name and profile_url (each may be null). id is a LinkedIn URN when one is found. avatar_url and followers appear when available.
  • stats: likes, comments and shares as integers, each present only when LinkedIn shows it.
  • media: images attached to the post.
  • comments: comments visible on the public page. A comment date may be estimated from labels such as "1w".
  • shared_post: the post or link being reshared, when there is one.
  • Empty fields are left out.

#Pricing

3 credits per successful request. You need at least 3 credits to make the call.

#Errors

Status Body Charged
200 {"message": "This LinkedIn post is private."} no
200 {"message": "This LinkedIn post is not publicly accessible."} no
403 {"message": "You do not have enough credits to perform this action."} no
404 {"message": "LinkedIn post not found."} no
422 {"message": "Unable to retrieve this LinkedIn post."} or a validation error no
429 {"message": "Too many requests to LinkedIn."} no