Get Person Activities Comments
curl --request GET \
--url 'https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey='import requests
url = "https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=', 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.scrapin.io/v1/enrichment/persons/activities/comments?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"credits_consumed": 2,
"credits_left": 19934.5,
"rate_limit_left": 19999,
"daily_rate_limit_left": 19999,
"minute_rate_limit_left": 499,
"next_minute_rate_limit_reset": "2024-01-15T10:31:00Z",
"quotas": {
"credits": {
"total": 10000,
"used": 1234,
"left": 8766
},
"daily_rate_limit": {
"limit": 5000,
"used": 150,
"left": 4850,
"next_reset": "2024-10-31T12:46:00.000Z"
},
"minute_rate_limit": {
"limit": 500,
"used": 12,
"left": 488,
"next_reset": "2024-10-31T12:46:00.000Z"
}
},
"metadata": {
"source": "fresh",
"request_id": "000xcc2a-829a-4200-9704-f6f9cf9a23de"
},
"comments": [
{
"text": "This is an excellent opportunity!",
"reactionsCount": 12,
"commentsCount": 4,
"activityDate": "2025-01-15T10:20:30.000Z",
"author": {
"authorId": "ACoAACZKXYMBEJLkU3PzN_XDp9YAUEZTJ9VBdQ1",
"authorName": "Marie Dupont",
"authorPublicIdentifier": "marie-dupont"
},
"activityUrl": "https://www.social.com/feed/update/urn:li:activity:7283548161238761231",
"relatedPost": {
"activityId": "7283548161238761231",
"text": "We are launching a new product that will revolutionize the market! #Innovation",
"reactionsCount": 20,
"commentsCount": 5,
"activityDate": "2025-01-14T14:10:00.000Z",
"author": {
"authorId": "ACoAACYKLRQBOLOPQU9WV7F6DpTXAULWP5CDEF9",
"authorName": "John Smith",
"authorPublicIdentifier": "john-smith"
},
"activityUrl": "https://www.social.com/posts/john-smith_new-product-launch-activity-7283548161238761231",
"shareUrl": "https://www.social.com/posts/daily-dev-comparator-work-729304143471596032-4b0e",
"relatedPost": null
}
},
{
"text": "Good luck to the team on this ambitious project!",
"reactionsCount": 25,
"commentsCount": 2,
"activityDate": "2025-01-12T18:45:00.000Z",
"author": {
"authorId": "ACoAAHJLKXTGBYOEMZ9CQPTWVOATSFYIJ8CVZW2",
"authorName": "Lucas Morel",
"authorPublicIdentifier": "lucas-morel"
},
"activityUrl": "https://www.social.com/feed/update/urn:li:activity:7285567894563217890",
"relatedPost": {
"activityId": "7285567894563217890",
"text": "We are looking for experts to join our upcoming tech hackathon. Sign up now!",
"reactionsCount": 40,
"commentsCount": 15,
"activityDate": "2025-01-10T15:00:00.000Z",
"author": {
"authorId": "ACoAAKMZLYTBOLQQPV6TV9JDLPVZAWCXY5DGEFT",
"authorName": "Nina Brown",
"authorPublicIdentifier": "nina-brown"
},
"activityUrl": "https://www.social.com/posts/nina-brown_hackathon-tech-activity-7285567894563217890",
"shareUrl": "https://www.social.com/posts/daily-dev-comparator-work-729304143471596032-4b0e",
"relatedPost": null
}
}
]
}Person Comments
This operation allows you to retrieve the last 50 activity comments of a person based on their Profile URL. This operation consumes 2 credits.
GET
/
v1
/
enrichment
/
persons
/
activities
/
comments
Get Person Activities Comments
curl --request GET \
--url 'https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey='import requests
url = "https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=', 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.scrapin.io/v1/enrichment/persons/activities/comments?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrapin.io/v1/enrichment/persons/activities/comments?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"credits_consumed": 2,
"credits_left": 19934.5,
"rate_limit_left": 19999,
"daily_rate_limit_left": 19999,
"minute_rate_limit_left": 499,
"next_minute_rate_limit_reset": "2024-01-15T10:31:00Z",
"quotas": {
"credits": {
"total": 10000,
"used": 1234,
"left": 8766
},
"daily_rate_limit": {
"limit": 5000,
"used": 150,
"left": 4850,
"next_reset": "2024-10-31T12:46:00.000Z"
},
"minute_rate_limit": {
"limit": 500,
"used": 12,
"left": 488,
"next_reset": "2024-10-31T12:46:00.000Z"
}
},
"metadata": {
"source": "fresh",
"request_id": "000xcc2a-829a-4200-9704-f6f9cf9a23de"
},
"comments": [
{
"text": "This is an excellent opportunity!",
"reactionsCount": 12,
"commentsCount": 4,
"activityDate": "2025-01-15T10:20:30.000Z",
"author": {
"authorId": "ACoAACZKXYMBEJLkU3PzN_XDp9YAUEZTJ9VBdQ1",
"authorName": "Marie Dupont",
"authorPublicIdentifier": "marie-dupont"
},
"activityUrl": "https://www.social.com/feed/update/urn:li:activity:7283548161238761231",
"relatedPost": {
"activityId": "7283548161238761231",
"text": "We are launching a new product that will revolutionize the market! #Innovation",
"reactionsCount": 20,
"commentsCount": 5,
"activityDate": "2025-01-14T14:10:00.000Z",
"author": {
"authorId": "ACoAACYKLRQBOLOPQU9WV7F6DpTXAULWP5CDEF9",
"authorName": "John Smith",
"authorPublicIdentifier": "john-smith"
},
"activityUrl": "https://www.social.com/posts/john-smith_new-product-launch-activity-7283548161238761231",
"shareUrl": "https://www.social.com/posts/daily-dev-comparator-work-729304143471596032-4b0e",
"relatedPost": null
}
},
{
"text": "Good luck to the team on this ambitious project!",
"reactionsCount": 25,
"commentsCount": 2,
"activityDate": "2025-01-12T18:45:00.000Z",
"author": {
"authorId": "ACoAAHJLKXTGBYOEMZ9CQPTWVOATSFYIJ8CVZW2",
"authorName": "Lucas Morel",
"authorPublicIdentifier": "lucas-morel"
},
"activityUrl": "https://www.social.com/feed/update/urn:li:activity:7285567894563217890",
"relatedPost": {
"activityId": "7285567894563217890",
"text": "We are looking for experts to join our upcoming tech hackathon. Sign up now!",
"reactionsCount": 40,
"commentsCount": 15,
"activityDate": "2025-01-10T15:00:00.000Z",
"author": {
"authorId": "ACoAAKMZLYTBOLQQPV6TV9JDLPVZAWCXY5DGEFT",
"authorName": "Nina Brown",
"authorPublicIdentifier": "nina-brown"
},
"activityUrl": "https://www.social.com/posts/nina-brown_hackathon-tech-activity-7285567894563217890",
"shareUrl": "https://www.social.com/posts/daily-dev-comparator-work-729304143471596032-4b0e",
"relatedPost": null
}
}
]
}Request Tracking & Reporting
Found incorrect or missing data? Visit your API
Logs to view all requests and report issues
directly from the web interface.
- Go to app.scrapin.io/api-logs
- Find the request you want to report in the logs table
- Click the βReportβ button in the Actions column
- Select the issue type and add a description
The
request_id helps our team investigate and resolve issues quickly. All
enrichment requests are automatically logged for your convenience.Authorizations
Query Parameters
Response
The endpoint returns the activity comments from the Profile URL