Skip to content
Enricho

Profile comments

GET /v1/profile-comments $0.0400 per request

Get comments of LinkedIn profile by post URL.

Get comments of LinkedIn profile by post URL.

Try it

Runs against the sandbox, so it is free and needs no API key. The response shape is identical to the live endpoint.

GET /v1/profile-comments
Sandbox · free

Parameters

Billed equivalent


                

With a real key this call costs at Starter, less your tier discount.

Response


        

Query parameters

At least one of profile, profileId is required.

Parameter Example Description
profile required https://www.linkedin.com/in/satyanadella URL of the LinkedIn profile
profileId required Profile ID of the LinkedIn profile. It's faster to search by ID
page 4097.908013320009 Page number for pagination. Default is 1
paginationToken Required for pages > 1. Use this token from the previous page response.
postedLimit Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'

Code

curl 'https://api.enricho.io/v1/profile-comments?profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fsatyanadella' \
  -H 'X-API-Key: YOUR_API_KEY'
import requests

response = requests.get(
    "https://api.enricho.io/v1/profile-comments",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={
    'profile': 'https://www.linkedin.com/in/satyanadella',
},
    timeout=30,
)

response.raise_for_status()

# Every response reports what it cost and what is left.
print(response.headers["X-Request-Cost"], response.headers["X-Balance-Remaining"])
print(response.json())
const params = new URLSearchParams({
    "profile": "https://www.linkedin.com/in/satyanadella"
});

const response = await fetch(`https://api.enricho.io/v1/profile-comments?${params}`, {
  headers: { 'X-API-Key': 'YOUR_API_KEY' },
});

if (!response.ok) {
  throw new Error(`${response.status}: ${(await response.json()).error.message}`);
}

console.log(response.headers.get('X-Request-Cost'));
console.log(await response.json());
$client = new GuzzleHttp\Client();

$response = $client->get('https://api.enricho.io/v1/profile-comments', [
    'headers' => ['X-API-Key' => 'YOUR_API_KEY'],
    'query' => [
        'profile' => 'https://www.linkedin.com/in/satyanadella',
    ],
    'timeout' => 30,
]);

echo $response->getHeaderLine('X-Request-Cost');

$data = json_decode((string) $response->getBody(), true);

Example response

{
    "pagination": null,
    "elements": null,
    "error": "No valid source provided.",
    "status": 400,
    "query": []
}

Error response

Full list of codes on the errors page.

{
    "error": {
        "code": "invalid_params",
        "message": "profile-comments requires at least one of: profile, profileId.",
        "docs": "https://enricho.io/docs/errors#invalid_params",
        "required_one_of": [
            "profile",
            "profileId"
        ]
    }
}