Profile Views and Reactions
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/linkedin/profile-view \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"identifier": "<string>",
"notify": true,
"sections": [
"<string>"
],
"post_id": "<string>",
"reaction_type": "<string>"
}
'import requests
url = "https://win.oneshotagent.com/v1/tools/linkedin/profile-view"
payload = {
"account_id": "<string>",
"identifier": "<string>",
"notify": True,
"sections": ["<string>"],
"post_id": "<string>",
"reaction_type": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
identifier: '<string>',
notify: true,
sections: ['<string>'],
post_id: '<string>',
reaction_type: '<string>'
})
};
fetch('https://win.oneshotagent.com/v1/tools/linkedin/profile-view', 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://win.oneshotagent.com/v1/tools/linkedin/profile-view",
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>',
'identifier' => '<string>',
'notify' => true,
'sections' => [
'<string>'
],
'post_id' => '<string>',
'reaction_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://win.oneshotagent.com/v1/tools/linkedin/profile-view"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://win.oneshotagent.com/v1/tools/linkedin/profile-view")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/linkedin/profile-view")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyLinkedIn
Profile Views and Reactions
View a profile or react to a post through a connected account that granted view_profile / react.
POST
/
v1
/
tools
/
linkedin
/
profile-view
Profile Views and Reactions
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/linkedin/profile-view \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"identifier": "<string>",
"notify": true,
"sections": [
"<string>"
],
"post_id": "<string>",
"reaction_type": "<string>"
}
'import requests
url = "https://win.oneshotagent.com/v1/tools/linkedin/profile-view"
payload = {
"account_id": "<string>",
"identifier": "<string>",
"notify": True,
"sections": ["<string>"],
"post_id": "<string>",
"reaction_type": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
identifier: '<string>',
notify: true,
sections: ['<string>'],
post_id: '<string>',
reaction_type: '<string>'
})
};
fetch('https://win.oneshotagent.com/v1/tools/linkedin/profile-view', 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://win.oneshotagent.com/v1/tools/linkedin/profile-view",
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>',
'identifier' => '<string>',
'notify' => true,
'sections' => [
'<string>'
],
'post_id' => '<string>',
'reaction_type' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://win.oneshotagent.com/v1/tools/linkedin/profile-view"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://win.oneshotagent.com/v1/tools/linkedin/profile-view")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/linkedin/profile-view")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"identifier\": \"<string>\",\n \"notify\": true,\n \"sections\": [\n \"<string>\"\n ],\n \"post_id\": \"<string>\",\n \"reaction_type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyTwo paid, idempotent actions: view a profile, or react to a post. Both share the contract of Reply: fixed price per action,
Result (job
The summary holds public fields only: no contact info, no pictures.
Idempotency-Key required, rejections before payment, per-account daily caps with randomized spacing (paced separately from replies), and a grant check just before the action runs.
A 202 means the action was accepted and charged. A failure before anything reaches LinkedIn (grant changed, account disconnected, daily cap reached) is refunded as credit. An action that started sending stays charged.
Profile view
POST /v1/tools/linkedin/profile-view. Requires the view_profile grant. Default limit 100 views per account per day, notifying or not.
Public identifier (
jane-doe), LinkedIn’s external_id for the person, or a linkedin.com/in/<slug> URL.true shows the human in the target’s “who viewed your profile”. Cannot be undone.Extra sections to return. The only value is
"experience"; an unknown value is rejected with 400 before payment. Same price, cap and pacing as a plain view.completed):
{
"action_request_id": "…", "action": "view_profile", "status": "sent",
"profile": {
"external_id": "…", "public_identifier": "jane-doe", "name": "Jane Doe",
"headline": "CTO at …", "location": "Austin, Texas", "network_distance": "DISTANCE_2", "is_open_profile": null
}
}
Experience
Withsections: ["experience"] the result also carries:
{
"profile": {
"name": "Jane Doe", "headline": "Co-founder and CEO at Northwind Test Co",
"experience": [
{ "company": "Northwind Test Co", "title": "Co-founder and CEO", "start": "3/1/2024", "end": null, "current": true, "location": "Springfield" },
{ "company": "Contoso Sample Ltd", "title": "Analyst", "start": "6/1/2021", "end": "2/1/2024", "current": false, "location": null }
],
"experience_complete": true
}
}
- Without
sectionsthe result has noexperienceorexperience_completekeys; the SDK’slinkedinViewProfilereturns both asnull. - Entries are in LinkedIn’s order.
startandendare passed through as given.currentisfalsefor a position with anend, otherwisetruewhen LinkedIn marks it current or gives no flag and the position has astart. An entry with no company is dropped. No descriptions, pictures or company links. []means the profile shows no experience only whenexperience_completeistrue.experience_completeisfalsewhen LinkedIn held the section back, returned no readable list, reported more positions than it returned, or listed a position with no company. Only the held-back case may clear on a later request.
Reaction
POST /v1/tools/linkedin/react. Requires the react grant. Default limit 50 reactions per account per day. “Already reacted” counts as success. This API cannot remove a reaction.
When an action fails
A timeout or server error is retried once. If the retry also fails, the action fails withservice_unavailable. There is no ambiguous state. Other codes: grant_revoked, account_disconnected, target_not_found, content_rejected, rate_limited, account_send_limit.
Response and errors
Same202 shape as Reply, with action set to view_profile / react and no conversation_id, and the same pre-payment error table minus the conversation-specific codes.
Examples
const view = await agent.linkedinViewProfile({ accountId, identifier: 'https://www.linkedin.com/in/jane-doe/', notify: true, memo: 'warm-up before outreach' });
console.log(view.profile.headline);
const current = await agent.linkedinViewProfile({ accountId, identifier: 'jane-doe', sections: ['experience'] });
if (current.profile.experience_complete) console.log(current.profile.experience?.filter((e) => e.current));
await agent.linkedinReact({ accountId, postId: 'urn:li:activity:7100000000000000000', reactionType: 'insightful', memo: 'engage with prospect post' });
client.linkedin_view_profile(account_id, "jane-doe", notify=True)
client.linkedin_react(account_id, "urn:li:activity:7100000000000000000", reaction_type="celebrate")