Fetch Post Details
Retrieves full details of a LinkedIn post including comments and reactions. You can look up a post by its URL or URN.
Pricing: 1 credit per call
curl -X POST "https://v3-api.texau.com/api/v1/post_details" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"url": "https://www.linkedin.com/posts/williamhgates_in-2000-more-than-10-million-children-died-activity-7376356221991178240-H5ez",
"comments": true,
"reactions": true
}'
import requests
import json
url = "https://v3-api.texau.com/api/v1/post_details"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
data = {
"url": "https://www.linkedin.com/posts/williamhgates_in-2000-more-than-10-million-children-died-activity-7376356221991178240-H5ez",
"comments": true,
"reactions": true
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://v3-api.texau.com/api/v1/post_details", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
},
body: JSON.stringify({
"url": "https://www.linkedin.com/posts/williamhgates_in-2000-more-than-10-million-children-died-activity-7376356221991178240-H5ez",
"comments": true,
"reactions": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"url": "https://www.linkedin.com/posts/williamhgates_in-2000-more-than-10-million-children-died-activity-7376356221991178240-H5ez",
"comments": true,
"reactions": true
}`)
req, err := http.NewRequest("POST", "https://v3-api.texau.com/api/v1/post_details", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://v3-api.texau.com/api/v1/post_details')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
request.body = '{
"url": "https://www.linkedin.com/posts/williamhgates_in-2000-more-than-10-million-children-died-activity-7376356221991178240-H5ez",
"comments": true,
"reactions": true
}'
response = http.request(request)
puts response.body
{
"urn": "urn:li:activity:7376356221991178240",
"commentary": "example_string",
"numComments": 42,
"numReactions": 42,
"reactionType": {},
"shareUrl": "example_string",
"actor": {
"profileId": "example_string",
"firstName": "John Doe",
"lastName": "John Doe",
"headline": "example_string",
"profilePicture": "example_string"
},
"comments": [
{
"id": "example_string",
"comment": "example_string",
"totalComments": 42,
"totalReactions": 42,
"commenter": {}
}
],
"reactions": [
{
"reaction": "LIKE",
"reactor": {}
}
],
"content": {
"image": {},
"video": {},
"article": {},
"document": {},
"poll": {}
},
"sponsored": true
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
/post_details
Your TexAu API key. Contact TexAu to obtain one.
The media type of the request body
LinkedIn post URL (use either url or urn)
LinkedIn post URN (use either url or urn)
Include comments in the response
Include reactions in the response
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Body
LinkedIn post URL (use either url or urn)
LinkedIn post URN (use either url or urn)
Include comments in the response
Include reactions in the response
Responses
Post text content
Breakdown by reaction type (like, empathy, praise, etc.)
Direct URL to the post
Post author details
Post comments (when comments: true)
Post reactions (when reactions: true)
LIKEEMPATHYINTERESTAPPRECIATIONPRAISEENTERTAINMENTAttached content (image, video, article, document, poll)
Last updated 2 weeks ago
Built with Documentation.AI