curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"article_id": "<string>",
"url": "<string>"
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article"
payload = {
"linkedin_account_sid": "<string>",
"article_id": "<string>",
"url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({linkedin_account_sid: '<string>', article_id: '<string>', url: '<string>'})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article', 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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article",
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([
'linkedin_account_sid' => '<string>',
'article_id' => '<string>',
'url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"article": {
"article_id": "<string>",
"article_urn": "<string>",
"linkedin_article_urn": "<string>",
"title": "<string>",
"state": "<string>",
"content_html": "<string>",
"url": "<string>",
"cover_image_url": "<string>",
"cover_image_caption": "<string>",
"author_profile_id": "<string>",
"author_organization_id": "<string>",
"newsletter_id": "<string>",
"post_urn": "<string>",
"activity_urn": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"published_at": "<string>",
"scheduled_at": "<string>",
"version": 123
},
"activity_log": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}Get LinkedIn article
One LinkedIn article by article_id (any state) or by its public pulse url, exactly one of the two (wire get-article). By id, LinkedIn’s latestDraftById answers a DRAFT, a SCHEDULED or a PUBLISHED article; by url, the Article Reader answers a PUBLISHED one and is the only read that carries activity_urn (and none of created_at, updated_at, version). result.article is null, in a 200, when LinkedIn has nothing under the id or the url (deleted, another account’s, a link that is not a pulse url): never an error. scheduled_at is null on a read by id even for a SCHEDULED article (LinkedIn’s single read omits it): read state and post_urn, or list with get_linkedin_articles state SCHEDULED. A PRIVATE read that spends the one Content bucket, posting (20/day in series of 3 at a 1200 s pause; free plan 4).
Contract:
- MCP tool
get_linkedin_article, registry packagemcp.linkedin/linkedin_posting, mountlinkedin.content. - Operation
action, response envelopeaction. - Flags: paced: a call spends the
postingsmart-limit bucket of the account it runs on, and calls of one bucket are spaced per account. A short wait is slept by the server; a longer one answers 429rate_limitedwithcontext.retry_after, and the same call succeeds from that moment. Parallel calls on one account queue behind each other.
curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"article_id": "<string>",
"url": "<string>"
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article"
payload = {
"linkedin_account_sid": "<string>",
"article_id": "<string>",
"url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({linkedin_account_sid: '<string>', article_id: '<string>', url: '<string>'})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article', 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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article",
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([
'linkedin_account_sid' => '<string>',
'article_id' => '<string>',
'url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-article")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"article_id\": \"<string>\",\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"article": {
"article_id": "<string>",
"article_urn": "<string>",
"linkedin_article_urn": "<string>",
"title": "<string>",
"state": "<string>",
"content_html": "<string>",
"url": "<string>",
"cover_image_url": "<string>",
"cover_image_caption": "<string>",
"author_profile_id": "<string>",
"author_organization_id": "<string>",
"newsletter_id": "<string>",
"post_urn": "<string>",
"activity_urn": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"published_at": "<string>",
"scheduled_at": "<string>",
"version": 123
},
"activity_log": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}Authorizations
Body
Request body of get_linkedin_article.
The article by its public link: https://www.linkedin.com/pulse/ (a locale host such as de.linkedin.com works; the permalink may be percent-encoded). PUBLISHED articles only, the one read with activity_urn. Exactly one of article_id or url.
2048^https:\/\/(?:[a-z0-9-]+\.)?linkedin\.com\/pulse\/[^\s?#]+Response
action success envelope.