Post Detail
curl --request GET \
--url https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}', 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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"comment_counter": 123,
"date": "<string>",
"id": "<string>",
"impressions_counter": 123,
"is_repost": true,
"mentions": [
{
"length": 123,
"start": 123,
"url": "<string>"
}
],
"parsed_datetime": "<string>",
"permissions": {
"can_post_comments": true,
"can_react": true,
"can_share": true
},
"provider": "LINKEDIN",
"reaction_counter": 123,
"repost_counter": 123,
"share_url": "<string>",
"social_id": "<string>",
"text": "<string>",
"object": "Post",
"analytics": {
"clicks": 123,
"clickthrough_rate": 123,
"engagement_rate": 123,
"engagements": 123,
"followers_gained_from_this_post": 123,
"impressions": 123,
"members_reached": 123,
"page_viewers_from_this_post": 123
},
"article": {
"id": "<string>",
"title": "<string>",
"author": "<string>",
"excerpt": "<string>",
"picture_url": "<string>",
"published_at": "<string>",
"url": "<string>"
},
"group": {
"id": "<string>",
"name": "<string>",
"private": true
},
"job_posting": {
"company": {
"id": "<string>",
"name": "<string>",
"picture_url": "<string>"
},
"id": "<string>",
"location": "<string>",
"title": "<string>"
},
"poll": {
"id": "<string>",
"is_open": true,
"options": [
{
"id": "<string>",
"text": "<string>",
"votes_count": 123,
"win": true
}
],
"question": "<string>",
"total_votes_count": 123
},
"repost_content": {
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"date": "<string>",
"id": "<string>",
"parsed_datetime": "<string>",
"text": "<string>"
},
"repost_id": "<string>",
"repost_parsed_datetime": "<string>",
"reposted_by": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"title": "<string>",
"user_reacted": "LIKE",
"written_by": {
"id": "<string>",
"name": "<string>",
"public_identifier": "<string>"
}
}Posts
Post Detail
Retrieve a single LinkedIn post.
GET
https://api.aisa.one
/
apis
/
v1
/
unipile
/
linkedin
/
posts
/
{post_id}
Post Detail
curl --request GET \
--url https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}', 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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"comment_counter": 123,
"date": "<string>",
"id": "<string>",
"impressions_counter": 123,
"is_repost": true,
"mentions": [
{
"length": 123,
"start": 123,
"url": "<string>"
}
],
"parsed_datetime": "<string>",
"permissions": {
"can_post_comments": true,
"can_react": true,
"can_share": true
},
"provider": "LINKEDIN",
"reaction_counter": 123,
"repost_counter": 123,
"share_url": "<string>",
"social_id": "<string>",
"text": "<string>",
"object": "Post",
"analytics": {
"clicks": 123,
"clickthrough_rate": 123,
"engagement_rate": 123,
"engagements": 123,
"followers_gained_from_this_post": 123,
"impressions": 123,
"members_reached": 123,
"page_viewers_from_this_post": 123
},
"article": {
"id": "<string>",
"title": "<string>",
"author": "<string>",
"excerpt": "<string>",
"picture_url": "<string>",
"published_at": "<string>",
"url": "<string>"
},
"group": {
"id": "<string>",
"name": "<string>",
"private": true
},
"job_posting": {
"company": {
"id": "<string>",
"name": "<string>",
"picture_url": "<string>"
},
"id": "<string>",
"location": "<string>",
"title": "<string>"
},
"poll": {
"id": "<string>",
"is_open": true,
"options": [
{
"id": "<string>",
"text": "<string>",
"votes_count": 123,
"win": true
}
],
"question": "<string>",
"total_votes_count": 123
},
"repost_content": {
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"date": "<string>",
"id": "<string>",
"parsed_datetime": "<string>",
"text": "<string>"
},
"repost_id": "<string>",
"repost_parsed_datetime": "<string>",
"reposted_by": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"title": "<string>",
"user_reacted": "LIKE",
"written_by": {
"id": "<string>",
"name": "<string>",
"public_identifier": "<string>"
}
}Fetch one post by its id (activity URN form).
See Pricing for current prices. Where supported, get a quote for your request.
Path parameters and required query parameters are documented in the operation reference.
Example
curl "https://api.aisa.one/apis/v1/unipile/linkedin/posts/POST_ID?account_id=YOUR_ACCOUNT_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
Request contract
- Method and path: GET /apis/v1/unipile/linkedin/posts/{post_id}
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id} - post_id: path; required
- account_id: query; required
{
"operationId": "get_unipile_linkedin_post",
"method": "GET",
"path": "/apis/v1/unipile/linkedin/posts/{post_id}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The id of the post. <br> `Linkedin`: if the URL contains **activity**, use the numeric id (example: ...-activity-7332661864792854528-... => `7332661864792854528`). <br> If the URL contains **ugcPost**, use `urn:li:ugcPost:ID`. <br> If the URL contains **share**, use `urn:li:share:ID`. <br> `Instagram`: You can use the **provider_id** or the **shortcode** found in the post URL. (***www.instagram.com/reel/SHORTCODE***)",
"in": "path",
"name": "post_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The id of the account to perform the request from.",
"in": "query",
"name": "account_id",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.005 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Path Parameters
The id of the post.
Linkedin: if the URL contains activity, use the numeric id (example: ...-activity-7332661864792854528-... => 7332661864792854528).
If the URL contains ugcPost, use urn:li:ugcPost:ID.
If the URL contains share, use urn:li:share:ID.
Instagram: You can use the provider_id or the shortcode found in the post URL. (www.instagram.com/reel/SHORTCODE)
Response
OK. Request succeeded.
- Option 1
- Option 2