Skip to main content
POST
/
api
/
v1
/
platform
/
scrapers
/
linkedin
/
keyword-posts
Search LinkedIn posts
curl --request POST \
  --url https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/keyword-posts \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --header 'X-Secret-Key: <api-key>' \
  --data '
{
  "keyword": "b2b saas",
  "config": {
    "limit": 250.5,
    "matchMode": "exact"
  }
}
'
{
  "data": [
    {
      "activityId": "<string>",
      "text": "<string>",
      "postUrl": "<string>",
      "postedAt": "<string>",
      "authorName": "<string>",
      "authorHeadline": "<string>",
      "authorProfileUrl": "<string>",
      "authorProfileUsername": "<string>",
      "totalReactions": 123,
      "commentsCount": 123,
      "repostsCount": 123,
      "isReshare": true,
      "repostedBy": {
        "name": "<string>",
        "publicIdentifier": "<string>"
      },
      "contentType": "<string>",
      "contentData": {},
      "hashtags": [
        "<string>"
      ]
    }
  ],
  "meta": {
    "requestId": "<string>"
  }
}

POST /api/v1/platform/scrapers/linkedin/keyword-posts

Search LinkedIn posts by keyword.
Retrieve LinkedIn posts matching a keyword, with optional match mode, sort, and date filters. config.matchMode defaults to exact, which searches the keyword as a quoted phrase. Use broad to send the keyword without phrase quotes and let LinkedIn match related terms.

Example

curl -X POST https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/keyword-posts \
  -H "X-Access-Key: ak_xxxxxxxxxxxxxxxx" \
  -H "X-Secret-Key: sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "b2b saas", "config": {"limit": 25, "matchMode": "broad", "sortBy": "recent", "dateFilter": "past-week"}}'

Authorizations

X-Access-Key
string
header
required

The public API key from the Credentials page.

X-Secret-Key
string
header
required

The API secret shown when the credential is created.

Body

application/json
keyword
string
required
Example:

"b2b saas"

config
object

Response

LinkedIn posts matching a keyword.

data
object[]
required
meta
object
required