Enrich API Documentation
  • Introduction
    • Authentication
    • Rate Limit
    • Credit Usage
  • Reference
    • Check Credit Usage
    • Email to Profile data
    • Email to IP
    • Email Finder
    • Profile URL to Work Email V2
    • Profile URL to Personal Email
    • Verify Emails—Even Behind Catch-Alls
    • Company Lookup
    • Company Funding and Traffic
    • Linkedin Public Profile Enrichment
    • Phone Number Finder
    • Find post details by URL
    • Search Posts
    • Bulk enrichment
    • Email to Phone Number
    • Email to Person Lite
    • Reverse email append
    • Disposable/Spam Email Check
    • IP to Company
    • Logo API
    • Search People Activities
    • Search Company Activities
    • Search Post Reactions
    • Search Post Reactions by URL
    • Search Post Comments
    • Search Post Comments by URL
    • Search Company
    • Search Similar Companies
    • Search People
    • Sales Pointer - Dynamic Filters
    • Sales Pointer - People
    • Sales Pointer - People by URL
    • Sales Pointer - Company
    • Sales Pointer - Company by URL
    • Search Company Employees
    • Search Jobs
    • Web search
    • Serp Search
    • News Search
    • Maps Search
    • Places Search
    • Videos Search
    • Shopping Search
    • Image Search
  • Changelog
Powered by GitBook
On this page
  1. Reference

Search Post Comments

Retrieve the list of comments associated with a specific LinkedIn post (activity) by its URN. The results are paginated, allowing you to browse through all the comments page by page.

cURL 'https://api.enrich.so/v1/api/search-comments?page=1&post_urn=urn:li:activity:7191163324208705536' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');

axios.get('https://api.enrich.so/v1/api/search-comments?page=1&post_urn=urn:li:activity:7191163324208705536', {
    headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });// Some code
import requests
payload = {'post_urn': 'urn:li:activity:7191163324208705536', 'page': 1}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/search-comments', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.enrich.so/v1/api/search-comments?page=1&post_urn=urn:li:activity:7191163324208705536")
  .get()
  .addHeader("accept", "application/json")
  .addHeader("authorization", "Bearer <token>")
  .build();

Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'

url = URI("https://api.enrich.so/v1/api/search-comments?page=1&post_urn=urn:li:activity:7191163324208705536")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.enrich.so/v1/api/search-comments?page=1&post_urn=urn:li:activity:7191163324208705536",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Example response

Status code: 200 OK

{
    "success": true,
    "message": "Comments for post found.",
    "data": {
        "page": 1,
        "total_page": 1,
        "num": 10,
        "data": [
            {
                "activity_id": "urn:li:comment:(activity:7191163324208705536,7286859261794508800)",
                "commentary": "Enrich Labs Are you still in business ?",
                "reaction_breakdown": {
                    "likes": 0,
                    "empathy": 0,
                    "other": 0
                },
                "li_url": "https://www.linkedin.com/feed/update/urn:li:activity:7191163324208705536?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7191163324208705536%2C7286859261794508800%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287286859261794508800%2Curn%3Ali%3Aactivity%3A7191163324208705536%29",
                "commenter": {
                    "profile_id": "ACoAABTUdYoBYrUSoum-8GS9tLtOGxWtogekpXQ",
                    "first_name": "Ahmed",
                    "last_name": "☁",
                    "sub_title": "Business Development Manager | Scaling SaaS, DaaS & PaaS Companies | Lead Generation, Sales Strategy & Customer Success",
                    "profile_picture": "https://media.licdn.com/dms/image/v2/C4D03AQG-8kDO3snxew/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1597112776588?e=1749686400&v=beta&t=WCevYqYp2xifNyVAVkAYT8CS6LRqQFGwWqK6buES-Is",
                    "background_image": "",
                    "entity_urn": "ACoAABTUdYoBYrUSoum-8GS9tLtOGxWtogekpXQ",
                    "object_urn": 0,
                    "profile_type": ""
                }
            }
        ]
    },
    "total_credits": 36075,
    "credits_used": 22455.049999999548,
    "credits_remaining": 13619.950000000452
}
PreviousSearch Post Reactions by URLNextSearch Post Comments by URL

Last updated 1 month ago