Post Reposts
curl --request POST \
--url https://api.datamagnet.co/api/v1/post/reposts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"page": 123
}
'import requests
url = "https://api.datamagnet.co/api/v1/post/reposts"
payload = {
"url": "<string>",
"page": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', page: 123})
};
fetch('https://api.datamagnet.co/api/v1/post/reposts', 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.datamagnet.co/api/v1/post/reposts",
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([
'url' => '<string>',
'page' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.datamagnet.co/api/v1/post/reposts"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"page\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.datamagnet.co/api/v1/post/reposts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"page\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datamagnet.co/api/v1/post/reposts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"page\": 123\n}"
response = http.request(request)
puts response.read_body{
"cursor": 2,
"message": {
"reposts": [
{
"actor": {
"name": "Sarah Williams",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAABYJkyAB..."
},
"description": "Digital Consultant | SaaS Expert | AI Enthusiast",
"sub_description": "1yr • "
},
"commentary": "Great insights on professional development! Highly recommend reading this. #CareerGrowth"
},
{
"header": {
"reposter_image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAACSnIRcB..."
},
"navigation_context": "https://www.linkedin.com/feed/update/urn:li:activity:...",
"text": "Michael Chen reposted this",
"image_navigation_context": "https://www.linkedin.com/in/michael-chen..."
},
"actor": {
"name": "TechCo",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"company_id": "12345"
},
"description": "50,000 followers",
"sub_description": "1yr • "
},
"commentary": "What skills have contributed most to your career success?"
},
{
"actor": {
"name": "David Park",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAAEAZv-UB..."
},
"description": "Senior Software Engineer at BigTech",
"sub_description": "1yr • "
}
}
],
"total": 21
}
}
Post Reposts
Retrieve all reposts and shares of a LinkedIn post by URL, including the reposter’s profile and any added commentary for amplification tracking.
POST
/
api
/
v1
/
post
/
reposts
Post Reposts
curl --request POST \
--url https://api.datamagnet.co/api/v1/post/reposts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"page": 123
}
'import requests
url = "https://api.datamagnet.co/api/v1/post/reposts"
payload = {
"url": "<string>",
"page": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', page: 123})
};
fetch('https://api.datamagnet.co/api/v1/post/reposts', 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.datamagnet.co/api/v1/post/reposts",
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([
'url' => '<string>',
'page' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.datamagnet.co/api/v1/post/reposts"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"page\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.datamagnet.co/api/v1/post/reposts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"page\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datamagnet.co/api/v1/post/reposts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"page\": 123\n}"
response = http.request(request)
puts response.read_body{
"cursor": 2,
"message": {
"reposts": [
{
"actor": {
"name": "Sarah Williams",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAABYJkyAB..."
},
"description": "Digital Consultant | SaaS Expert | AI Enthusiast",
"sub_description": "1yr • "
},
"commentary": "Great insights on professional development! Highly recommend reading this. #CareerGrowth"
},
{
"header": {
"reposter_image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAACSnIRcB..."
},
"navigation_context": "https://www.linkedin.com/feed/update/urn:li:activity:...",
"text": "Michael Chen reposted this",
"image_navigation_context": "https://www.linkedin.com/in/michael-chen..."
},
"actor": {
"name": "TechCo",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"company_id": "12345"
},
"description": "50,000 followers",
"sub_description": "1yr • "
},
"commentary": "What skills have contributed most to your career success?"
},
{
"actor": {
"name": "David Park",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAAEAZv-UB..."
},
"description": "Senior Software Engineer at BigTech",
"sub_description": "1yr • "
}
}
],
"total": 21
}
}
Post Reposts
Cost:10 credits / successful request.
This endpoint retrieves all reposts of a LinkedIn post. Simply provide the LinkedIn post URL and the API will return paginated reposts with actor details and any commentary added.
Post reposts endpoint
This endpoint allows you to get reposts from any LinkedIn post by providing its URL.Required attributes
string
required
The LinkedIn post URL. Supports multiple URL formats:
https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXXhttps://www.linkedin.com/posts/username_slug-ugcPost-7430527985071595520-XXXXhttps://www.linkedin.com/feed/update/urn:li:activity:7430615551086850048
Optional attributes
integer
default:"1"
Page number for pagination. Use the
cursor value from the previous response to get the next page.Response
{
"cursor": 2,
"message": {
"reposts": [
{
"actor": {
"name": "Sarah Williams",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAABYJkyAB..."
},
"description": "Digital Consultant | SaaS Expert | AI Enthusiast",
"sub_description": "1yr • "
},
"commentary": "Great insights on professional development! Highly recommend reading this. #CareerGrowth"
},
{
"header": {
"reposter_image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAACSnIRcB..."
},
"navigation_context": "https://www.linkedin.com/feed/update/urn:li:activity:...",
"text": "Michael Chen reposted this",
"image_navigation_context": "https://www.linkedin.com/in/michael-chen..."
},
"actor": {
"name": "TechCo",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"company_id": "12345"
},
"description": "50,000 followers",
"sub_description": "1yr • "
},
"commentary": "What skills have contributed most to your career success?"
},
{
"actor": {
"name": "David Park",
"image": {
"profile_pic": "https://media.licdn.com/dms/image/...",
"profile_urn": "ACoAAEAZv-UB..."
},
"description": "Senior Software Engineer at BigTech",
"sub_description": "1yr • "
}
}
],
"total": 21
}
}
The post reposts model
Properties
integer | null
The next page number for pagination. Pass this value as the
page parameter in your next request. Returns null when there are no more pages.object
The response payload containing reposts.
Show Message object
Show Message object
integer
Total number of reposts of the post.
array
List of repost objects.
Show Repost object
Show Repost object
Actor (Original or Reposter)
object
Details about the person or company whose content appears in the repost.
Show Actor object
Show Actor object
string
Name of the person or company.
string
LinkedIn headline or follower count (for companies).
string
Time since repost and visibility info.
string
Text added by the reposter when sharing. May be absent if shared without commentary.
Repost Header (for reshares)
object
Present when the repost is a reshare of someone else’s content. Contains info about who reposted.
Show Header object
Show Header object
string
Description of the repost action (e.g., “John Doe reposted this”).
string
URL to the repost activity.
object
string
URL to the reposter’s profile.
Pagination
To paginate through all reposts:- Make an initial request without the
pageparameter (defaults to page 1). - Check the
cursorfield in the response. - If
cursoris notnull, make another request withpageset to thecursorvalue. - Repeat until
cursorreturnsnull.
Example
import requests
url = "https://api.datamagnet.co/api/v1/post/reposts"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
page = 1
all_reposts = []
while page is not None:
response = requests.post(url, json={
"url": "https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX",
"page": page
}, headers=headers)
data = response.json()
all_reposts.extend(data["message"]["reposts"])
page = data.get("cursor")
print(f"Total reposts fetched: {len(all_reposts)}")
Was this page helpful?