Get Profile Comments
curl --request POST \
--url https://api.linkupapi.com/v2/profiles \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"account_id": "<string>",
"action": "<string>",
"params": {
"profile_url": "<string>",
"count": 123,
"cursor": "<string>"
}
}
'import requests
url = "https://api.linkupapi.com/v2/profiles"
payload = {
"account_id": "<string>",
"action": "<string>",
"params": {
"profile_url": "<string>",
"count": 123,
"cursor": "<string>"
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
action: '<string>',
params: {profile_url: '<string>', count: 123, cursor: '<string>'}
})
};
fetch('https://api.linkupapi.com/v2/profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkupapi.com/v2/profiles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'action' => '<string>',
'params' => [
'profile_url' => '<string>',
'count' => 123,
'cursor' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkupapi.com/v2/profiles"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkupapi.com/v2/profiles")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v2/profiles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"comments": [
{
"comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)",
"comment_content": "Great insights! Completely agree.",
"comment_time": "89d",
"comment_time_days": 89,
"commenter": {
"name": "Jane Doe",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/...",
"entity_urn": "ACoAA...",
"headline": "Product Manager at Acme Corp"
},
"post": {
"urn": "urn:li:ugcPost:7421567698184323073",
"url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073",
"content": "After 6 years as a consultant, I'm thrilled to share...",
"author": {
"name": "John Smith",
"profile_url": "https://www.linkedin.com/in/john-smith-99",
"entity_urn": "urn:li:fsd_profile:ACoAA..."
}
}
}
],
"total_results": 1,
"profile_url": "https://www.linkedin.com/in/jane-doe-42/",
"entity_urn": "ACoAA...",
"profile_urn": "urn:li:fsd_profile:ACoAA...",
"pagination": {
"results_per_page": 50,
"pages_fetched": 1,
"has_more": true,
"next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA=="
}
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T08:35:34Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "profile_url is required."
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 0,
"timestamp": "2026-04-26T08:35:34Z"
}
}
Profiles
Get Profile Comments
Retrieve the comments made by a user on posts and articles.
POST
/
v2
/
profiles
Get Profile Comments
curl --request POST \
--url https://api.linkupapi.com/v2/profiles \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"account_id": "<string>",
"action": "<string>",
"params": {
"profile_url": "<string>",
"count": 123,
"cursor": "<string>"
}
}
'import requests
url = "https://api.linkupapi.com/v2/profiles"
payload = {
"account_id": "<string>",
"action": "<string>",
"params": {
"profile_url": "<string>",
"count": 123,
"cursor": "<string>"
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
action: '<string>',
params: {profile_url: '<string>', count: 123, cursor: '<string>'}
})
};
fetch('https://api.linkupapi.com/v2/profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkupapi.com/v2/profiles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'action' => '<string>',
'params' => [
'profile_url' => '<string>',
'count' => 123,
'cursor' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkupapi.com/v2/profiles"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkupapi.com/v2/profiles")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v2/profiles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"action\": \"<string>\",\n \"params\": {\n \"profile_url\": \"<string>\",\n \"count\": 123,\n \"cursor\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"comments": [
{
"comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)",
"comment_content": "Great insights! Completely agree.",
"comment_time": "89d",
"comment_time_days": 89,
"commenter": {
"name": "Jane Doe",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/...",
"entity_urn": "ACoAA...",
"headline": "Product Manager at Acme Corp"
},
"post": {
"urn": "urn:li:ugcPost:7421567698184323073",
"url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073",
"content": "After 6 years as a consultant, I'm thrilled to share...",
"author": {
"name": "John Smith",
"profile_url": "https://www.linkedin.com/in/john-smith-99",
"entity_urn": "urn:li:fsd_profile:ACoAA..."
}
}
}
],
"total_results": 1,
"profile_url": "https://www.linkedin.com/in/jane-doe-42/",
"entity_urn": "ACoAA...",
"profile_urn": "urn:li:fsd_profile:ACoAA...",
"pagination": {
"results_per_page": 50,
"pages_fetched": 1,
"has_more": true,
"next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA=="
}
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T08:35:34Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "profile_url is required."
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 0,
"timestamp": "2026-04-26T08:35:34Z"
}
}
Overview
Fetches the list of comments made by a specified user on posts and articles. Pagination is cursor-based — pass thenext_cursor returned by a previous call to fetch the next page.
This endpoint consumes 1 credit per 10 results returned. The platform returns up to 50 comments per internal request, so requesting
count: 100 triggers only 2 upstream calls. Ignore this if you’re on per-seat pricing: usage is unlimited.Request
string
required
Your API key for authentication.
string
required
The unique identifier of the account to use.
string
required
Must be
"get_comments".object
Response
boolean
Indicates whether the request was successful.
object
Show data properties
Show data properties
array
List of comments made by the user.
Show comment item properties
Show comment item properties
string
Internal identifier of the comment update.
string
The text content of the comment.
string
Relative time of the comment (e.g.
"6h", "3d").integer
Age of the comment expressed in days.
object
The author of the comment (name, profile_url, profile_picture, entity_urn, headline).
object
The post the comment was made on (urn, url, content, author).
object
When the comment is a reply, holds the parent comment’s author info.
integer
Number of comments returned in this response.
string
The profile URL that was queried.
string
Unique identifier of the queried profile.
string
The full URN of the queried profile. Treat it as an opaque string and pass it back exactly as returned.
object
Show pagination properties
Show pagination properties
integer
Maximum batch size used per upstream request (50).
integer
Number of internal upstream batches consumed to assemble this response.
boolean
true if more results are available — pass next_cursor in the next request.string
Cursor to send as
cursor in the next request to resume pagination. null when the end is reached.object
{
"success": true,
"data": {
"comments": [
{
"comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)",
"comment_content": "Great insights! Completely agree.",
"comment_time": "89d",
"comment_time_days": 89,
"commenter": {
"name": "Jane Doe",
"profile_url": "https://www.linkedin.com/in/jane-doe-42",
"profile_picture": "https://media.licdn.com/dms/image/...",
"entity_urn": "ACoAA...",
"headline": "Product Manager at Acme Corp"
},
"post": {
"urn": "urn:li:ugcPost:7421567698184323073",
"url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073",
"content": "After 6 years as a consultant, I'm thrilled to share...",
"author": {
"name": "John Smith",
"profile_url": "https://www.linkedin.com/in/john-smith-99",
"entity_urn": "urn:li:fsd_profile:ACoAA..."
}
}
}
],
"total_results": 1,
"profile_url": "https://www.linkedin.com/in/jane-doe-42/",
"entity_urn": "ACoAA...",
"profile_urn": "urn:li:fsd_profile:ACoAA...",
"pagination": {
"results_per_page": 50,
"pages_fetched": 1,
"has_more": true,
"next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA=="
}
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 1,
"timestamp": "2026-04-26T08:35:34Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "profile_url is required."
},
"metadata": {
"action": "get_comments",
"account_id": "your-account-id",
"credits_consumed": 0,
"timestamp": "2026-04-26T08:35:34Z"
}
}
Was this page helpful?