Linkedin comment API

Let your AI agent or product engage on LinkedIn. Automate comments and interactions to build visibility.

< 4
s

Avg Response

+ 50

Endpoints

99.9
%

Uptime

import requests

url = "https://api.linkupapi.com/v1/posts/comment"

payload = {
    "post_url": "<string>",
    "message": "<string>",
    "country": "<string>",
    "login_token": "<string>"
}
headers = {
    "x-api-key": "<x-api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
1const url = 'https://api.linkupapi.com/v1/posts/comment';
2const options = {
3  method: 'POST',
4  headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
5  body: '{"post_url":"<string>","message":"<string>","login_token":"<string>"}'
6};
7
8try {
9  const response = await fetch(url, options);
10  const data = await response.json();
11  console.log(data);
12} catch (error) {
13  console.error(error);
14}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.linkupapi.com/v1/posts/comment",
  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>',
    'message' => '<string>',
    'login_token' => '<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;
}
1package main
2
3import (
4	"fmt"
5	"strings"
6	"net/http"
7	"io"
8)
9
10func main() {
11
12	url := "https://api.linkupapi.com/v1/posts/comment"
13
14	payload := strings.NewReader("{\n  \"post_url\": \"<string>\",\n  \"message\": \"<string>\",\n  \"login_token\": \"<string>\"\n}")
15
16	req, _ := http.NewRequest("POST", url, payload)
17
18	req.Header.Add("x-api-key", "<x-api-key>")
19	req.Header.Add("Content-Type", "application/json")
20
21	res, _ := http.DefaultClient.Do(req)
22
23	defer res.Body.Close()
24	body, _ := io.ReadAll(res.Body)
25
26	fmt.Println(res)
27	fmt.Println(string(body))
28
29}
1HttpResponse<String> response = Unirest.post("https://api.linkupapi.com/v1/posts/comment")
2  .header("x-api-key", "<x-api-key>")
3  .header("Content-Type", "application/json")
4  .body("{\n  \"post_url\": \"<string>\",\n  \"message\": \"<string>\",\n  \"login_token\": \"<string>\"\n}")
5  .asString();

Engage Through LinkedIn Comments

Your AI agent or platform can automatically engage with relevant content from your network. Perfect for increasing brand presence, nurturing leads, and staying top-of-mind with prospects.

The API handles comment posting with natural timing and supports text-based interactions on any public or connection post.

Automatically engage with content from your target audience, industry leaders, or prospects to build meaningful relationships at scale. The system intelligently processes your comments while maintaining authentic engagement patterns.

Ideal for thought leadership campaigns, lead warming strategies, competitor monitoring with strategic responses, community building, and maintaining active presence in your industry conversations.

1{
2  "status": "success",
3  "message": "Comment posted successfully"
4}

Marc Dubois

Co-founder & CTO Building the future of AI-powered sales automation

  • Comment posted successfully
  • Comment posted successfully

Privacy and security with no compromise.

Enterprise-grade security measures ensuring your data remains protected at every step of the process.

Real-Time Processing

Process data instantly without storage, ensuring maximum security and optimal performance for all operations.

Zero-Storage Architecture

Our unique architecture processes data on-the-fly without permanent storage, eliminating potential security vulnerabilities.

Enterprise Compliance

Built-in compliance with GDPR, CCPA, and major industry security standards for comprehensive data protection.

Turn your dream workflow into reality

LinkupAPI is integrated with top AI orchestration platforms to power any agentic workflow.

LinkupAPI V2 - See what’s new

Launch LinkedIn campaigns, scrape intent signals, and enrich profiles in seconds. All through one powerful API platform.

50
+

Endpoints

99.9
%

Uptime

< 3
s

Avg Response