Skip to main content
POST
/
api
/
linkedin
/
search
/
posts
/linkedin/search/posts
curl --request POST \
  --url https://api.anysite.io/api/linkedin/search/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "keywords": {
    "exact search": "\"macadamia ltd\" pty",
    "example": "microsoft"
  },
  "sort": "relevance",
  "date_posted": "past-month",
  "content_type": "videos",
  "mentioned": [
    {
      "type": "fsd_profile",
      "value": "<string>"
    }
  ],
  "authors": [
    {
      "type": "fsd_profile",
      "value": "<string>"
    }
  ],
  "author_industries": {
    "by keyword": "IT",
    "by urn": [
      "urn:li:industry:96"
    ]
  },
  "author_title": "<string>",
  "count": 123
}'
[
  {
    "@type": "LinkedinUserPost",
    "urn": {
      "type": "fsd_company",
      "value": "<string>"
    },
    "url": "<string>",
    "author": {
      "@type": "LinkedinUserPostUser",
      "internal_id": {
        "type": "fsd_company",
        "value": "<string>"
      },
      "urn": {
        "type": "fsd_company",
        "value": "<string>"
      },
      "name": "<string>",
      "alias": "<string>",
      "url": "<string>",
      "headline": "<string>",
      "image": "<string>"
    },
    "created_at": 0,
    "share_urn": {
      "type": "fsd_company",
      "value": "<string>"
    },
    "is_empty_repost": true,
    "repost": {},
    "images": [
      "<string>"
    ],
    "video_url": "<string>",
    "text": "<string>",
    "comment_count": 123,
    "share_count": 123,
    "reactions": [
      {
        "@type": "LinkedinReaction",
        "type": "like",
        "count": 123
      }
    ],
    "event": {
      "@type": "LinkedinUserPostEvent",
      "url": "<string>",
      "image": "<string>",
      "title": "<string>",
      "date": "<string>",
      "participant_count": 123
    },
    "article": {
      "@type": "LinkedinUserPostArticle",
      "url": "<string>",
      "urn": {
        "type": "fsd_company",
        "value": "<string>"
      },
      "image": "<string>",
      "title": "<string>",
      "subtitle": "<string>",
      "description": "<string>"
    },
    "document": {
      "@type": "LinkedinUserPostDocument",
      "urn": {
        "type": "<string>",
        "value": "<string>"
      },
      "url": "<string>",
      "title": "<string>",
      "cover_images": [
        "<string>"
      ],
      "images": [
        "<string>"
      ],
      "total_images_count": 123
    }
  }
]

Headers

access-token
string
required

Body

application/json
count
integer
required

Max result count

Required range: 0 < x <= 1000
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keywords
string
default:""

Any keyword for searching in the post. For exact search put desired keywords into brackets

Examples:
{
"exact search": "\"macadamia ltd\" pty",
"example": "microsoft"
}
sort
enum<string>

Sort type

Available options:
relevance,
recent
date_posted
enum<string>
default:past-month

Date posted

Available options:
past-month,
past-week,
past-24h
content_type
enum<string> | null

Desired content type

Available options:
videos,
photos,
jobs,
live_videos,
documents
mentioned
LinkedinURN[Literal[<LinkedinURNPrefix.fsd_profile: 'fsd_profile'>, <LinkedinURNPrefix.company: 'company'>]] · object[] | null

Mentioned users URN in posts

authors
LinkedinURN[Literal[<LinkedinURNPrefix.fsd_profile: 'fsd_profile'>, <LinkedinURNPrefix.company: 'company'>]] · object[] | null

Authors URN of posts

author_industries

Industry URN, can be obtained in /linkedin/search/industries. Or industry name.

Examples:
{
"by keyword": "IT",
"by urn": ["urn:li:industry:96"]
}
author_title
string | null

Author job title.

Response

Successful Response

urn
object
required
url
string
required
@type
string
default:LinkedinUserPost
author
object | null
  • LinkedinUserPostUser
  • LinkedinUserPostRepostedUser
  • LinkedinCompanyPostCompany
created_at
integer
default:0
share_urn
object | null
is_empty_repost
boolean | null
repost
object | null
images
string[] | null
video_url
string | null
text
string | null
comment_count
integer | null
share_count
integer | null
reactions
LinkedinReaction · object[] | null
event
object | null
article
object | null
document
object | null
I