List LinkedIn profile comments
Fetch recent LinkedIn posts a public profile has commented on.
POST
/
api
/
v1
/
platform
/
scrapers
/
linkedin
/
profile-comments
List LinkedIn profile comments
curl --request POST \
--url https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--header 'X-Secret-Key: <api-key>' \
--data '
{
"profiles": [
"https://www.linkedin.com/in/satyanadella",
"some-public-id"
],
"maxItems": 10,
"postedLimit": "any"
}
'const options = {
method: 'POST',
headers: {
'X-Access-Key': '<api-key>',
'X-Secret-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
profiles: ['https://www.linkedin.com/in/satyanadella', 'some-public-id'],
maxItems: 10,
postedLimit: 'any'
})
};
fetch('https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments"
payload = {
"profiles": ["https://www.linkedin.com/in/satyanadella", "some-public-id"],
"maxItems": 10,
"postedLimit": "any"
}
headers = {
"X-Access-Key": "<api-key>",
"X-Secret-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": [
{
"profileUrl": "<string>",
"profileUsername": "<string>",
"commentText": "<string>",
"post": {
"postId": "<string>",
"postUrl": "<string>",
"text": "<string>",
"authorName": "<string>",
"authorProfileUrl": "<string>",
"authorCompanyUrl": "<string>",
"postedAt": "<string>",
"reactionCount": 123,
"commentCount": 123,
"repostCount": 123
},
"id": "<string>",
"commentedAt": "<string>",
"sourceUrl": "<string>",
"actor": {
"id": "<string>",
"name": "<string>",
"linkedinUrl": "<string>",
"position": "<string>",
"universalName": "<string>",
"pictureUrl": "<string>"
}
}
],
"meta": {
"requestId": "<string>"
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Validation failed",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b",
"errors": [
{
"property": "body.query",
"message": "query must be a string",
"constraints": {
"isString": "query must be a string"
}
}
]
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication is required.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Insufficient credits.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 502,
"error": "Bad Gateway",
"message": "An unexpected error occurred.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}POST /api/v1/platform/scrapers/linkedin/profile-comments
List posts a LinkedIn profile commented on.Retrieve recent public LinkedIn posts a profile has commented on. Provide profile URLs or public profile usernames.
See Find Outreach Hooks from LinkedIn Activity for an end-to-end script that combines profile comments and reactions into outreach context.
Options
profiles: LinkedIn/in/profile URLs or public profile usernames.maxItems: maximum comments to scrape per profile.postedLimit: optional post age filter. Accepted values:any,24h,week,month,3months,6months,year.
Example
curl -X POST https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments \
-H "X-Access-Key: ak_xxxxxxxxxxxxxxxx" \
-H "X-Secret-Key: sk_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"profiles": ["https://www.linkedin.com/in/satyanadella"], "maxItems": 10, "postedLimit": "month"}'
Authorizations
The public API key from the Credentials page.
The API secret shown when the credential is created.
Body
application/json
LinkedIn profile URLs or public profile usernames.
Example:
[ "https://www.linkedin.com/in/satyanadella", "some-public-id" ]
Required range:
1 <= x <= 100Fetch posts no older than this time window.
Available options:
any, 24h, week, month, 3months, 6months, year ⌘I
List LinkedIn profile comments
curl --request POST \
--url https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--header 'X-Secret-Key: <api-key>' \
--data '
{
"profiles": [
"https://www.linkedin.com/in/satyanadella",
"some-public-id"
],
"maxItems": 10,
"postedLimit": "any"
}
'const options = {
method: 'POST',
headers: {
'X-Access-Key': '<api-key>',
'X-Secret-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
profiles: ['https://www.linkedin.com/in/satyanadella', 'some-public-id'],
maxItems: 10,
postedLimit: 'any'
})
};
fetch('https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://developer.thehog.ai/api/v1/platform/scrapers/linkedin/profile-comments"
payload = {
"profiles": ["https://www.linkedin.com/in/satyanadella", "some-public-id"],
"maxItems": 10,
"postedLimit": "any"
}
headers = {
"X-Access-Key": "<api-key>",
"X-Secret-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": [
{
"profileUrl": "<string>",
"profileUsername": "<string>",
"commentText": "<string>",
"post": {
"postId": "<string>",
"postUrl": "<string>",
"text": "<string>",
"authorName": "<string>",
"authorProfileUrl": "<string>",
"authorCompanyUrl": "<string>",
"postedAt": "<string>",
"reactionCount": 123,
"commentCount": 123,
"repostCount": 123
},
"id": "<string>",
"commentedAt": "<string>",
"sourceUrl": "<string>",
"actor": {
"id": "<string>",
"name": "<string>",
"linkedinUrl": "<string>",
"position": "<string>",
"universalName": "<string>",
"pictureUrl": "<string>"
}
}
],
"meta": {
"requestId": "<string>"
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Validation failed",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b",
"errors": [
{
"property": "body.query",
"message": "query must be a string",
"constraints": {
"isString": "query must be a string"
}
}
]
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication is required.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Insufficient credits.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}{
"statusCode": 502,
"error": "Bad Gateway",
"message": "An unexpected error occurred.",
"path": "/api/v1/search",
"timestamp": "2026-05-21T09:08:10.000Z",
"requestId": "506af9b3-01a9-43be-9eb4-8458fe3e4f5b"
}