Get Post Details
GET /get-post-details
Get detailed information for a specific LinkedIn post.
Pricing
1 credit per call.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
urn | string | Yes | Post URN (numeric ID, e.g., 7654321098765432100) |
Example Request
- cURL
- Python
- Node.js
curl --request GET \
--url 'https://api.infoplug.io/get-post-details?urn=7654321098765432100' \
--header 'X-INFOPLUG-API-KEY: YOUR_API_KEY'
import requests
url = "https://api.infoplug.io/get-post-details"
params = {
"urn": "7654321098765432100"
}
headers = {
"X-INFOPLUG-API-KEY": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const response = await fetch(
'https://api.infoplug.io/get-post-details?urn=7654321098765432100',
{
headers: {
'X-INFOPLUG-API-KEY': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
Example Response
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 404 Not Found
{
"data": {
"urn": "7654321098765432100",
"author": {
"name": "John Doe",
"headline": "Software Engineer at Tech Corp",
"linkedin_url": "https://www.linkedin.com/in/johndoe/",
"profile_picture": "https://media.licdn.com/..."
},
"text": "Excited to share my latest project...",
"posted_at": "2024-01-15T10:30:00Z",
"reactions_count": 500,
"comments_count": 75,
"reposts_count": 25,
"media": [
{
"type": "image",
"url": "https://media.licdn.com/..."
}
]
}
}
{
"message": "invalid_parameter",
"parameter": "urn",
"details": "Post URN is required"
}
{
"message": "unauthorized",
"details": "Invalid or missing API key"
}
{
"message": "not_found",
"details": "Post not found"
}
Related Endpoints
- Search Posts - Search for posts
- Get Post Reactions - Get reactions on a post
- Get Post Comments - Get comments on a post