React to Post
curl --request POST \
--url https://api.linkupapi.com/v1/posts/react \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"post_url": "<string>",
"reaction_type": "<string>",
"country": "<string>",
"login_token": "<string>",
"company_url": "<string>"
}
'import requests
url = "https://api.linkupapi.com/v1/posts/react"
payload = {
"post_url": "<string>",
"reaction_type": "<string>",
"country": "<string>",
"login_token": "<string>",
"company_url": "<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({
post_url: '<string>',
reaction_type: '<string>',
country: '<string>',
login_token: '<string>',
company_url: '<string>'
})
};
fetch('https://api.linkupapi.com/v1/posts/react', 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/v1/posts/react",
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([
'post_url' => '<string>',
'reaction_type' => '<string>',
'country' => '<string>',
'login_token' => '<string>',
'company_url' => '<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/v1/posts/react"
payload := strings.NewReader("{\n \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\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/v1/posts/react")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v1/posts/react")
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 \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Post reacted successfully"
}
Content & Posts
React to Post
Add a reaction to a LinkedIn post with different reaction types
POST
/
v1
/
posts
/
react
React to Post
curl --request POST \
--url https://api.linkupapi.com/v1/posts/react \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"post_url": "<string>",
"reaction_type": "<string>",
"country": "<string>",
"login_token": "<string>",
"company_url": "<string>"
}
'import requests
url = "https://api.linkupapi.com/v1/posts/react"
payload = {
"post_url": "<string>",
"reaction_type": "<string>",
"country": "<string>",
"login_token": "<string>",
"company_url": "<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({
post_url: '<string>',
reaction_type: '<string>',
country: '<string>',
login_token: '<string>',
company_url: '<string>'
})
};
fetch('https://api.linkupapi.com/v1/posts/react', 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/v1/posts/react",
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([
'post_url' => '<string>',
'reaction_type' => '<string>',
'country' => '<string>',
'login_token' => '<string>',
'company_url' => '<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/v1/posts/react"
payload := strings.NewReader("{\n \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\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/v1/posts/react")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v1/posts/react")
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 \"post_url\": \"<string>\",\n \"reaction_type\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\",\n \"company_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Post reacted successfully"
}
Add various types of reactions to any LinkedIn post using the post URL.
This endpoint costs 1 credit per request. Ignore this if you’re on per-seat pricing: usage is unlimited.
Header Parameters
string
required
Your API key
Body Parameters
string
required
URL of the LinkedIn post to react to (supports multiple formats)
string
default:"LIKE"
Type of reaction to add. Available options: LIKE, PRAISE, APPRECIATION, EMPATHY, INTEREST, ENTERTAINMENT
string
default:"FR"
Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
string
required
LinkedIn authentication cookie obtained from the login/verify process
string
URL of the LinkedIn company page to react as (e.g., “https://www.linkedin.com/company/your-company”). If provided, the reaction will be performed on behalf of the company page instead of the personal profile.
Response
string
Request status (success/error)
string
Detailed status message about the reaction request
{
"status": "success",
"message": "Post reacted successfully"
}
Reaction Types
The following reaction types are supported:- LIKE - Standard like reaction (default)
- PRAISE - Celebrate/praise reaction
- APPRECIATION - Support/appreciation reaction
- EMPATHY - Care/empathy reaction
- INTEREST - Insightful/interest reaction
- ENTERTAINMENT - Funny/entertainment reaction
Notes
- Supports multiple post URL formats:
- Feed updates:
https://www.linkedin.com/feed/update/urn:li:activity:... - Profile posts:
https://www.linkedin.com/posts/user-activity-... - Group posts:
https://www.linkedin.com/feed/update/urn:li:groupPost:...
- Feed updates:
- The post must be accessible with the provided login token
- A post can only be reacted to once by the same user per reaction type
- LinkedIn’s rate limits apply to reaction operations
- The reaction is performed with the identity associated with the login token
- Company Page Reactions: When
company_urlis provided, the reaction will be posted on behalf of the company page. You must have admin rights on the company page to use this feature. - Some posts may have reactions disabled by their authors
- Posts from private groups or connections may not be accessible
- The API automatically detects the post type (share, article, etc.)
- If no reaction_type is specified, defaults to “LIKE”
Was this page helpful?