Get Profile Posts
GET /get-profile-posts
Retrieve posts published by a LinkedIn profile.
Pricing
1 credit per call.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
linkedin_url | string | Yes | LinkedIn profile URL |
type | string | No | Post type: posts, comments, or reactions (default: posts) |
start | integer | No | Starting offset (default: 0) |
pagination_token | string | No | Token for pagination |
Example Request
- cURL
- Python
- Node.js
curl --request GET \
--url 'https://api.infoplug.io/get-profile-posts?linkedin_url=https://www.linkedin.com/in/example/&type=posts' \
--header 'X-INFOPLUG-API-KEY: YOUR_API_KEY'
import requests
url = "https://api.infoplug.io/get-profile-posts"
params = {
"linkedin_url": "https://www.linkedin.com/in/example/",
"type": "posts",
"start": 0
}
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-profile-posts?linkedin_url=https://www.linkedin.com/in/example/&type=posts',
{
headers: {
'X-INFOPLUG-API-KEY': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
Example Response
- 200 OK
- 400 Bad Request
{
"data": {
"posts": [
{
"urn": "urn:li:activity:1234567890",
"text": "Post content here...",
"posted_at": "2024-01-15T10:30:00Z",
"reactions_count": 150,
"comments_count": 25,
"reposts_count": 10
}
],
"paging": {
"start": 0,
"count": 10,
"total": 50
}
}
}
{
"message": "invalid_parameter",
"parameter": "linkedin_url",
"details": "LinkedIn URL is required"
}